Class Player

java.lang.Object
  |
  +--Player
Direct Known Subclasses:
AI, HumanPlayer

public class Player
extends java.lang.Object

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

playerUnits

protected Group playerUnits
Just a guess at how we might reference the units owned by the player


forcePoints

protected static int forcePoints

victoryPoints

protected int victoryPoints

planets

protected Planet[] planets
Constructor Detail

Player

public Player()
Method Detail

Player

public void Player(char x)

setPlayerType

public boolean setPlayerType(char c)

setForcePoints

public static void setForcePoints(int fpoints)

getPlayerType

public char getPlayerType()

getForcePoints

public static int getForcePoints()

isPlayerHuman

public boolean isPlayerHuman()

isPlayerAI

public boolean isPlayerAI()

react

public 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


search

public void search()
This method is needed by both but must be overridden relates to player decision to search for detected enemy characters


move

public void move()
This method is needed by both but must be overridden relates to player decision to move units/characters