public WindowManager(TowerDefenseGame masterGame, ContentManager content) { this.masterGame = masterGame; this.content = content; windows = new List<GameWindow>(); }
public TileManager(TowerDefenseGame masterGame, ContentManager content) { tileSets = new Dictionary<string, TileSet>(); this.content = content; this.masterGame = masterGame; LoadTiles(); }
public MapManager(TowerDefenseGame masterGame, ContentManager content) { this.masterGame = masterGame; this.content = content; windowManager = new WindowManager(masterGame, content); }
public GameMenu(TowerDefenseGame masterGame, Texture2D bgImage) { backgroundImage = bgImage; this.masterGame = masterGame; buttons = new List<Button>(); width = 700; height = 400; }
public MenuManager(TowerDefenseGame masterGame, ContentManager content) { gameMenus = new List<GameMenu>(); this.content = content; this.masterGame = masterGame; AddMenu(Menus.MainMenu); SetScreenSize(); }
public Building(TowerDefenseGame masterGame, ContentManager content, GameTile parentTile, BuildingType type, Texture2D image) { this.masterGame = masterGame; this.content = content; this.tile = parentTile; this.type = type; this.buildingTexture = image; }
public Tower(TowerDefenseGame masterGame, ContentManager content, GameTile parentTile, BuildingType type, Texture2D image) : base(masterGame, content, parentTile, type, image) { range = 2; rateOfFire = 30; nextFire = 0; damage = 2; projectiles = new List<Projectile>(); }
public Button(TowerDefenseGame masterGame, Texture2D texture, int x, int y, int width, int height) { this.masterGame = masterGame; this.texture = texture; this.xCoord = x; this.yCoord = y; this.width = width; this.height = height; }
public Wave(WaveManager masterManager, TowerDefenseGame masterGame, int count, Monster typeOfMonster) { timeUntilNextSpawn = 0; this.masterManager = masterManager; this.masterGame = masterGame; this.monsterType = typeOfMonster; monstersToSpawn = count; monstersAlive = new List<Monster>(); }
public Projectile(TowerDefenseGame masterGame, Tower parentTower, Monster target, int damage) { this.damage = damage; velocity = 1.5f; this.target = target; this.x = parentTower.GetParentTile().GetXCoord() + GameTile.TILE_DIMENSIONS / 3; this.y = parentTower.GetParentTile().GetYCoord() + GameTile.TILE_DIMENSIONS / 3; this.parentTower = parentTower; texture = masterGame.Content.Load<Texture2D>("Towers//Projectiles//Projectile"); }
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); }
public WaveManager(MapManager masterManager, TowerDefenseGame masterGame, ContentManager content) { this.masterManager = masterManager; this.masterGame = masterGame; this.content = content; waveNumber = 0; timeUntilNextWave = 30; LoadTextures(); DefineWaveList(); this.nextWave = waveList[waveNumber + 1]; }
//################################## //######## Constructors ############ //################################## public GameMap(TowerDefenseGame masterGame, string mapName) { this.masterGame = masterGame; this.mapName = mapName; tileset = masterGame.GetTileManager().getTileSet("standard"); isPaused = false; selectionHasChanged = false; this.viewTileDistance = 5; Load(); this.viewTileX = this.GetMapWidth() / 2; this.viewTileY = this.GetMapHeight() / 2; }
public GameGUIManager(MapManager masterManager, TowerDefenseGame masterGame, ContentManager content, int yStart, int width) { this.masterGame = masterGame; this.masterManager = masterManager; this.content = content; this.yStart = yStart; this.width = width; guiButtons = new List<Button>(); guiButtons.Add(new MenuButton(masterGame, content.Load<Texture2D>("Menus//Buttons//buttonOptions"), GetRelativeLocationX(width - 100), GetRelativeLocationY(10), 115, 40)); contextButtons = new List<Button>(); this.gold = 75; this.lives = 50; backgroundTexture = content.Load<Texture2D>("GameGUI//gameGUIBackground"); }
public Monster(TowerDefenseGame masterGame, MapManager mapManager, WaveManager waveManager, int health, Texture2D texture, int x, int y) { this.mapManager = mapManager; this.masterGame = masterGame; this.waveManager = waveManager; width = 10; height = 10; this.x = x; this.y = y; this.health = health; this.maxHealth = health; monsterTexture = texture; GetNextDirection(); moveRate = 0.7f; }
public BuildBlueTowerButton(TowerDefenseGame masterGame, Texture2D texture, int x, int y, int width, int height) : base(masterGame, texture, x, y, width, height) { }