সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
gpg:: লিডারবোর্ড
#include <leaderboard.h>
একটি একক ডেটা স্ট্রাকচার আপনাকে একটি নির্দিষ্ট লিডারবোর্ডের স্থিতি সম্পর্কে ডেটা অ্যাক্সেস করার অনুমতি দেয়, যেমন এর নাম এবং বৈধতা।
সারাংশ
পাবলিক ফাংশন |
---|
IconUrl () const | const std::string & এই লিডারবোর্ডের জন্য আইকনের ছবির দিকে নিয়ে যাওয়া URLটি ফেরত দেয়। |
Id () const | const std::string & Google Play ডেভেলপার কনসোল আগে থেকে তৈরি করা অনন্য স্ট্রিং প্রদান করে। |
Name () const | const std::string & লিডারবোর্ডের সংক্ষিপ্ত নাম প্রদান করে। |
Order () const | ঊর্ধ্বমুখী বা অবরোহী ক্রম উত্তম। |
Valid () const | bool যখন প্রত্যাবর্তিত লিডারবোর্ড ডেটা দ্বারা পরিপূর্ণ হয় এবং একটি সফল প্রতিক্রিয়ার স্থিতির সাথে থাকে তখন সত্য দেখায়; একটি জনবসতিহীন ব্যবহারকারীর তৈরি লিডারবোর্ডের জন্য মিথ্যা বা একটি অসফল প্রতিক্রিয়া স্ট্যাটাস সহ একটি জনবহুলের জন্য। |
operator= (const Leaderboard & copy_from) | অন্য লিডারবোর্ড থেকে এই লিডারবোর্ডের মান নির্ধারণের জন্য অ্যাসাইনমেন্ট অপারেটর। |
operator= ( Leaderboard && move_from) | অন্য লিডারবোর্ড থেকে এই লিডারবোর্ডের মান নির্ধারণের জন্য অ্যাসাইনমেন্ট অপারেটর। |
পাবলিক ফাংশন
আইকন ইউআরএল
const std::string & IconUrl() const
আইডি
const std::string & Id() const
Google Play ডেভেলপার কনসোল আগে থেকে তৈরি করা অনন্য স্ট্রিং প্রদান করে।
আপনার গেম ক্লায়েন্টে একটি লিডারবোর্ড উল্লেখ করতে এটি ব্যবহার করুন। এটি শুধুমাত্র তখনই বলা যেতে পারে যখন লিডারবোর্ড::Valid() true রিটার্ন করে।
লিডারবোর্ড
Leaderboard(
std::shared_ptr< const LeaderboardImpl > impl
)
লিডারবোর্ড
Leaderboard(
const Leaderboard & copy_from
)
একটি বিদ্যমান লিডারবোর্ডকে একটি নতুনটিতে অনুলিপি করার জন্য কন্সট্রাক্টর অনুলিপি করুন।
লিডারবোর্ড
Leaderboard(
Leaderboard && move_from
)
একটি বিদ্যমান লিডারবোর্ডকে একটি নতুন লিডারবোর্ড সরানোর জন্য কন্সট্রাক্টর৷
r-value-রেফারেন্স সংস্করণ।
নাম
const std::string & Name() const
লিডারবোর্ডের সংক্ষিপ্ত নাম প্রদান করে।
100টি অক্ষর পর্যন্ত। এটি শুধুমাত্র তখনই বলা যেতে পারে যখন Achievement::Valid() true রিটার্ন করে।
অর্ডার
LeaderboardOrder Order() const
ঊর্ধ্বমুখী বা অবরোহী ক্রম উত্তম।
সম্ভাব্য মানগুলি হল "LARGER_IS_BETTER" বা "SMALLER_IS_BETTER"। LARGER_IS_BETTER বৃহত্তর স্কোরকে শীর্ষে রাখে (অবরোহণ)। SMALLER_IS_BETTER ছোট স্কোরগুলিকে শীর্ষে রাখে (আরোহী)। এটি শুধুমাত্র তখনই বলা যেতে পারে যখন Achievement::Valid() true রিটার্ন করে।
বৈধ
bool Valid() const
যখন প্রত্যাবর্তিত লিডারবোর্ড ডেটা দ্বারা পরিপূর্ণ হয় এবং একটি সফল প্রতিক্রিয়ার স্থিতির সাথে থাকে তখন সত্য দেখায়; একটি জনবসতিহীন ব্যবহারকারীর তৈরি লিডারবোর্ডের জন্য মিথ্যা বা একটি অসফল প্রতিক্রিয়া স্ট্যাটাস সহ একটি জনবহুলের জন্য।
এই লিডারবোর্ডে গেটার ফাংশন (আইডি, নাম, বর্ণনা, ইত্যাদি) ব্যবহারযোগ্য হওয়ার জন্য এটি অবশ্যই সত্য হতে হবে।
অপারেটর=
Leaderboard & operator=(
const Leaderboard & copy_from
)
অন্য লিডারবোর্ড থেকে এই লিডারবোর্ডের মান নির্ধারণের জন্য অ্যাসাইনমেন্ট অপারেটর।
অপারেটর=
Leaderboard & operator=(
Leaderboard && move_from
)
অন্য লিডারবোর্ড থেকে এই লিডারবোর্ডের মান নির্ধারণের জন্য অ্যাসাইনমেন্ট অপারেটর।
r-value-রেফারেন্স সংস্করণ।
~লিডারবোর্ড
~Leaderboard()
এই পৃষ্ঠার কন্টেন্ট ও কোডের নমুনাগুলি Content License-এ বর্ণিত লাইসেন্সের অধীনস্থ। Java এবং OpenJDK হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-29 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-29 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],[],null,["# gpg::Leaderboard Class Reference\n\ngpg::Leaderboard\n================\n\n`#include \u003cleaderboard.h\u003e`\n\nA single data structure allowing you to access data about the status of a specific leaderboard, such as its name and validity.\n\nSummary\n-------\n\n| ### Constructors and Destructors ||\n|---|---|\n| [Leaderboard](#classgpg_1_1_leaderboard_1ae00cee7b5871b60ed0f8cf8ed2aeb4a6)`()` ||\n| [Leaderboard](#classgpg_1_1_leaderboard_1a9c87f8487ea39d307bea77c2f624387e)`(std::shared_ptr\u003c const LeaderboardImpl \u003e impl)` Explicit constructor. ||\n| [Leaderboard](#classgpg_1_1_leaderboard_1a943d7e864d459b1605794a6fabef1653)`(const `[Leaderboard](/games/services/cpp/api/class/gpg/leaderboard#classgpg_1_1_leaderboard)` & copy_from)` Copy constructor for copying an existing leaderboard into a new one. ||\n| [Leaderboard](#classgpg_1_1_leaderboard_1a10a16a9c1fccb70e8f231813d093b3a2)`(`[Leaderboard](/games/services/cpp/api/class/gpg/leaderboard#classgpg_1_1_leaderboard)` && move_from)` Constructor for moving an existing leaderboard into a new one. ||\n| [~Leaderboard](#classgpg_1_1_leaderboard_1aeeae550785fca1d79c8187ae12610123)`()` ||\n\n| ### Public functions ||\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [IconUrl](#classgpg_1_1_leaderboard_1a74076db7d71675e2e6228cb2f396e5c5)`() const ` | `const std::string &` Returns the URL leading to the image of the icon for this [Leaderboard](/games/services/cpp/api/class/gpg/leaderboard#classgpg_1_1_leaderboard). |\n| [Id](#classgpg_1_1_leaderboard_1ab30ace9344a5443519b8d70bb4947085)`() const ` | `const std::string &` Returns the unique string that the Google Play Developer Console generated beforehand. |\n| [Name](#classgpg_1_1_leaderboard_1a237846a501cea52e6a9142ee892af697)`() const ` | `const std::string &` Returns the short name of the leaderboard. |\n| [Order](#classgpg_1_1_leaderboard_1a008e480040a730e6729368a9c694f717)`() const ` | [LeaderboardOrder](/games/services/cpp/api/namespace/gpg#namespacegpg_1a17d647fceb4fee77f693520405f75cb9) Returns whether ascending or descending order is better. |\n| [Valid](#classgpg_1_1_leaderboard_1a510984968ca31ed44aafb18dec22a159)`() const ` | `bool` Returns true when the returned leaderboard is populated with data and is accompanied by a successful response status; false for an unpopulated user-created leaderboard or for a populated one accompanied by an unsuccessful response status. |\n| [operator=](#classgpg_1_1_leaderboard_1a4e893a80cc728b346368ff002a9f10a1)`(const `[Leaderboard](/games/services/cpp/api/class/gpg/leaderboard#classgpg_1_1_leaderboard)` & copy_from)` | [Leaderboard](/games/services/cpp/api/class/gpg/leaderboard#classgpg_1_1_leaderboard)` &` Assignment operator for assigning this leaderboard's value from another leaderboard. |\n| [operator=](#classgpg_1_1_leaderboard_1a2c99314b97150d4e24a6b7b0a399139d)`(`[Leaderboard](/games/services/cpp/api/class/gpg/leaderboard#classgpg_1_1_leaderboard)` && move_from)` | [Leaderboard](/games/services/cpp/api/class/gpg/leaderboard#classgpg_1_1_leaderboard)` &` Assignment operator for assigning this leaderboard's value from another leaderboard. |\n\nPublic functions\n----------------\n\n### IconUrl\n\n```c++\nconst std::string & IconUrl() const \n``` \nReturns the URL leading to the image of the icon for this [Leaderboard](/games/services/cpp/api/class/gpg/leaderboard#classgpg_1_1_leaderboard).\n\nIt can only be called when [Leaderboard::Valid()](/games/services/cpp/api/class/gpg/leaderboard#classgpg_1_1_leaderboard_1a510984968ca31ed44aafb18dec22a159) returns true. \n\n### Id\n\n```c++\nconst std::string & Id() const \n``` \nReturns the unique string that the Google Play Developer Console generated beforehand.\n\nUse it to refer to a leaderboard in your game client. It can only be called when [Leaderboard::Valid()](/games/services/cpp/api/class/gpg/leaderboard#classgpg_1_1_leaderboard_1a510984968ca31ed44aafb18dec22a159) returns true. \n\n### Leaderboard\n\n```c++\n Leaderboard()\n``` \n\n### Leaderboard\n\n```c++\n Leaderboard(\n std::shared_ptr\u003c const LeaderboardImpl \u003e impl\n)\n``` \nExplicit constructor. \n\n### Leaderboard\n\n```c++\n Leaderboard(\n const Leaderboard & copy_from\n)\n``` \nCopy constructor for copying an existing leaderboard into a new one. \n\n### Leaderboard\n\n```c++\n Leaderboard(\n Leaderboard && move_from\n)\n``` \nConstructor for moving an existing leaderboard into a new one.\n\nr-value-reference version. \n\n### Name\n\n```c++\nconst std::string & Name() const \n``` \nReturns the short name of the leaderboard.\n\nUp to 100 characters. It can only be called when [Achievement::Valid()](/games/services/cpp/api/class/gpg/achievement#classgpg_1_1_achievement_1aaabe36b88537ecef60d5eff48c98038c) returns true. \n\n### Order\n\n```c++\nLeaderboardOrder Order() const \n``` \nReturns whether ascending or descending order is better.\n\nPossible values are \"LARGER_IS_BETTER\" or \"SMALLER_IS_BETTER\". LARGER_IS_BETTER places larger scores at the top (descending). SMALLER_IS_BETTER places smaller scores at the top (ascending). It can only be called when [Achievement::Valid()](/games/services/cpp/api/class/gpg/achievement#classgpg_1_1_achievement_1aaabe36b88537ecef60d5eff48c98038c) returns true. \n\n### Valid\n\n```c++\nbool Valid() const \n``` \nReturns true when the returned leaderboard is populated with data and is accompanied by a successful response status; false for an unpopulated user-created leaderboard or for a populated one accompanied by an unsuccessful response status.\n\nIt must be true for the getter functions on this leaderboard (id, Name, Description, etc.) to be usable. \n\n### operator=\n\n```c++\nLeaderboard & operator=(\n const Leaderboard & copy_from\n)\n``` \nAssignment operator for assigning this leaderboard's value from another leaderboard. \n\n### operator=\n\n```c++\nLeaderboard & operator=(\n Leaderboard && move_from\n)\n``` \nAssignment operator for assigning this leaderboard's value from another leaderboard.\n\nr-value-reference version. \n\n### \\~Leaderboard\n\n```c++\n ~Leaderboard()\n```"]]