|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--Player
Player is the superclass to the HumanPlayer and AI classes, currently we have documentation about Victory Points which will be in the HumanPlayer class. It can be found here. Also we have diagrams and charts for it here and here.
| Field Summary | |
protected static int |
forcePoints
|
protected Planet[] |
planets
|
protected Group |
playerUnits
Just a guess at how we might reference the units owned by the player |
protected int |
victoryPoints
|
| Constructor Summary | |
Player()
|
|
| Method Summary | |
static int |
getForcePoints()
|
char |
getPlayerType()
|
boolean |
isPlayerAI()
|
boolean |
isPlayerHuman()
|
void |
move()
This method is needed by both but must be overridden relates to player decision to move units/characters |
void |
Player(char x)
|
void |
react()
This method is needed by both but must be overridden relates to how player behaves when reacting in enemy players "enemy reacts" segment |
void |
search()
This method is needed by both but must be overridden relates to player decision to search for detected enemy characters |
static void |
setForcePoints(int fpoints)
|
boolean |
setPlayerType(char c)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Group playerUnits
protected static int forcePoints
protected int victoryPoints
protected Planet[] planets
| Constructor Detail |
public Player()
| Method Detail |
public void Player(char x)
public boolean setPlayerType(char c)
public static void setForcePoints(int fpoints)
public char getPlayerType()
public static int getForcePoints()
public boolean isPlayerHuman()
public boolean isPlayerAI()
public void react()
public void search()
public void move()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||