public void AddEntity(DungeonEntityType entityType, int x, int y, DungeonRotation rotation) { //if (!CheckValidPosition(x, y)) // throw new ArgumentException("Invalid entity position in room"); dungeon.AddEntity(entityType, roomPositionX + x, roomPositionY + y, rotation); }
public void Build() { dungeon = generator.BuildDungeon(sizeX, sizeY); for (int i = 0; i < dungeon.GetRoomsCount(); i++) { roomDecorator.DecorateRoom(dungeon.GetRoom(i)); } dungeon.AddEntity( DungeonEntityType.Avatar, dungeon.StartingPosition.x, dungeon.StartingPosition.y, DungeonRotation.North); }