예제 #1
0
        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>();
        }
예제 #2
0
 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");
 }