Beispiel #1
0
 public Interior(InteriorNames interiorname, Game _game, Vector2 Position, Vector2 _size, RoomDoorPositionsInfo DoorPositions, RoomAmbiance ambient)
 {
     switch (interiorname)
     {
         case InteriorNames.Empty:
             break;
         case InteriorNames.Cave:
             createCave(_game, Position, _size, DoorPositions, ambient);
             break;
     }
 }
 public static Interior NewInterior(InteriorNames interiorname, Game _game, BigRoom room)
 {
     switch (interiorname)
     {
         case InteriorNames.Empty:
             return new Interior();
         case InteriorNames.Cave:
             return new Cave(_game,room);
         case InteriorNames.Hulk:
             return new Hulk(_game, room.Position, room._size, room.RoomAmbient);
     }
     return new Interior();
 }