gpg::MultiplayerParticipant

#include <multiplayer_participant.h>

एक डेटा स्ट्रक्चर, जिसमें एक से ज़्यादा खिलाड़ी वाले मैच में हिस्सा लेने वाले किसी व्यक्ति का डेटा शामिल होता है.

खास जानकारी

कंस्ट्रक्टर और डिस्ट्रक्टर

MultiplayerParticipant()
MultiplayerParticipant(std::shared_ptr< const MultiplayerParticipantImpl > impl)
shared_ptr से MultiplayerParticipantImpl तक MultiplayerParticipant बनाता है.
MultiplayerParticipant(const MultiplayerParticipant & copy_from)
मौजूदा MultiplayerParticipant की कॉपी बनाता है.
MultiplayerParticipant(MultiplayerParticipant && move_from)
मौजूदा MultiplayerParticipant को ले जाता है.
~MultiplayerParticipant()

सार्वजनिक फ़ंक्शन

AvatarUrl(ImageResolution resolution) const
const std::string &
वह यूआरएल लौटाता है जहां इस MultiplayerParticipant के अवतार की इमेज मौजूद है.
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 में डेटा का डेटा अपने-आप भर जाता है, तो 'सही' दिखाता है.
operator=(const MultiplayerParticipant & copy_from)
किसी अन्य इमेज से कॉपी करके, इस MultiplayerParticipant को असाइन करता है.
operator=(MultiplayerParticipant && move_from)
किसी अन्य MultiplayerParticipant को उसमें ले जाकर, इसे असाइन करता है.

सार्वजनिक फ़ंक्शन

AvatarUrl

const std::string & AvatarUrl(
  ImageResolution resolution
) const 

वह यूआरएल लौटाता है जहां इस MultiplayerParticipant के अवतार की इमेज मौजूद है.

ImageResolution पैरामीटर, दिखाई गई इमेज का रिज़ॉल्यूशन बताता है. रिज़ॉल्यूशन के लिए ICON या HI_RES तय करें. इस फ़ंक्शन को इस्तेमाल करने के लिए, मान्य वैल्यू 'सही' होनी चाहिए.

DisplayName

const std::string & DisplayName() const 

इस MultiplayerParticipant का डिसप्ले नेम.

इस फ़ंक्शन को इस्तेमाल करने के लिए, मान्य वैल्यू 'सही' होनी चाहिए.

HasMatchResult

bool HasMatchResult() const 

हिस्सा लेने वाले इस व्यक्ति के पास इस मैच के लिए कोई नतीजा है या नहीं.

अगर गलत है, तो MatchResult और MatchRank को मान्य डेटा नहीं दिखाया जाएगा. इस फ़ंक्शन को इस्तेमाल करने के लिए, मान्य वैल्यू 'सही' होनी चाहिए.

HasPlayer

bool HasPlayer() const 

कोई खिलाड़ी इस MultiplayerParticipant से जुड़ा है या नहीं.

इस फ़ंक्शन को इस्तेमाल करने के लिए, मान्य वैल्यू 'सही' होनी चाहिए.

आईडी

const std::string & Id() const 

इस MultiplayerParticipant का Id.

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
)

shared_ptr से MultiplayerParticipantImpl तक MultiplayerParticipant बनाता है.

इसे एपीआई की टीम के अंदर इस्तेमाल करने के लिए बनाया गया है.

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 

अगर इस MultiplayerParticipant में डेटा का डेटा अपने-आप भर जाता है, तो 'सही' दिखाता है.

इस MultiplayerParticipant पर गैटर फ़ंक्शन (DisplayName, AvatarUrl, Id वगैरह) को इस्तेमाल करने के लिए सही होना चाहिए.

operator=

MultiplayerParticipant & operator=(
  const MultiplayerParticipant & copy_from
)

किसी अन्य इमेज से कॉपी करके, इस MultiplayerParticipant को असाइन करता है.

operator=

MultiplayerParticipant & operator=(
  MultiplayerParticipant && move_from
)

किसी अन्य MultiplayerParticipant को उसमें ले जाकर, इसे असाइन करता है.

~एक से ज़्यादा खिलाड़ी

 ~MultiplayerParticipant()