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 لدرجة الدقة. يجب أن تعرض الحالة صالحة القيمة 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
.
مخصَّصة للاستخدام الداخلي من قِبل واجهة برمجة التطبيقات.
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
بالبيانات.
يجب أن تكون صحيحة لتكون دوال getter (DisplayName
، وAvatarUrl
، وId
، وما إلى ذلك) قابلة للاستخدام في MultiplayerParticipant
.
r=or
MultiplayerParticipant & operator=( const MultiplayerParticipant & copy_from )
تخصيص MultiplayerParticipant
هذا عن طريق النسخ من ملف آخر.
r=or
MultiplayerParticipant & operator=( MultiplayerParticipant && move_from )
لتعيين MultiplayerParticipant
هذا من خلال نقل رمز آخر إليه.
~المشاركون متعدد اللاعبين
~MultiplayerParticipant()