public override void ShootMissile(Ship pShip) { Missile pMissile = ShipManager.ActivateMissile(); pMissile.SetPos(pShip.x, pShip.y + 20); //pMissile.SetActive(true); // switch states this.Handle(pShip); }
public override void ShootMissile(Ship pShip) { Missile pMissile = ShipMan.ActivateMissile(); pMissile.SetPos(pShip.x, pShip.y + 5); // switch states this.Handle(pShip); }
//---------------------------------------------------------------------------------- // Shoot //---------------------------------------------------------------------------------- public override void ShootMissile(Ship pShip) { Missile pMissile = ShipMan.ActivateMissile(); pMissile.SetPos(pShip.x, pShip.y + 20); //play sound Ship.soundEngine.SoundVolume = 0.15f; Ship.soundEngine.Play2D(Ship.shootSound, false, false, false); // switch states this.Handle(pShip); }
public override void ShootMissile(CoreCannon pShip) { // Activate and position missile Missile pMissile = GameStateManager.GetGame().GetStateCoreCannonManager().ActivateMissile(); pMissile.SetPos(pShip.GetX(), pShip.GetY() + 20); pMissile.SetActive(true); // Play shoot sound IrrKlang.ISound pSnd = SoundEngineManager.GetSoundEngine().Play2D("shoot.wav"); // switch states this.Handle(pShip); }
public override void ShootMissile(Ship pShip) { Missile pMissile = ShipMan.ActivateMissile(); pSndEngine.SoundVolume = 0.2f; pSndEngine.Play2D("shoot.wav"); pMissile.SetPos(pShip.x, pShip.y + 15); pMissile.SetActive(true); //then sets you to missile flying state //aka u cant shoot a missile this.Handle(pShip); }