gpg:: MultiplayerParticipant
#include <multiplayer_participant.h>
멀티플레이어 경기의 참여자에 관한 데이터를 포함하는 데이터 구조입니다.
요약
생성자 및 소멸자 |
|
|---|---|
MultiplayerParticipant()
|
|
MultiplayerParticipant(std::shared_ptr< const MultiplayerParticipantImpl > impl)
|
|
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
플레이어가 이
MultiplayerParticipant와 연결되어 있는지 여부입니다. |
Id() const
|
const std::string &
이
MultiplayerParticipant의 Id입니다. |
IsConnectedToRoom() const
|
bool
이 참여자가
RealTimeRoom에 연결되어 있는지 여부입니다. |
MatchRank() const
|
uint32_t
일치 내에서 이
MultiplayerParticipant의 순위입니다. |
MatchResult() const
|
이
MultiplayerParticipant의 일치 결과입니다. |
Player() const
|
이
MultiplayerParticipant와 연결된 플레이어입니다. |
Status() const
|
일치와 관련하여 이
MultiplayerParticipant의 상태입니다. |
Valid() const
|
bool
이
MultiplayerParticipant에 데이터가 채워지면 true를 반환합니다. |
operator=(const MultiplayerParticipant & copy_from)
|
다른
MultiplayerParticipant에서 복사하여 이 MultiplayerParticipant를 할당합니다. |
operator=(MultiplayerParticipant && move_from)
|
다른
MultiplayerParticipant를 이 MultiplayerParticipant로 이동하여 할당합니다. |
공개 함수
AvatarUrl
const std::string & AvatarUrl( ImageResolution resolution ) const
이 MultiplayerParticipant의 아바타 이미지가 있는 URL을 반환합니다.
ImageResolution 매개변수는 반환된 이미지의 해상도를 지정합니다. 해상도로 ICON 또는 HI_RES를 지정합니다. 이 함수를 사용할 수 있으려면 유효가 true를 반환해야 합니다.
DisplayName
const std::string & DisplayName() const
이 MultiplayerParticipant의 표시 이름입니다.
이 함수를 사용할 수 있으려면 유효가 true를 반환해야 합니다.
HasMatchResult
bool HasMatchResult() const
이 참여자에게 이 경기의 결과가 있는지 여부입니다.
false인 경우 MatchResult 및 MatchRank가 유효한 데이터를 반환하지 않습니다. 이 함수를 사용할 수 있으려면 유효가 true를 반환해야 합니다.
HasPlayer
bool HasPlayer() const
플레이어가 이 MultiplayerParticipant와 연결되어 있는지 여부입니다.
이 함수를 사용할 수 있으려면 유효가 true를 반환해야 합니다.
ID
const std::string & Id() const
이 MultiplayerParticipant의 Id입니다.
Id는 단일 일치 범위 내에서만 유효하며 Player::Id()와 다릅니다. 이 함수를 사용할 수 있으려면 유효가 true를 반환해야 합니다.
IsConnectedToRoom
bool IsConnectedToRoom() const
이 참여자가 RealTimeRoom에 연결되어 있는지 여부입니다.
TurnBasedMatch의 참여자인 경우 항상 false입니다.
MatchRank
uint32_t MatchRank() const
일치 내에서 이 MultiplayerParticipant의 순위입니다.
이 함수를 사용할 수 있으려면 유효가 true를 반환해야 합니다. HasMatchResult()가 true를 반환하지 않으면 이 함수는 0을 반환합니다.
MatchResult
gpg::MatchResult MatchResult() const
이 MultiplayerParticipant의 일치 결과입니다.
이 함수를 사용할 수 있으려면 유효가 true를 반환해야 합니다. HasMatchResult()가 true를 반환하지 않으면 이 함수는 MatchResult::None을 반환합니다.
MultiplayerParticipant
MultiplayerParticipant()
MultiplayerParticipant
MultiplayerParticipant( std::shared_ptr< const MultiplayerParticipantImpl > impl )
shared_ptr에서 MultiplayerParticipantImpl로 MultiplayerParticipant를 구성합니다.
API에서 내부적으로 사용하기 위한 용도입니다.
MultiplayerParticipant
MultiplayerParticipant( const MultiplayerParticipant & copy_from )
기존 MultiplayerParticipant의 사본을 만듭니다.
MultiplayerParticipant
MultiplayerParticipant( MultiplayerParticipant && move_from )
기존 MultiplayerParticipant를 이동합니다.
상태
ParticipantStatus Status() const
일치와 관련하여 이 MultiplayerParticipant의 상태입니다.
이 함수를 사용할 수 있으려면 유효가 true를 반환해야 합니다.
Valid
bool Valid() const
이 MultiplayerParticipant에 데이터가 채워지면 true를 반환합니다.
이 MultiplayerParticipant의 getter 함수 (DisplayName, AvatarUrl, Id 등)를 사용할 수 있으려면 true여야 합니다.
operator=
MultiplayerParticipant & operator=( const MultiplayerParticipant & copy_from )
다른 MultiplayerParticipant에서 복사하여 이 MultiplayerParticipant를 할당합니다.
operator=
MultiplayerParticipant & operator=( MultiplayerParticipant && move_from )
다른 MultiplayerParticipant를 이 MultiplayerParticipant로 이동하여 할당합니다.
~MultiplayerParticipant
~MultiplayerParticipant()