Beispiel #1
0
        private ShipMan()//:base(1,1)
        {
            // Store the states
            ReadyState  = new ShipReadyState();
            FlyingState = new ShipMissleFlyingState();
            DeadState   = new ShipDeadState();

            // set active
            Ship       = null;
            BulletLeaf = null;
        }
        private ShipManager()
        {
            // Store the states
            this.pStateReady                  = new ShipStateReady();
            this.pStateMissileFlying          = new ShipMissileFlyingState();
            this.pStateDead                   = new ShipDeadState();
            this.pStateStopLeft               = new ShipStopLeftState();
            this.pStateStopRight              = new ShipStopRightState();
            this.pStateStopLeftMissileFlying  = new ShipStopLeftMissileFlyingState();
            this.pStateStopRightMissileFlying = new ShipStopRightMissileFlyingState();


            // set active
            pShip    = null;
            pMissile = null;
        }