public MapManager(TowerDefenseGame masterGame, ContentManager content) { this.masterGame = masterGame; this.content = content; windowManager = new WindowManager(masterGame, content); }
public GameWindow(TowerDefenseGame masterGame, ContentManager content, WindowManager.GameWindows gameWindowType) { this.masterGame = masterGame; windowType = gameWindowType; this.content = content; menuBackgrounds = content.Load<Texture2D>("Menus//menuBackground"); buttons = new List<Button>(); InitializeWindow(gameWindowType); }
private void InitializeWindow(WindowManager.GameWindows gameWindowType) { switch (gameWindowType) { case WindowManager.GameWindows.PauseMenu: x = 325; y = 50; width = 250; height = 250; AddButton(new ExitGameButton(this, content.Load<Texture2D>("Menus//Buttons//buttonExit"), 75, 75, 115, 35)); AddButton(new ResumeGameButton(this, content.Load<Texture2D>("Menus//Buttons//buttonResumeGame"), 75, 200, 115, 35)); break; } }