public override void Update() { base.Update(); // All move handles set back to LR move State //Debug.WriteLine("------"); this.pMoveState = ShipMan.GetState(ShipMan.State.MoveLeftRight); }
//---------------------------------------------------------------------------------- // 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; }
public void SetMoveState(ShipMan.State inState) { this.moveState = ShipMan.GetState(inState); }
public void SetShootState(ShipMan.State inState) { this.pShootState = ShipMan.GetState(inState); }
public void setPositionState(ShipMan.State state) { this.posistionState = ShipMan.GetState(state); }
public void setState(ShipMan.State state) { this.state = ShipMan.GetState(state); }
public void SetState(ShipMan.StateName stateName) { state = ShipMan.GetState(stateName); this.stateName = stateName; }