|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--netwar.game.Player
Class representing a single Player's data. This is in-game data including a reference to the Base, as well as data taken from the PlayerSettings.
PlayerSettings| Constructor Summary | |
Player(int pNumber,
int baseX,
int baseY,
java.awt.Color tColor,
boolean isLocal)
Creates a new instance of Player. |
|
| Method Summary | |
boolean |
baseDead()
Checks if this player's base is dead |
static boolean |
EndGame()
Checks if there are enough players to continue the game. |
Base |
getBase()
Accessor for TeamBase |
java.awt.Color |
getColor()
Returns the team color |
static Player |
getLocal()
Returns the local player |
int |
getNumber()
Returns this player's number. |
static Player |
getPlayer(int pNum)
Returns the player with number pNum |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Player(int pNumber,
int baseX,
int baseY,
java.awt.Color tColor,
boolean isLocal)
| Method Detail |
public static boolean EndGame()
public boolean baseDead()
public Base getBase()
public static Player getLocal()
public static Player getPlayer(int pNum)
pNum - the number of the desired playerpublic int getNumber()
public java.awt.Color getColor()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||