public int getNextPiece()
 {
     // during a turn, this returns the next piece to play, which can be displayed
     // in the next piece area.  Returns the End of Turn piece if none remain.
     if (this._movingPerson)
     {
         return(Pieces.getPersonPieceFrom(this.currentBoard.getCell(this.personCoordinates)));
     }
     if (!this.piecesLeftThisTurn())
     {
         return(Pieces.createEndOfTurnPiece());
     }
     return(this.currentTurnPieces[0]);
 }
示例#2
0
 public static bool isEndOfTurnPiece(int p)
 {
     return(p == Pieces.createEndOfTurnPiece());
 }