예제 #1
0
파일: Map.cs 프로젝트: ChrisLR/HiveRL
        public GameObjects.Tile GetTile(Point point)
        {
            GameObjects.Tile tile = null;
            this.tilesByPoint.TryGetValue(point, out tile);

            return(tile);
        }
예제 #2
0
파일: Map.cs 프로젝트: ChrisLR/HiveRL
        public void AddTile(GameObjects.Tile tile)
        {
            Point point = tile.Location.Point;

            this.tilesByPoint[point] = tile;
            this.SetCellProperties(point.X, point.Y, !tile.IsBlocking, !tile.IsBlocking);
        }