Ejemplo n.º 1
0
 //called when piece is clicked on
 //will highlight valid spots on board
 public List <GameObject> showValidMoves(GameBoard board)
 {
     // return array list of possible board cells
     if (isKinged)
     {
         return(movement.getValidKingMoves(position, board));
     }
     else
     {
         return(movement.getValidMoves(position, board));
     }
 }