Exemplo n.º 1
0
        public override void Update()
        {
            Ship pShip = ShipManager.GetShip();

            pShip.SetState(ShipStateEnum.Ready);
            Missile pMissile = ShipManager.GetMissile();

            pMissile.SetActive(false);
        }
Exemplo n.º 2
0
        public override void Shoot(Ship pShip)
        {
            Missile pMissile = ShipManager.ActivateMissile();

            pMissile.SetPosition(pShip.x, pShip.y + 20);
            pMissile.SetActive(true);
            SoundManager.PlaySound(SoundManager.Find(SoundName.invaderKilled));
            this.Handle(pShip);
        }
        public override void ShootMissile(Ship pShip)
        {
            Missile pMissile = ShipMan.ActivateMissile();

            pMissile.SetPos(pShip.x, pShip.y + 20);
            pMissile.SetActive(true);

            // switch states
            this.Handle(pShip);
        }
Exemplo n.º 4
0
        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);
        }
Exemplo n.º 5
0
        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);
        }