Exemple #1
0
 public GridNode(TileMapSprite tileType, Grid <GridNode> grid, int x, int y)
 {
     this.grid     = grid;
     this.tileType = tileType;
     this.x        = x;
     this.y        = y;
     if (tileType == TileMapSprite.RoadCrossing ||
         tileType == TileMapSprite.RoadVertical ||
         tileType == TileMapSprite.RoadHorizontal ||
         tileType == TileMapSprite.Park)
     {
         isWalkable = true;
     }
     else
     {
         isWalkable = false;
     }
 }
Exemple #2
0
 public void SetTileMapSprite(TileMapSprite TS)
 {
     this._Sprite = TS;
 }
 public void setTileMapSprite(TileMapSprite t_tileSprite)
 {
     this.tileMapSprite = t_tileSprite;
     grid.triggerObjectChange(x, y);
 }