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 &
वह यूआरएल दिखाता है जहां इस
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
से जुड़ा खिलाड़ी.
इस फ़ंक्शन को इस्तेमाल करने के लिए, Valid और HasPlayer दोनों को 'सही' दिखाना होगा.
स्थिति
ParticipantStatus Status() const
मिलान के संबंध में इस MultiplayerParticipant
की स्थिति.
इस फ़ंक्शन को इस्तेमाल करने के लिए, मान्य फ़ंक्शन को 'सही' दिखाना चाहिए.
वैध
bool Valid() const
अगर MultiplayerParticipant
में डेटा अपने-आप भर जाता है, तो 'सही' दिखाता है.
इस MultiplayerParticipant
पर गैटर फ़ंक्शन (DisplayName
, AvatarUrl
, Id
वगैरह) के इस्तेमाल के लिए सही होना चाहिए.
ऑपरेटर=
MultiplayerParticipant & operator=( const MultiplayerParticipant & copy_from )
यह MultiplayerParticipant
किसी अन्य कोड से कॉपी करके, इसे असाइन करता है.
ऑपरेटर=
MultiplayerParticipant & operator=( MultiplayerParticipant && move_from )
यह MultiplayerParticipant
किसी दूसरे को इसमें मूव करके असाइन करता है.
~मल्टीप्लेयर में हिस्सा लेने वाले व्यक्ति
~MultiplayerParticipant()