Esempio n. 1
0
 internal Tile(GameField map, Vector3 player_position)
 {
     this._map = map;
     int col = (int)(Math.Abs(player_position.x) / map.TileSize) + 1;
     int row = (int)(Math.Abs(player_position.z) / map.TileSize) + 1;
     // Set the rest:
     this.Init(row, col);
 }
Esempio n. 2
0
 internal Tile(GameField map, int row, int column)
 {
     this._map = map;
     this.Init(row, column);
 }
Esempio n. 3
0
 internal Tile(GameField map, int row, int column)
 {
     this._map = map;
     this.Init(row, column);
 }