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 &
แสดง URL ที่มีภาพอวาตาร์ของ
MultiplayerParticipant นี้อยู่ |
DisplayName() const
|
const std::string &
ชื่อที่แสดงของ
MultiplayerParticipant นี้ |
HasMatchResult() const
|
bool
ผู้เข้าร่วมรายนี้มีผลการแข่งขันนี้ไหม
|
HasPlayer() const
|
bool
มีการเชื่อมโยงผู้เล่นกับ
MultiplayerParticipant นี้หรือไม่ |
Id() const
|
const std::string &
Id ของMultiplayerParticipant นี้ |
IsConnectedToRoom() const
|
bool
ผู้เข้าร่วมรายนี้เชื่อมต่อกับ
RealTimeRoom หรือไม่ |
MatchRank() const
|
uint32_t
อันดับของ
MultiplayerParticipant นี้ภายในรายการที่ตรงกัน |
MatchResult() const
|
ผลการแข่งขันสำหรับ
MultiplayerParticipant นี้ |
Player() const
|
โปรแกรมเล่นที่เชื่อมโยงกับ
MultiplayerParticipant นี้ |
Status() const
|
สถานะของ
MultiplayerParticipant นี้ที่เกี่ยวข้องกับการจับคู่ |
Valid() const
|
bool
แสดงค่า "จริง" หาก
MultiplayerParticipant นี้ป้อนข้อมูล |
operator=(const MultiplayerParticipant & copy_from)
|
มอบหมาย
MultiplayerParticipant นี้โดยคัดลอกจากรายการอื่น |
operator=(MultiplayerParticipant && move_from)
|
มอบหมาย
MultiplayerParticipant นี้โดยย้ายรายการอื่นเข้าไป |
ฟังก์ชันสาธารณะ
AvatarUrl
const std::string & AvatarUrl( ImageResolution resolution ) const
แสดง URL ที่มีภาพอวาตาร์ของ MultiplayerParticipant
นี้อยู่
พารามิเตอร์ ImageResolution
ระบุความละเอียดของรูปภาพที่แสดงผล ระบุ ICON หรือ HI_RES สำหรับความละเอียด ค่าถูกต้องจะต้องแสดงผลเป็น true เพื่อให้ฟังก์ชันนี้ใช้งานได้
DisplayName
const std::string & DisplayName() const
ชื่อที่แสดงของ MultiplayerParticipant
นี้
ค่าถูกต้องจะต้องแสดงผลเป็น true เพื่อให้ฟังก์ชันนี้ใช้งานได้
HasMatchResult
bool HasMatchResult() const
ผู้เข้าร่วมรายนี้มีผลการแข่งขันนี้ไหม
หากเป็น "เท็จ" MatchResult และ MatchRank จะไม่แสดงผลข้อมูลที่ถูกต้อง ค่าถูกต้องจะต้องแสดงผลเป็น true เพื่อให้ฟังก์ชันนี้ใช้งานได้
HasPlayer
bool HasPlayer() const
มีการเชื่อมโยงผู้เล่นกับ MultiplayerParticipant
นี้หรือไม่
ค่าถูกต้องจะต้องแสดงผลเป็น true เพื่อให้ฟังก์ชันนี้ใช้งานได้
รหัส
const std::string & Id() const
Id
ของMultiplayerParticipant
นี้
Id
ใช้ได้ในขอบเขตของการจับคู่เดียวและต่างจากของ Player::Id()
ค่าถูกต้องจะต้องแสดงผลเป็น true เพื่อให้ฟังก์ชันนี้ใช้งานได้
IsConnectedToRoom
bool IsConnectedToRoom() const
ผู้เข้าร่วมรายนี้เชื่อมต่อกับ RealTimeRoom
หรือไม่
เป็นเท็จเสมอ หากนี่เป็นผู้เข้าร่วมจาก TurnBasedMatch
MatchRank
uint32_t MatchRank() const
อันดับของ MultiplayerParticipant
นี้ภายในรายการที่ตรงกัน
ค่าถูกต้องจะต้องแสดงผลเป็น true เพื่อให้ฟังก์ชันนี้ใช้งานได้ หาก HasMatchResult()
ไม่แสดงผลเป็น "จริง" ฟังก์ชันนี้แสดงผลเป็น 0
MatchResult
gpg::MatchResult MatchResult() const
ผลการแข่งขันสำหรับ MultiplayerParticipant
นี้
ค่าถูกต้องจะต้องแสดงผลเป็น true เพื่อให้ฟังก์ชันนี้ใช้งานได้ หาก HasMatchResult()
ไม่แสดงผล "จริง" ฟังก์ชันนี้จะแสดงผล MatchResult::None
MultiplayerParticipant
MultiplayerParticipant()
MultiplayerParticipant
MultiplayerParticipant( std::shared_ptr< const MultiplayerParticipantImpl > impl )
สร้าง MultiplayerParticipant
จาก shared_ptr
เป็น MultiplayerParticipantImpl
มีไว้เพื่อใช้ภายในโดย API
MultiplayerParticipant
MultiplayerParticipant( const MultiplayerParticipant & copy_from )
สร้างสำเนาของ MultiplayerParticipant
ที่มีอยู่
MultiplayerParticipant
MultiplayerParticipant( MultiplayerParticipant && move_from )
ย้าย MultiplayerParticipant
ที่มีอยู่
สถานะ
ParticipantStatus Status() const
สถานะของ MultiplayerParticipant
นี้ที่เกี่ยวข้องกับการจับคู่
ค่าถูกต้องจะต้องแสดงผลเป็น true เพื่อให้ฟังก์ชันนี้ใช้งานได้
ถูกต้อง
bool Valid() const
แสดงค่า "จริง" หาก MultiplayerParticipant
นี้ป้อนข้อมูล
ต้องเป็น "จริง" เพื่อให้ฟังก์ชัน Getter (DisplayName
, AvatarUrl
, Id
ฯลฯ) ใน MultiplayerParticipant
นี้ใช้งานได้
operator=
MultiplayerParticipant & operator=( const MultiplayerParticipant & copy_from )
มอบหมาย MultiplayerParticipant
นี้โดยคัดลอกจากรายการอื่น
operator=
MultiplayerParticipant & operator=( MultiplayerParticipant && move_from )
มอบหมาย MultiplayerParticipant
นี้โดยย้ายรายการอื่นเข้าไป
~ผู้เล่นหลายคนของผู้เข้าร่วม
~MultiplayerParticipant()