protected override void Initialize()
 {
     ProjectilesLeftAnimation = new AmmunitionLeftAnimation(Game, this);
     magazine      = new Queue <WeaponProjectile>();
     launcherModel = (Canvas)GameHelper.FindCanvasChild(Holder.Model as Canvas, "tankProjectileLauncher");
     Magazine.Enqueue(new TankMissileLauncherMissile(Game, this));
     Game.PlayArea.MouseMove += PlayArea_MouseMove;
 }
Example #2
0
 protected override void Initialize()
 {
     magazine = new Queue <WeaponProjectile>();
     ProjectilesLeftAnimation = new AmmunitionLeftAnimation(Game, this);
     for (int i = 0; i < MagazineSize; i++)
     {
         magazine.Enqueue(new TankMachineGunBullet(Game, this));
     }
     launcherModel            = (Canvas)GameHelper.FindCanvasChild(Holder.Model as Canvas, "tankProjectileLauncher");
     Game.PlayArea.MouseMove += PlayArea_MouseMove;
 }