internal override void ChangeState(PieceStateType _type)
        {
            switch (_type)
            {
            case PieceStateType.Stand:
                this.isAttackalbe = false;
                ChangeAction(PieceActionType.Stand);
                break;

            case PieceStateType.Move:
                this.isAttackalbe = false;
                ChangeAction(PieceActionType.Move);
                break;

            default:
                throw new System.ArgumentException("PieceStateType is Not Correctable! : " + _type);
            }
            stateType = _type;
        }
示例#2
0
 //abstract
 internal abstract void ChangeState(PieceStateType _type);