gpg::TurnBasedMatchConfig

#include <turn_based_match_config.h>

資料結構包含建立 TurnBasedMatch 所需的資料。

摘要

建構函式和解構函式

TurnBasedMatchConfig(std::shared_ptr< const TurnBasedMatchConfigImpl > impl)
建構從 shared_ptrTurnBasedMatchConfigImplTurnBasedMatchConfig
TurnBasedMatchConfig()
TurnBasedMatchConfig(const TurnBasedMatchConfig & copy_from)
建立現有 TurnBasedMatchConfig 的副本。
TurnBasedMatchConfig(TurnBasedMatchConfig && move_from)
移動現有的 TurnBasedMatchConfig

公用函式

ExclusiveBitMask() const
int64_t
代表玩家專屬角色的位元遮罩,例如「攻擊者」或「後衛」。
MaximumAutomatchingPlayers() const
uint32_t
要加入對戰的自動配對玩家人數上限。
MinimumAutomatchingPlayers() const
uint32_t
要加入對戰的自動配對玩家人數下限。
PlayerIdsToInvite() const
const std::vector< std::string > &
要邀請加入新建對戰的玩家 ID。
Valid() const
bool
如果這個 TurnBasedMatchConfig 已填入資料,則傳回 true。
Variant() const
uint32_t
開發人員專用值,用來表示比對類型或模式。
operator=(const TurnBasedMatchConfig & copy_from)
會從另一個 TurnBasedMatchConfig 中複製此 。
operator=(TurnBasedMatchConfig && move_from)
如要指派這個 TurnBasedMatchConfig,請將其他項目移至該項目。

類別

gpg::TurnBasedMatchConfig::Builder

建構一或多個 TurnBasedMatchConfig 物件。

公用函式

ExclusiveBitMask

int64_t ExclusiveBitMask() const 

代表玩家專屬角色的位元遮罩,例如「攻擊者」或「後衛」。

配對玩家的任何邏輯產品 (AND) 必須等於零,才能自動配對。只有在 Valid 傳回 true 時才能呼叫。

MaximumAutomatchingPlayers

uint32_t MaximumAutomatchingPlayers() const 

要加入對戰的自動配對玩家人數上限。

只有在 Valid 傳回 true 時才能呼叫。

MinimumAutomatchingPlayers

uint32_t MinimumAutomatchingPlayers() const 

要加入對戰的自動配對玩家人數下限。

只有在 Valid 傳回 true 時才能呼叫。

PlayerIdsToInvite

const std::vector< std::string > & PlayerIdsToInvite() const 

要邀請加入新建對戰的玩家 ID。

只有在 Valid 傳回 true 時才能呼叫。

TurnBasedMatchConfig

 TurnBasedMatchConfig(
  std::shared_ptr< const TurnBasedMatchConfigImpl > impl
)

建構從 shared_ptrTurnBasedMatchConfigImplTurnBasedMatchConfig

主要供 API 內部使用。

TurnBasedMatchConfig

 TurnBasedMatchConfig()

TurnBasedMatchConfig

 TurnBasedMatchConfig(
  const TurnBasedMatchConfig & copy_from
)

建立現有 TurnBasedMatchConfig 的副本。

TurnBasedMatchConfig

 TurnBasedMatchConfig(
  TurnBasedMatchConfig && move_from
)

移動現有的 TurnBasedMatchConfig

有效

bool Valid() const 

如果這個 TurnBasedMatchConfig 已填入資料,則傳回 true。

必須為 TurnBasedMatchConfig 物件上的 getter 函式 (PlayerIdsToInviteMinimumAutomatchingPlayers 等) 傳回 true,才能使用這個值。

Variant

uint32_t Variant() const 

開發人員專用值,用來表示比對類型或模式。

只有使用相同值的玩家才能進行配對。只有在 Valid 傳回 true 時才能呼叫。

運算子=

TurnBasedMatchConfig & operator=(
  const TurnBasedMatchConfig & copy_from
)

會從另一個 TurnBasedMatchConfig 中複製此 。

運算子=

TurnBasedMatchConfig & operator=(
  TurnBasedMatchConfig && move_from
)

如要指派這個 TurnBasedMatchConfig,請將其他項目移至該項目。