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
تعرض القيمة 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 لدرجة الدقة. صالحة يجب أن تعرض القيمة "صحيح" لهذه الدالة لتكون قابلة للاستخدام.
DisplayName
const std::string & DisplayName() const
الاسم المعروض لجهاز MultiplayerParticipant هذا.
صالحة يجب أن تعرض القيمة "صحيح" لهذه الدالة لتكون قابلة للاستخدام.
HasMatchResult
bool HasMatchResult() const
ما إذا كان لدى هذا المشارك نتيجة لهذه المطابقة.
إذا كانت القيمة "false"، لا تعرض MatchResult وMatchRank بيانات صالحة. صالحة يجب أن تعرض القيمة "صحيح" لهذه الدالة لتكون قابلة للاستخدام.
HasPlayer
bool HasPlayer() const
ما إذا كان اللاعب مرتبطًا بحساب MultiplayerParticipant هذا.
صالحة يجب أن تعرض القيمة "صحيح" لهذه الدالة لتكون قابلة للاستخدام.
Id
const std::string & Id() const
Id من MultiplayerParticipant.
تكون قيم Id صالحة فقط في نطاق مطابقة واحدة، وتختلف عن مطابقة Player::Id(). صالحة يجب أن تعرض القيمة "صحيح" لهذه الدالة لتكون قابلة للاستخدام.
IsConnectedToRoom
bool IsConnectedToRoom() const
ما إذا كان هذا المشارك متصلاً بجهاز RealTimeRoom.
يتم الضبط على "خطأ دائمًا" إذا كان هذا مشاركًا من TurnBasedMatch.
MatchRank
uint32_t MatchRank() const
ترتيب نتيجة MultiplayerParticipant هذه في نطاق مطابقتها
صالحة يجب أن تعرض القيمة "صحيح" لهذه الدالة لتكون قابلة للاستخدام. إذا لم تكن الدالة HasMatchResult() تعرض القيمة "صحيح"، تكون قيمة هذه الدالة هي 0.
MatchResult
gpg::MatchResult MatchResult() const
نتيجة المطابقة لهذا MultiplayerParticipant.
صالحة يجب أن تعرض القيمة "صحيح" لهذه الدالة لتكون قابلة للاستخدام. إذا لم تكن الدالة HasMatchResult() تعرض القيمة "صحيح"، ستعرض هذه الدالة القيمة MatchResult::None.
MultiplayerParticipant
MultiplayerParticipant()
MultiplayerParticipant
MultiplayerParticipant( std::shared_ptr< const MultiplayerParticipantImpl > impl )
تنشئ MultiplayerParticipant من shared_ptr إلى MultiplayerParticipantImpl.
مخصص للاستخدام الداخلي من خلال واجهة برمجة التطبيقات.
MultiplayerParticipant
MultiplayerParticipant( const MultiplayerParticipant & copy_from )
تنشئ نسخة من MultiplayerParticipant حالية.
MultiplayerParticipant
MultiplayerParticipant( MultiplayerParticipant && move_from )
يؤدي هذا الإجراء إلى نقل عنصر MultiplayerParticipant حالي.
اللاعب
gpg::Player Player() const
المشغّل المرتبط بـ MultiplayerParticipant.
يجب أن تكون قيمة كل من صالحة وHasPlayer هي القيمة "صحيح" لهذه الدالة لتكون قابلة للاستخدام.
الحالة
ParticipantStatus Status() const
حالة MultiplayerParticipant في ما يتعلق بالمطابقة.
صالحة يجب أن تعرض القيمة "صحيح" لهذه الدالة لتكون قابلة للاستخدام.
صحيح
bool Valid() const
تعرض القيمة true إذا تمت تعبئة MultiplayerParticipant بالبيانات.
يجب أن تكون القيمة صحيحة حتى تكون دوال دالة getter (DisplayName وAvatarUrl وId وما إلى ذلك) في MultiplayerParticipant هذه قابلة للاستخدام.
operator=
MultiplayerParticipant & operator=( const MultiplayerParticipant & copy_from )
يتم تعيين MultiplayerParticipant هذا عن طريق النسخ من ملف آخر.
operator=
MultiplayerParticipant & operator=( MultiplayerParticipant && move_from )
تعيِّن MultiplayerParticipant هذه من خلال نقل عنصر آخر إليها.
~المشارِكون في لاعبِين متعددين
~MultiplayerParticipant()