gpg::TurnBasedMatchConfig

#include <turn_based_match_config.h>

TurnBasedMatch の作成に必要なデータを含むデータ構造。

概要

コンストラクタとデストラクタ

TurnBasedMatchConfig(std::shared_ptr< const TurnBasedMatchConfigImpl > impl)
shared_ptr から TurnBasedMatchConfigImpl への TurnBasedMatchConfig を作成します。
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

1 つ以上の TurnBasedMatchConfig オブジェクトを作成します。

パブリック関数

ExclusiveBitMask

int64_t ExclusiveBitMask() const 

「攻撃者」や「防御側」など、プレーヤーに固有のゲーム固有の役割を示すビットマスク。

自動対戦では、ペアリングされたプレーヤーの論理積(AND)が 0 であることが必要です。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_ptr から TurnBasedMatchConfigImpl への TurnBasedMatchConfig を作成します。

API による内部使用を対象としています。

TurnBasedMatchConfig

 TurnBasedMatchConfig()

TurnBasedMatchConfig

 TurnBasedMatchConfig(
  const TurnBasedMatchConfig & copy_from
)

既存の TurnBasedMatchConfig のコピーを作成します。

TurnBasedMatchConfig

 TurnBasedMatchConfig(
  TurnBasedMatchConfig && move_from
)

既存の TurnBasedMatchConfig を移動します。

有効

bool Valid() const 

この TurnBasedMatchConfig にデータが入力されている場合、true を返します。

TurnBasedMatchConfig オブジェクトのゲッター関数(PlayerIdsToInviteMinimumAutomatchingPlayers など)を使用できるようにするには、true を返す必要があります。

バリアント

uint32_t Variant() const 

マッチタイプまたはモードを示すために使用するデベロッパー固有の値。

マッチングできるのは、同じ値を使用するプレーヤーのみです。Valid が true を返す場合にのみ呼び出すことができます。

演算子=

TurnBasedMatchConfig & operator=(
  const TurnBasedMatchConfig & copy_from
)

この TurnBasedMatchConfig を別のものからコピーして割り当てます。

演算子=

TurnBasedMatchConfig & operator=(
  TurnBasedMatchConfig && move_from
)

この TurnBasedMatchConfig を別のものに移動することで割り当てます。