예제 #1
0
        public override void Notify()
        {
            // Debug.WriteLine("Shoot Observer");
            Ship pShip = ShipMan.GetShip();

            pShip.ShootMissile();
        }
        public override void Notify()
        {
            Debug.WriteLine("Shoot Missile Observer");
            Ship pShip = ShipManager.GetCurrentShip();

            pShip.ShootMissile();
        }
예제 #3
0
        public override void Notify()
        {
            //Testing purposes
            //Debug.WriteLine("Shoot");

            //get the ship
            Ship pShip = ShipMan.GetShip();

            //tell the ship to shoot/create a missile
            pShip.ShootMissile();
        }
예제 #4
0
        protected override void derivedUpdate(InputSubject pInputSubject)
        {
            Ship pShip = ShipManager.GetShip();

            pShip.ShootMissile();
        }
        public override void Notify()
        {
            Ship pShip = ShipMan.GetShip();

            pShip.ShootMissile();
        }