Exemplo n.º 1
0
 public override void Update()
 {
     base.Update();
     // All move handles set back to LR move State
     //Debug.WriteLine("------");
     this.pMoveState = ShipMan.GetState(ShipMan.State.MoveLeftRight);
 }
Exemplo n.º 2
0
        //----------------------------------------------------------------------------------
        // Constructor
        //----------------------------------------------------------------------------------
        public Ship(GameObject.Name name, GameSprite.Name spriteName, float posX, float posY)
            : base(name, spriteName, ShipCategory.Type.Ship)
        {
            this.x = posX;
            this.y = posY;

            this.shipSpeed = 3.0f;
            this.state     = null;

            this.pMoveState  = ShipMan.GetState(ShipMan.State.MoveLeftRight);
            this.pShootState = null;
        }
Exemplo n.º 3
0
 public void SetMoveState(ShipMan.State inState)
 {
     this.moveState = ShipMan.GetState(inState);
 }
Exemplo n.º 4
0
 public void SetShootState(ShipMan.State inState)
 {
     this.pShootState = ShipMan.GetState(inState);
 }
Exemplo n.º 5
0
 public void setPositionState(ShipMan.State state)
 {
     this.posistionState = ShipMan.GetState(state);
 }
Exemplo n.º 6
0
 public void setState(ShipMan.State state)
 {
     this.state = ShipMan.GetState(state);
 }
Exemplo n.º 7
0
 public void SetState(ShipMan.StateName stateName)
 {
     state          = ShipMan.GetState(stateName);
     this.stateName = stateName;
 }