Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV NEXT | FRAMES NO FRAMES

## Uses of Class
edu.cwru.SimpleRTS.model.resource.Resource.Type

Packages that use Resource.Type
edu.cwru.SimpleRTS.environment |
edu.cwru.SimpleRTS.model.resource |
edu.cwru.SimpleRTS.model.unit |

Uses of Resource.Type in edu.cwru.SimpleRTS.environment

Methods in edu.cwru.SimpleRTS.environment with parameters of type Resource.Type
`void` | `State.addResourceAmount(int player, Resource.Type type, int amount)` Adds an amount of a resource to a player's global amount.
`boolean` | `State.consumeResourceAmount(int player, Resource.Type type, int amount)` Attempts to reduce the player's amount of the given resource by an amount.
`int` | `State.StateView.getResourceAmount(int player, Resource.Type type)`
`void` | `State.StateBuilder.setResourceAmount(int player, Resource.Type resource, int amount)`

Uses of Resource.Type in edu.cwru.SimpleRTS.model.resource

Methods in edu.cwru.SimpleRTS.model.resource that return Resource.Type
`Resource.Type` | `Resource.getType()`
`static Resource.Type` | `Resource.Type.valueOf(java.lang.String name)` Returns the enum constant of this type with the specified name.
`static Resource.Type[]` | `Resource.Type.values()` Returns an array containing the constants of this enum type, in the order they are declared.

Constructors in edu.cwru.SimpleRTS.model.resource with parameters of type Resource.Type
`Resource(Resource.Type type, int xPosition, int yPosition, int initialAmount)`

Uses of Resource.Type in edu.cwru.SimpleRTS.model.unit

Methods in edu.cwru.SimpleRTS.model.unit that return Resource.Type
`Resource.Type` | `Unit.UnitView.getCargoType()`
`Resource.Type` | `Unit.getCurrentCargoType()`

Methods in edu.cwru.SimpleRTS.model.unit with parameters of type Resource.Type
`boolean` | `Unit.pickUpResource(Resource.Type type, int amount)`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV NEXT | FRAMES NO FRAMES