public void Attach(Dungeon dungeon)
 {
     Terrain[,] terrain = new Terrain[dungeon.Width, dungeon.Height];
     for (int j = 0; j < dungeon.Height; j++) {
         for (int i = 0; i < dungeon.Width; i++) {
             terrain[i, j] = dungeon.GetCell(i, j).Terrain;
         }
     }
 }
Пример #2
0
        public Entity(Dungeon dungeon, int x = 0, int y = 0, Direction direction = Direction.South)
        {
            ID = ms_idCounter++;
            IsActive = true;
            RemoveMe = false;
            IsSolid = false;
            Position = new Point(x, y);
            Direction = direction;

            this.dungeon = dungeon;
        }