Ejemplo n.º 1
0
        public CoreCannonMoveState GetMoveState(MoveState state)
        {
            CoreCannonMoveState pShipMoveState = null;

            switch (state)
            {
            case CoreCannonManager.MoveState.Free:
                pShipMoveState = this.pFreeState;
                break;

            case CoreCannonManager.MoveState.LeftOnly:
                pShipMoveState = this.pLeftOnlyState;
                break;

            case CoreCannonManager.MoveState.RightOnly:
                pShipMoveState = this.pRightOnlyState;
                break;

            default:
                Debug.Assert(false);
                break;
            }

            return(pShipMoveState);
        }
Ejemplo n.º 2
0
        public CoreCannon(GameObject.Name name, Sprite.Name spriteName, float posX, float posY)
            : base(name, spriteName)
        {
            this.x = posX;
            this.y = posY;

            this.coreCannonSpeed = 3.0f;
            this.pMissileState   = null;
            this.pMoveState      = null;
        }
Ejemplo n.º 3
0
 public void SetMoveState(CoreCannonManager.MoveState inState)
 {
     this.pMoveState = GameStateManager.GetGame().GetStateCoreCannonManager().GetMoveState(inState);
 }