Пример #1
0
        private ShipManager()
        {
            // Store the states
            this.pStateReady         = new ShipStateReady();
            this.pStateMissileFlying = new ShipStateMissileFlying();
            this.pStateEnd           = new ShipStateEnd();

            // set active
            this.pCurrentShip = null;
            this.pMissile     = null;
        }
Пример #2
0
        private ShipMan()
        {
            // Store the states
            this.pStateReady         = new ShipStateReady();
            this.pStateMissileFlying = new ShipStateMissileFlying();
            this.pStateEnd           = new ShipStateEnd();
            this.pShipStateMoveBoth  = new ShipStateMoveBoth();
            this.pShipStateMoveLeft  = new ShipStateMoveLeft();
            this.pShipStateMoveRight = new ShipStateMoveRight();

            // set active
            this.pShip    = null;
            this.pMissile = null;
        }
Пример #3
0
        //----------------------------------------------------------------------------------
        // Constructor
        //----------------------------------------------------------------------------------
        private ShipMan()
        {
            // Store the states
            this.pStateReady         = new ShipStateReady();
            this.pStateMissileFlying = new ShipStateMissileFlying();
            this.pStateDead          = new ShipStateDead();


            this.pMoveLeftRightState = new ShipMoveLeftRightState();
            this.pMoveLeftState      = new ShipMoveLeftState();
            this.pMoveRightState     = new ShipMoveRightState();

            // set active
            this.pShip    = null;
            this.pMissile = null;
        }
Пример #4
0
        private ShipMan()
        {
            this.pStateReady         = new ShipStateReady();
            this.pStateMissileFlying = new ShipStateMissileFlying();
            this.pStateEnd           = new ShipStateEnd();

            this.pNoLeftState   = new NoLeftState();
            this.pNoRightState  = new NoRightState();
            this.pFreeMoveState = new FreeMoveState();
            this.pNoMoveState   = new NoMoveState();


            this.poShip   = null;
            this.pMissile = null;
            this.lives    = 3;
        }