gpg::MultiplayerParticipant

#include <multiplayer_participant.h>

מבנה נתונים שמכיל נתונים על משתתף במשחק רב-משתתפים.

סיכום

בונים והורסים

MultiplayerParticipant()
MultiplayerParticipant(std::shared_ptr< const MultiplayerParticipantImpl > impl)
הפונקציה יוצרת MultiplayerParticipant מ-shared_ptr ל-MultiplayerParticipantImpl.
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 &
IsConnectedToRoom() const
bool
האם המשתתף הזה מחובר אל RealTimeRoom.
MatchRank() const
uint32_t
הדירוג של MultiplayerParticipant הזה בטווח ההתאמה שלו.
MatchResult() const
תוצאת ההתאמה עבור MultiplayerParticipant זה.
Player() const
הנגן המשויך ל-MultiplayerParticipant הזה.
Status() const
הסטטוס של MultiplayerParticipant הזה ביחס להתאמה.
Valid() const
bool
הפונקציה מחזירה את הערך True אם השדה 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 

האם למשתתף הזה יש תוצאה להתאמה הזו.

אם False, התוצאות MatchResult ו-MatchRank לא מחזירות נתונים חוקיים. כדי שיהיה אפשר להשתמש בפונקציה הזו, הערך תקין חייב להחזיר true.

HasPlayer

bool HasPlayer() const 

האם נגן משויך ל-MultiplayerParticipant הזה.

כדי שיהיה אפשר להשתמש בפונקציה הזו, הערך תקין חייב להחזיר true.

Id

const std::string & Id() const 

Id של MultiplayerParticipant.

תווי Id תקפים רק בהתאמה אחת, והם שונים מההתאמה של Player::Id(). כדי שיהיה אפשר להשתמש בפונקציה הזו, הערך תקין חייב להחזיר true.

IsConnectedToRoom

bool IsConnectedToRoom() const 

האם המשתתף הזה מחובר אל RealTimeRoom.

תמיד false אם הוא משתתף מ-TurnBasedMatch.

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
)

הפונקציה יוצרת MultiplayerParticipant מ-shared_ptr ל-MultiplayerParticipantImpl.

מיועד לשימוש פנימי על ידי ה-API.

MultiplayerParticipant

 MultiplayerParticipant(
  const MultiplayerParticipant & copy_from
)

יצירת עותק של MultiplayerParticipant קיים.

MultiplayerParticipant

 MultiplayerParticipant(
  MultiplayerParticipant && move_from
)

העברת MultiplayerParticipant קיים.

שחקן

gpg::Player Player() const 

הנגן המשויך ל-MultiplayerParticipant הזה.

תקין ו-HasPlayer חייבים להחזיר true כדי שניתן יהיה להשתמש בפונקציה הזו.

סטטוס

ParticipantStatus Status() const 

הסטטוס של MultiplayerParticipant הזה ביחס להתאמה.

כדי שיהיה אפשר להשתמש בפונקציה הזו, הערך תקין חייב להחזיר true.

נתונים תקפים

bool Valid() const 

הפונקציה מחזירה את הערך True אם השדה MultiplayerParticipant מאוכלס בנתונים.

חייב להיות TRUE כדי שאפשר יהיה להשתמש בפונקציות geter (DisplayName, AvatarUrl, Id וכו') ב-MultiplayerParticipant הזה.

אופרטור=

MultiplayerParticipant & operator=(
  const MultiplayerParticipant & copy_from
)

הקצאת MultiplayerParticipant באמצעות העתקה ממכשיר אחר.

אופרטור=

MultiplayerParticipant & operator=(
  MultiplayerParticipant && move_from
)

הפונקציה מקצה את MultiplayerParticipant על ידי העברת כרטיס אחר אליו.

~משתתף מרובה-משתתפים

 ~MultiplayerParticipant()