Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 
 

28 rader
577 B

  1. package structures;
  2. import actors.GameActor;
  3. import structures.basic.AIPlayer;
  4. /**
  5. * This class can be used to hold information about the on-going game.
  6. * Its created with the GameActor.
  7. *
  8. * @author Dr. Richard McCreadie
  9. *
  10. */
  11. public class GameState {
  12. public boolean gameInitalised = false;
  13. public boolean something = false;
  14. public int currentPlayer = 1;
  15. public AIPlayer aiPlayer = new AIPlayer();
  16. // bit of a hack but include a reference to the GameActor so AIPlayer can send messages to it
  17. public GameActor gameActor;
  18. }