Beispiel #1
0
 public CellState(bool isBlocked, Coordinate2D coordinate2, TerrainType terrainType)
 {
     IsBlocked   = isBlocked;
     Coordinate3 = coordinate2.To3D();
     TerrainType = terrainType;
 }
Beispiel #2
0
 public CellState(bool isBlocked, Coordinate3D coordinate3, TerrainType terrainType)
 {
     IsBlocked   = isBlocked;
     Coordinate3 = coordinate3;
     TerrainType = terrainType;
 }
Beispiel #3
0
 public void SetCellsTerrainType(List <Coordinate2D> coordinates, TerrainType terrainType)
 {
     SetCellsTerrainType(Coordinate2D.To3D(coordinates), terrainType);
 }
Beispiel #4
0
 public void SetCellsTerrainType(Coordinate2D coordinate, TerrainType terrainType)
 {
     SetCellsTerrainType(coordinate.To3D(), terrainType);
 }
Beispiel #5
0
        public void SetCellsTerrainType(Coordinate3D coordinate, TerrainType terrainType)
        {
            var cellState = GetCellState(coordinate);

            cellState.TerrainType = terrainType;
        }