CPlayer.is_autoplayer C# (CSharp) Method

is_autoplayer() public method

public is_autoplayer ( ) : bool
return bool
    public bool is_autoplayer()
    {
        return this.player_type == PLAYER_TYPE.AI;
    }

Usage Example

Esempio n. 1
0
    /// <summary>
    /// ai플레이일 경우 딜레이 값을 넣어줘서 너무 빨리 진행되지 않도록 한다.
    /// </summary>
    /// <param name="current_player"></param>
    /// <returns></returns>
    byte get_aiplayer_delay(CPlayer current_player)
    {
        byte delay = 0;

        if (current_player.is_autoplayer())
        {
            delay = 1;
        }

        return(delay);
    }
All Usage Examples Of CPlayer::is_autoplayer