Ejemplo n.º 1
0
 private ShipManager()
 {
     this.shipReadyState         = new ShipReadyState();
     this.shipMissileFlyingState = new ShipMissileFlyingState();
     this.shipEndState           = new ShipEndState();
     this.cannonShip             = null;
     this.missile = null;
 }
Ejemplo n.º 2
0
        private ShipMan()//:base(1,1)
        {
            // Store the states
            ReadyState  = new ShipReadyState();
            FlyingState = new ShipMissleFlyingState();
            DeadState   = new ShipDeadState();

            // set active
            Ship       = null;
            BulletLeaf = null;
        }