Modifier and Type | Field and Description |
---|---|
private Resource |
Roboticon.Specialisation |
Modifier and Type | Method and Description |
---|---|
Resource |
Roboticon.getSpec()
Returns the current specialisation as an enumerated resource type
|
static Resource |
Resource.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Resource[] |
Resource.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
int |
Roboticon.calcProd(Resource resource,
int playermod)
Calculate the modified production rate for a given resource
|
int |
Roboticon.getBaseProd(Resource resource)
Returns the base production value for a given resource
|
boolean |
Roboticon.setBaseProd(Resource resource,
int newprod)
Sets the base production for the given resource to the given value
|
boolean |
Roboticon.setSpec(Resource resource)
Takes an enumerated resource type and sets the specialisation
and base production rates accordingly
|
void |
Player.SpecialiseRoboticon(Roboticon roboticon,
Resource resource)
Allow the player to specialise their roboticon to a given a resource
|