コード例 #1
0
ファイル: ShipMan.cs プロジェクト: xfanw/Game
        private ShipMan()//:base(1,1)
        {
            // Store the states
            ReadyState  = new ShipReadyState();
            FlyingState = new ShipMissleFlyingState();
            DeadState   = new ShipDeadState();

            // set active
            Ship       = null;
            BulletLeaf = null;
        }
コード例 #2
0
ファイル: BumperLeaf.cs プロジェクト: xfanw/Game
 public override void Visit(ShipLeaf b)
 {
     if (locationY == 201)  //hit left
     {
         ShipMan.GetShip().x += Nums.ShipSpeed;
     }
     else   //hit right
     {
         ShipMan.GetShip().x -= Nums.ShipSpeed;
     }
 }
コード例 #3
0
ファイル: Visitor.cs プロジェクト: xfanw/Game
 public virtual void Visit(ShipLeaf b)
 {
 }