public static string PrintPlayerState(PlayerFrameState state)
    {
        string str = "";

        if ((state & PlayerFrameState.AERIAL) != 0)
        {
            str += "Aerial ";
        }
        if ((state & PlayerFrameState.HITSTUN) != 0)
        {
            str += "HitStun ";
        }
        if ((state & PlayerFrameState.ATTACK_NONCANCELLABLE) != 0)
        {
            str += "AttackNC ";
        }
        if ((state & PlayerFrameState.ATTACK_CANCELLABLE) != 0)
        {
            str += "AttackC ";
        }
        if ((state & PlayerFrameState.MOVING_HORIZ) != 0)
        {
            str += "MovingHorizontal ";
        }
        if ((state & PlayerFrameState.MOVING_VERT) != 0)
        {
            str += "MovingVertical ";
        }
        if ((state & PlayerFrameState.BLOCKSTUN) != 0)
        {
            str += "BLOCKSTUN ";
        }
        if ((state & PlayerFrameState.CROUCHING) != 0)
        {
            str += "CROUCHING ";
        }

        return(str);
    }
Пример #2
0
 public void RemoveState(PlayerFrameState state)
 {
     stateData.FrameState &= ~state;
 }
Пример #3
0
 public bool CheckState(PlayerFrameState state)
 {
     return((stateData.FrameState & state) != 0);
 }
Пример #4
0
 public void AddState(PlayerFrameState state)
 {
     stateData.FrameState |= state;
 }