|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface MovementCapableElement
This interface is implemented by elements that can be moved
| Method Summary | |
|---|---|
void |
applyMovementSummary(GameElementMovementSummary gems)
applies the summary of movement to the element. |
boolean |
canMove(int turn)
returns whether the element can move in a given turn |
GameElementMovementSummary |
getMovementSummary(int turn)
return a new GameElementMovementSummary appropriate for the element implementing this interface |
boolean |
hasMoved(int turn)
returns whether a unit has moved in a given turn |
void |
setMoved(int turn)
sets the status of an element that has moved in a given turn |
| Method Detail |
|---|
boolean canMove(int turn)
turn -
boolean hasMoved(int turn)
turn -
void setMoved(int turn)
turn - GameElementMovementSummary getMovementSummary(int turn)
void applyMovementSummary(GameElementMovementSummary gems)
gems -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||