|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfeud.testgame.model.PlayerInfo
A simple wrapper class for a player's current state, i.e. the name and the number of frags/deaths.
Constructor Summary | |
PlayerInfo(java.lang.String name)
Create a new player info |
Method Summary | |
int |
getFrags()
Gets the number of frags. |
int |
getKilled()
Gets the number of deaths. |
java.lang.String |
getName()
Returns the player's name. |
void |
incFrags()
Increment the number of frags. |
void |
incKilled()
Increment the number of deaths. |
void |
reset()
Resets the player's info. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PlayerInfo(java.lang.String name)
name
- the player's nameMethod Detail |
public java.lang.String getName()
public void reset()
public void incFrags()
public void incKilled()
public int getFrags()
public int getKilled()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |