public Room CreateRoom(GameVariables.RoomTypes type) { Room temp = null; switch (type) { case GameVariables.RoomTypes.GREATHALL: temp = new GreatHallRoom(texMan.GetTexture("Rooms"), new Vector2(200, 600), Color.White); break; case GameVariables.RoomTypes.LOWBED: temp = new LowQualityLodgingRoom(texMan.GetTexture("Rooms"), new Vector2(200, 600), Color.White); break; case GameVariables.RoomTypes.KITCHEN: temp = new KitchenRoom(texMan.GetTexture("Rooms"), new Vector2(200, 600), Color.White); break; default: temp = null; break; } return(temp); }
public void SetRoomType(GameVariables.RoomTypes type) { this.Type = type; }