gpg::MultiplayerParticipant

#include <multiplayer_participant.h>

멀티플레이어 경기의 참가자에 관한 데이터가 포함된 데이터 구조입니다.

요약

생성자 및 소멸자

MultiplayerParticipant()
MultiplayerParticipant(std::shared_ptr< const MultiplayerParticipantImpl > impl)
shared_ptr에서 MultiplayerParticipantImplMultiplayerParticipant를 구성합니다.
MultiplayerParticipant(const MultiplayerParticipant & copy_from)
기존 MultiplayerParticipant의 사본을 생성합니다.
MultiplayerParticipant(MultiplayerParticipant && move_from)
기존 MultiplayerParticipant를 이동합니다.
~MultiplayerParticipant()

공개 함수

AvatarUrl(ImageResolution resolution) const
const std::string &
MultiplayerParticipant의 아바타 이미지가 있는 URL을 반환합니다.
DisplayName() const
const std::string &
MultiplayerParticipant의 표시 이름입니다.
HasMatchResult() const
bool
참가자에게 이 경기의 결과가 있는지 여부입니다.
HasPlayer() const
bool
Player가 이 MultiplayerParticipant와 연결되어 있는지 여부입니다.
Id() const
const std::string &
MultiplayerParticipantId입니다.
IsConnectedToRoom() const
bool
이 참가자가 RealTimeRoom에 연결되어 있는지 여부입니다.
MatchRank() const
uint32_t
일치 항목 내에서 이 MultiplayerParticipant의 순위입니다.
MatchResult() const
MultiplayerParticipant의 일치 결과입니다.
Player() const
MultiplayerParticipant와 연결된 Player입니다.
Status() const
일치와 관련된 이 MultiplayerParticipant의 상태입니다.
Valid() const
bool
MultiplayerParticipant에 데이터가 채워져 있으면 true를 반환합니다.
operator=(const MultiplayerParticipant & copy_from)
다른 항목에서 복사하여 이 MultiplayerParticipant를 할당합니다.
operator=(MultiplayerParticipant && move_from)
다른 항목을 이동하여 이 MultiplayerParticipant를 할당합니다.

공개 함수

AvatarUrl

const std::string & AvatarUrl(
  ImageResolution resolution
) const 

MultiplayerParticipant의 아바타 이미지가 있는 URL을 반환합니다.

ImageResolution 매개변수는 반환된 이미지의 해상도를 지정합니다. 해상도로 ICON 또는 HI_RES를 지정합니다. 이 함수를 사용하려면 Valid가 true를 반환해야 합니다.

DisplayName

const std::string & DisplayName() const 

MultiplayerParticipant의 표시 이름입니다.

이 함수를 사용하려면 Valid가 true를 반환해야 합니다.

HasMatchResult

bool HasMatchResult() const 

참가자에게 이 경기의 결과가 있는지 여부입니다.

false인 경우 MatchResultMatchRank는 유효한 데이터를 반환하지 않습니다. 이 함수를 사용하려면 Valid가 true를 반환해야 합니다.

HasPlayer

bool HasPlayer() const 

Player가 이 MultiplayerParticipant와 연결되어 있는지 여부입니다.

이 함수를 사용하려면 Valid가 true를 반환해야 합니다.

ID

const std::string & Id() const 

MultiplayerParticipantId입니다.

Id는 단일 일치 범위에서만 유효하며 Player::Id()의 범위와 다릅니다. 이 함수를 사용하려면 Valid가 true를 반환해야 합니다.

IsConnectedToRoom

bool IsConnectedToRoom() const 

이 참여자가 RealTimeRoom에 연결되어 있는지 여부입니다.

TurnBasedMatch의 참여자인 경우 항상 false입니다.

MatchRank

uint32_t MatchRank() const 

일치 항목 내에서 이 MultiplayerParticipant의 순위입니다.

이 함수를 사용하려면 Valid가 true를 반환해야 합니다. HasMatchResult()가 true를 반환하지 않으면 이 함수는 0을 반환합니다.

MatchResult

gpg::MatchResult MatchResult() const 

MultiplayerParticipant의 일치 결과입니다.

이 함수를 사용하려면 Valid가 true를 반환해야 합니다. HasMatchResult()가 true를 반환하지 않으면 이 함수는 MatchResult::None을 반환합니다.

MultiplayerParticipant

 MultiplayerParticipant()

MultiplayerParticipant

 MultiplayerParticipant(
  std::shared_ptr< const MultiplayerParticipantImpl > impl
)

shared_ptr에서 MultiplayerParticipantImplMultiplayerParticipant를 구성합니다.

API에서 내부적으로 사용하기 위한 용도입니다.

MultiplayerParticipant

 MultiplayerParticipant(
  const MultiplayerParticipant & copy_from
)

기존 MultiplayerParticipant의 사본을 생성합니다.

MultiplayerParticipant

 MultiplayerParticipant(
  MultiplayerParticipant && move_from
)

기존 MultiplayerParticipant를 이동합니다.

플레이어

gpg::Player Player() const 

MultiplayerParticipant와 연결된 Player입니다.

이 함수를 사용하려면 ValidHasPlayer 모두 true를 반환해야 합니다.

상태

ParticipantStatus Status() const 

일치와 관련된 이 MultiplayerParticipant의 상태입니다.

이 함수를 사용하려면 Valid가 true를 반환해야 합니다.

유효

bool Valid() const 

MultiplayerParticipant에 데이터가 채워져 있으면 true를 반환합니다.

MultiplayerParticipant의 getter 함수 (DisplayName, AvatarUrl, Id 등)를 사용하려면 true여야 합니다.

operator=

MultiplayerParticipant & operator=(
  const MultiplayerParticipant & copy_from
)

다른 항목에서 복사하여 이 MultiplayerParticipant를 할당합니다.

operator=

MultiplayerParticipant & operator=(
  MultiplayerParticipant && move_from
)

다른 항목을 이동하여 이 MultiplayerParticipant를 할당합니다.

~멀티플레이어 참가자

 ~MultiplayerParticipant()