java.lang.Object
com.github.freddyyj.randomtrainsimworld.Weather

public class Weather
extends Object
A weather class
Author:
FreddyYJ_
  • Field Details

    • isSelected

      public boolean isSelected
      If true, this locomotive can be selected by random pick.
  • Constructor Details

    • Weather

      @Deprecated public Weather​(int id, String name)
      Deprecated.
      Use Weather(String) instead.
      Constructor with weather ID and name
      Parameters:
      id - weather ID
      name - weather name
    • Weather

      public Weather​(String name, boolean select)
      Constructor with weather name and isSelected
      Parameters:
      name - weather name
      select - initial isSelected value
    • Weather

      public Weather​(String name)
      Constructor with weather name. isSelected sets to true
      Parameters:
      name - weather name
  • Method Details