pushers
Class PPlayer

java.lang.Object
  extended by boardgame.Player
      extended by pushers.PPlayer
Direct Known Subclasses:
PRandomPlayer

public abstract class PPlayer
extends Player

A base Pushers player. This is an abstract class that provides some helper methods.


Constructor Summary
PPlayer()
          Provide a default public constructor
PPlayer(java.lang.String s)
           
 
Method Summary
 java.util.ArrayList<PMove> getLegalMoves(PBoard theBoard)
          Returns the list of legal moves.
 
Methods inherited from class boardgame.Player
chooseMove, createBoard, gameOver, gameStarted, getColor, getName, movePlayed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PPlayer

public PPlayer()
Provide a default public constructor


PPlayer

public PPlayer(java.lang.String s)
Method Detail

getLegalMoves

public java.util.ArrayList<PMove> getLegalMoves(PBoard theBoard)
Returns the list of legal moves.