|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Unit.UnitState | |
---|---|
net.sf.freecol.client.control | Contains the classes responsible for the control of the game. |
net.sf.freecol.common.model | Contains the game model. |
Uses of Unit.UnitState in net.sf.freecol.client.control |
---|
Methods in net.sf.freecol.client.control with parameters of type Unit.UnitState | |
---|---|
void |
InGameController.changeState(Unit unit,
Unit.UnitState state)
Changes the state of this Unit . |
Uses of Unit.UnitState in net.sf.freecol.common.model |
---|
Methods in net.sf.freecol.common.model that return Unit.UnitState | |
---|---|
Unit.UnitState |
Unit.getState()
Gets the state of this Unit . |
static Unit.UnitState |
Unit.UnitState.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Unit.UnitState[] |
Unit.UnitState.values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods in net.sf.freecol.common.model with parameters of type Unit.UnitState | |
---|---|
boolean |
Unit.checkSetState(Unit.UnitState s)
Checks if a Unit can get the given state set. |
void |
Unit.setState(Unit.UnitState s)
Sets a new state for this unit and initializes the amount of work the unit has left. |
void |
Unit.setStateToAllChildren(Unit.UnitState state)
Sets the given state to all the units that si beeing carried. |
Constructors in net.sf.freecol.common.model with parameters of type Unit.UnitState | |
---|---|
Unit(Game game,
Location location,
Player owner,
UnitType type,
Unit.UnitState state)
Initiate a new Unit with the specified parameters. |
|
Unit(Game game,
Location location,
Player owner,
UnitType type,
Unit.UnitState state,
EquipmentType... initialEquipment)
Initiate a new Unit with the specified parameters. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |