Ejemplo n.º 1
0
 /// <summary>
 /// Determines which tiles the character is allowed to move to.
 /// Mainly for ensuring players can only choose valid tiles.
 /// </summary>
 void SetMovementOptions()
 {
     movementOptions = new List <GameBoardTile>();
     if (!ReturnCurrentTile().isJumpTile)
     {
         movementOptions.Add(GameUtilities.GetTileById(currentTileNumber + 1));
     }
     if (ReturnCurrentTile().tileConnections.Length > 0)
     {
         for (int x = 0; x < ReturnCurrentTile().tileConnections.Length; x++)
         {
             movementOptions.Add(GameUtilities.GetTileById(ReturnCurrentTile().tileConnections[x]));
         }
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Returns the GameBoardTile the placeable is currently on.
 /// </summary>
 /// <returns></returns>
 public GameBoardTile ReturnCurrentTile()
 {
     return(GameUtilities.GetTileById(currentTileNumber));
 }