Exemplo n.º 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;
        }
Exemplo n.º 2
0
 public override void Visit(ShipLeaf b)
 {
     if (locationY == 201)  //hit left
     {
         ShipMan.GetShip().x += Nums.ShipSpeed;
     }
     else   //hit right
     {
         ShipMan.GetShip().x -= Nums.ShipSpeed;
     }
 }
Exemplo n.º 3
0
 public virtual void Visit(ShipLeaf b)
 {
 }