|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IPlayer
Interface that represents a single player that has a name and a score and is associated wtih a particular set of movement keys.
| Field Summary | |
|---|---|
static IPlayer |
NullPlayer
Null object IPlayer singleton instance that does nothing. |
| Method Summary | |
|---|---|
IMovementKeys |
getMovementKeys()
Get the set of movement keys associated with this player. |
String |
getName()
Get the player's name. |
int |
getScore()
Get the player's score |
void |
setMovementKeys(IMovementKeys keys)
Set the set of movement keys to be associated with this player. |
void |
setScore(int score)
Sets the player's score (integer value). |
| Field Detail |
|---|
static final IPlayer NullPlayer
| Method Detail |
|---|
int getScore()
void setScore(int score)
score - The new score.String getName()
IMovementKeys getMovementKeys()
void setMovementKeys(IMovementKeys keys)
keys - The new IMovementKeys object for this player.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||