java.lang.Object
com.github.freddyyj.randomtrainsimworld.Weather
public class Weather extends Object
A weather class
- Author:
- FreddyYJ_
-
Field Summary
Fields Modifier and Type Field Description booleanisSelectedIf true, this locomotive can be selected by random pick. -
Constructor Summary
Constructors Constructor Description Weather(int id, String name)Deprecated.UseWeather(String)instead.Weather(String name)Constructor with weather name.Weather(String name, boolean select)Constructor with weather name andisSelected -
Method Summary
-
Field Details
-
isSelected
public boolean isSelectedIf true, this locomotive can be selected by random pick.
-
-
Constructor Details
-
Weather
Deprecated.UseWeather(String)instead.Constructor with weather ID and name- Parameters:
id- weather IDname- weather name
-
Weather
Constructor with weather name andisSelected- Parameters:
name- weather nameselect- initialisSelectedvalue
-
Weather
Constructor with weather name.isSelectedsets to true- Parameters:
name- weather name
-
-
Method Details