java.lang.Object
com.github.freddyyj.randomtrainsimworld.Route
public class Route extends Object
A route class
Route name is a name of route.(ex. Sand Patch Grade) Route code is a 2 to 4 length code of this route.(ex. SPG if this route is Sand Patch Grade)
- Author:
- FreddyYJ_
-
Field Summary
Fields Modifier and Type Field Description boolean
isSelected
If true, this route can be selected by random pick. -
Constructor Summary
Constructors Constructor Description Route(int num, File file)
Deprecated.UseRoute(String, String,boolean)
instead.Route(int num, String name)
Deprecated.UseRoute(String, String,boolean)
instead.Route(int num, String name, ArrayList<Locomotive> locos)
Deprecated.UseRoute(String, String,boolean)
instead.Route(String name, String code)
Constructor with route name.Route(String name, String code, boolean select)
Constructor with route name and selection. -
Method Summary
-
Field Details
-
isSelected
public boolean isSelectedIf true, this route can be selected by random pick.
-
-
Constructor Details
-
Route
Deprecated.UseRoute(String, String,boolean)
instead.Constructor with route ID and route text file.- Parameters:
num
- route IDfile
- route text file
-
Route
Deprecated.UseRoute(String, String,boolean)
instead.Constructor with route ID and route name.- Parameters:
num
- route IDname
- route name
-
Route
Deprecated.UseRoute(String, String,boolean)
instead.Constructor with route ID, route name and locomotive list.- Parameters:
num
- route IDname
- route namelocos
- locomotive list
-
Route
Constructor with route name and selection.- Parameters:
name
- route nameselect
- initialisSelected
valuecode
- route code
-
Route
Constructor with route name.isSelected
sets to true.- Parameters:
name
- route namecode
- route code
-
-
Method Details