private ShipMan()//:base(1,1) { // Store the states ReadyState = new ShipReadyState(); FlyingState = new ShipMissleFlyingState(); DeadState = new ShipDeadState(); // set active Ship = null; BulletLeaf = null; }
public override void Visit(ShipLeaf b) { if (locationY == 201) //hit left { ShipMan.GetShip().x += Nums.ShipSpeed; } else //hit right { ShipMan.GetShip().x -= Nums.ShipSpeed; } }
public virtual void Visit(ShipLeaf b) { }