컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
gpg::PlayerLevel
#include <player_level.h>
플레이어의 등급에 관한 데이터가 포함된 단일 데이터 구조입니다.
요약
공개 함수
|
LevelNumber() const
|
uint32_t
이 수준의 숫자를 반환합니다(예:
|
MaximumXP() const
|
uint64_t
이 등급으로 표시되는 최대 XP 값을 제외하고 반환합니다.
|
MinimumXP() const
|
uint64_t
이 등급을 달성하는 데 필요한 최소 XP 값을 반환합니다(양 끝값 포함).
|
Valid() const
|
bool
반환된 플레이어 등급에 데이터가 채워지고 성공적인 응답 상태가 포함된 경우 true를 반환하고, 채워지지 않은 사용자 제작 플레이어 또는 채워진 플레이어에 실패한 응답 상태가 포함된 경우에는 false를 반환합니다.
|
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
)
PlayerLevelImpl에 대한 shared_ptr에서 PlayerLevel을 구성합니다.
이는 내부적으로 사용되며 이 API의 소비자가 사용하도록 의도되지 않았습니다.
PlayerLevel
PlayerLevel(
const PlayerLevel & copy_from
)
기존 플레이어 등급을 새 등급으로 복사하기 위한 복사 생성자입니다.
PlayerLevel
PlayerLevel(
PlayerLevel && move_from
)
기존 플레이어 등급을 새 등급으로 이동하는 생성자입니다.
r-value-reference 버전
Valid
bool Valid() const
반환된 플레이어 등급에 데이터가 채워지고 성공적인 응답 상태가 포함된 경우 true를 반환하고, 채워지지 않은 사용자 제작 플레이어 또는 채워진 플레이어에 실패한 응답 상태가 포함된 경우에는 false를 반환합니다.
이 객체의 getter 함수를 사용할 수 있으려면 이 속성이 true여야 합니다.
operator=
PlayerLevel & operator=(
PlayerLevel && move_from
)
다른 플레이어 등급에서 이 플레이어 등급의 값을 할당하는 할당 연산자입니다.
r-value-reference 버전
~PlayerLevel
~PlayerLevel()
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2025-07-27(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 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```"]]