예제 #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
        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;
        }