संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
gpg::PlayerLevel
#include <player_level.h>
एक ऐसा डेटा स्ट्रक्चर जिसमें खिलाड़ी के लेवल के बारे में डेटा शामिल होता है.
खास जानकारी
सार्वजनिक फ़ंक्शन
|
LevelNumber() const
|
uint32_t
इस लेवल के लिए संख्या दिखाता है, जैसे
|
MaximumXP() const
|
uint64_t
इस लेवल को छोड़कर, ज़्यादा से ज़्यादा XP वैल्यू दिखाता है.
|
MinimumXP() const
|
uint64_t
इस लेवल को हासिल करने के लिए ज़रूरी कम से कम XP वैल्यू दिखाता है.
|
Valid() const
|
bool
'सही' दिखाता है, जब लौटाए गए प्लेयर के लेवल में डेटा की जानकारी अपने-आप भर जाती है और इस दौरान उसके रिस्पॉन्स की स्थिति भी दिखती है; यह गलत, उपयोगकर्ता के बनाए गए ऐसे प्लेयर के लिए गलत है जो अपने-आप नहीं भरे हुए है या किसी उपयोगकर्ता के बनाए गए प्लेयर के लिए गलत है.
|
operator=(const PlayerLevel & copy_from)
|
किसी अन्य खिलाड़ी लेवल से इस खिलाड़ी लेवल की वैल्यू असाइन करने के लिए असाइनमेंट ऑपरेटर.
|
operator=(PlayerLevel && move_from)
|
किसी अन्य खिलाड़ी लेवल से इस खिलाड़ी लेवल की वैल्यू असाइन करने के लिए असाइनमेंट ऑपरेटर.
|
सार्वजनिक फ़ंक्शन
LevelNumber
uint32_t LevelNumber() const
इस लेवल के लिए संख्या दिखाता है, जैसे
"लेवल 10" है.
MaximumXP
uint64_t MaximumXP() const
इस लेवल को छोड़कर, ज़्यादा से ज़्यादा XP वैल्यू दिखाता है.
MinimumXP
uint64_t MinimumXP() const
इस लेवल को हासिल करने के लिए ज़रूरी कम से कम XP वैल्यू दिखाता है.
PlayerLevel
PlayerLevel()
PlayerLevel
PlayerLevel(
std::shared_ptr< const PlayerLevelImpl > impl
)
यह Shared_ptr से Player LevelImpl पर PlayerLevel बनाता है.
इसका इस्तेमाल सिर्फ़ अंदरूनी काम के लिए किया जाता है. इसे एपीआई के उपभोक्ता इस्तेमाल नहीं कर सकते.
PlayerLevel
PlayerLevel(
const PlayerLevel & copy_from
)
मौजूदा प्लेयर लेवल को नए में कॉपी करने के लिए कंस्ट्रक्टर को कॉपी करें.
PlayerLevel
PlayerLevel(
PlayerLevel && move_from
)
मौजूदा खिलाड़ी के लेवल को नए लेवल पर ले जाने का कंस्ट्रक्टर.
r-value-reference वर्शन का इस्तेमाल करें.
वैध
bool Valid() const
'सही' दिखाता है, जब लौटाए गए प्लेयर के लेवल में डेटा की जानकारी अपने-आप भर जाती है और इस दौरान उसके रिस्पॉन्स की स्थिति भी दिखती है; यह गलत, उपयोगकर्ता के बनाए गए ऐसे प्लेयर के लिए गलत है जो अपने-आप नहीं भरे हुए है या किसी उपयोगकर्ता के बनाए गए प्लेयर के लिए गलत है.
इस ऑब्जेक्ट पर गैटर फ़ंक्शन के इस्तेमाल किए जाने लायक होने के लिए यह सही होना चाहिए.
operator=
PlayerLevel & operator=(
const PlayerLevel & copy_from
)
किसी अन्य खिलाड़ी लेवल से इस खिलाड़ी लेवल की वैल्यू असाइन करने के लिए असाइनमेंट ऑपरेटर.
operator=
PlayerLevel & operator=(
PlayerLevel && move_from
)
किसी अन्य खिलाड़ी लेवल से इस खिलाड़ी लेवल की वैल्यू असाइन करने के लिए असाइनमेंट ऑपरेटर.
r-वैल्यू-रेफ़रंस वर्शन
~प्लेयर लेवल
~PlayerLevel()
इस पेज पर मौजूद कॉन्टेंट और कोड सैंपल कॉन्टेंट के लाइसेंस में बताए गए लाइसेंस के हिसाब से हैं. Java और OpenJDK, Oracle और/या इससे जुड़ी हुई कंपनियों के ट्रेडमार्क या रजिस्टर किए हुए ट्रेडमार्क हैं.
आखिरी बार 2025-07-27 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-27 (UTC) को अपडेट किया गया."],[],[],null,["# gpg::PlayerLevel Class Reference\n\ngpg::PlayerLevel\n================\n\n`#include \u003cplayer_level.h\u003e`\n\nA single data structure containing data about player's level.\n\nSummary\n-------\n\n| ### Constructors and Destructors ||\n|---|---|\n| [PlayerLevel](#classgpg_1_1_player_level_1a5c5aa7ac12e8befff021dfede69cc74e)`()` ||\n| [PlayerLevel](#classgpg_1_1_player_level_1afa1e453e677bed09bd1b441493413bb3)`(std::shared_ptr\u003c const `[PlayerLevelImpl](/games/services/cpp/api/class/gpg/player-level#classgpg_1_1_player_level_1a7024c8d2bb0a3800d3d1c51a6abe8a81)` \u003e impl)` Constructs a [PlayerLevel](/games/services/cpp/api/class/gpg/player-level#classgpg_1_1_player_level) from a shared_ptr to a PlayerLevelImpl. ||\n| [PlayerLevel](#classgpg_1_1_player_level_1a04210c98ac60ed639e544243120b4af5)`(const `[PlayerLevel](/games/services/cpp/api/class/gpg/player-level#classgpg_1_1_player_level)` & copy_from)` Copy constructor for copying an existing player level into a new one. ||\n| [PlayerLevel](#classgpg_1_1_player_level_1aeebff567c41fcd3da2ac4fb64ffb0d06)`(`[PlayerLevel](/games/services/cpp/api/class/gpg/player-level#classgpg_1_1_player_level)` && move_from)` Constructor for moving an existing player level into a new one. ||\n| [~PlayerLevel](#classgpg_1_1_player_level_1af24508b4298f81e3d0536cd5613c9c6a)`()` ||\n\n| ### Public functions ||\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [LevelNumber](#classgpg_1_1_player_level_1a72a1a8a54abc33105a48ec0607b759aa)`() const ` | `uint32_t` Returns the number for this level, e.g. |\n| [MaximumXP](#classgpg_1_1_player_level_1a3bef587603a5792449b093e8ac4288bc)`() const ` | `uint64_t` Returns the maximum XP value represented by this level, exclusive. |\n| [MinimumXP](#classgpg_1_1_player_level_1aca921678a833699257117f51741366a2)`() const ` | `uint64_t` Returns the minimum XP value needed to attain this level, inclusive. |\n| [Valid](#classgpg_1_1_player_level_1a458b510e8e30ca8459598636c6b8acc9)`() const ` | `bool` Returns true when the returned player level is populated with data and is accompanied by a successful response status; false for an unpopulated user-created player or for a populated one accompanied by an unsuccessful response status. |\n| [operator=](#classgpg_1_1_player_level_1a7574b9a7ec930a71519b91399710113f)`(const `[PlayerLevel](/games/services/cpp/api/class/gpg/player-level#classgpg_1_1_player_level)` & copy_from)` | [PlayerLevel](/games/services/cpp/api/class/gpg/player-level#classgpg_1_1_player_level)` &` Assignment operator for assigning this player level's value from another player level. |\n| [operator=](#classgpg_1_1_player_level_1a0d82f9e3a4b9e49f12df76c3c2d5b02f)`(`[PlayerLevel](/games/services/cpp/api/class/gpg/player-level#classgpg_1_1_player_level)` && move_from)` | [PlayerLevel](/games/services/cpp/api/class/gpg/player-level#classgpg_1_1_player_level)` &` Assignment operator for assigning this player level's value from another player level. |\n\nPublic functions\n----------------\n\n### LevelNumber\n\n```c++\nuint32_t LevelNumber() const \n``` \nReturns the number for this level, e.g.\n\n\"level 10\". \n\n### MaximumXP\n\n```c++\nuint64_t MaximumXP() const \n``` \nReturns the maximum XP value represented by this level, exclusive. \n\n### MinimumXP\n\n```c++\nuint64_t MinimumXP() const \n``` \nReturns the minimum XP value needed to attain this level, inclusive. \n\n### PlayerLevel\n\n```c++\n PlayerLevel()\n``` \n\n### PlayerLevel\n\n```c++\n PlayerLevel(\n std::shared_ptr\u003c const PlayerLevelImpl \u003e impl\n)\n``` \nConstructs a [PlayerLevel](/games/services/cpp/api/class/gpg/player-level#classgpg_1_1_player_level) from a shared_ptr to a PlayerLevelImpl.\n\nThis is used internally, and is not intended for use by consumers of this API. \n\n### PlayerLevel\n\n```c++\n PlayerLevel(\n const PlayerLevel & copy_from\n)\n``` \nCopy constructor for copying an existing player level into a new one. \n\n### PlayerLevel\n\n```c++\n PlayerLevel(\n PlayerLevel && move_from\n)\n``` \nConstructor for moving an existing player level into a new one.\n\nr-value-reference version. \n\n### Valid\n\n```c++\nbool Valid() const \n``` \nReturns true when the returned player level is populated with data and is accompanied by a successful response status; false for an unpopulated user-created player or for a populated one accompanied by an unsuccessful response status.\n\nIt must be true for the getter functions on this object to be usable. \n\n### operator=\n\n```c++\nPlayerLevel & operator=(\n const PlayerLevel & copy_from\n)\n``` \nAssignment operator for assigning this player level's value from another player level. \n\n### operator=\n\n```c++\nPlayerLevel & operator=(\n PlayerLevel && move_from\n)\n``` \nAssignment operator for assigning this player level's value from another player level.\n\nr-value-reference version \n\n### \\~PlayerLevel\n\n```c++\n ~PlayerLevel()\n```"]]