gpg:: ScorePage
#include <score_page.h>
允许您访问得分数据的单一数据结构。
摘要
数据包括排行榜 ID、开始时间、时间范围、收集、上一个得分页面令牌、下一个得分页面令牌以及所有得分条目的矢量。
构造函数和析构函数 |
|
---|---|
ScorePage()
|
|
ScorePage(std::shared_ptr< const ScorePageImpl > impl)
显式构造函数。
|
|
ScorePage(const ScorePage & copy_from)
复制用于将现有得分页面复制到新得分页面的构造函数。
|
|
ScorePage(ScorePage && move_from)
用于将现有得分页面移至新得分页面的构造函数。
|
|
~ScorePage()
|
公共函数 |
|
---|---|
Collection() const
|
返回排行榜是 PUBLIC 还是 SOCIAL 排行榜。
|
Entries() const
|
const std::vector< ScorePage::Entry > &
所有得分条目的矢量。
|
HasNextScorePage() const
|
bool
如果记分板有后续得分页面,则有效。
|
HasPreviousScorePage() const
|
bool
如果记分板有以前的得分页面,则有效。
|
LeaderboardId() const
|
const std::string &
返回 Google Play 管理中心事先生成的唯一字符串。
|
NextScorePageToken() const
|
返回后续页面的得分页令牌。
|
PreviousScorePageToken() const
|
返回上一页的得分页面令牌。
|
Start() const
|
返回排行榜最初是查询最高得分还是靠近当前玩家的得分。
|
TimeSpan() const
|
返回排行榜的时间跨度。
|
Valid() const
|
bool
如果此
ScorePage 填充有数据,则返回 true。 |
operator=(const ScorePage & copy_from)
|
用于从另一个得分页面分配此得分页面值的赋值运算符。
|
operator=(ScorePage && move_from)
|
用于从另一个得分页面分配此得分页面值的赋值运算符。
|
类 |
|
---|---|
gpg:: |
用于在得分页面上创建条目的类。 |
gpg:: |
一种近乎不透明类型的数据结构,表示对 ScorePage 的查询(或为空)。 |
公共函数
HasNextScorePage
bool HasNextScorePage() const
如果记分板有后续得分页面,则有效。
HasPreviousScorePage
bool HasPreviousScorePage() const
如果记分板有以前的得分页面,则有效。
LeaderboardId
const std::string & LeaderboardId() const
返回 Google Play 管理中心事先生成的唯一字符串。
可以用它来引用游戏客户端中的排行榜。只有在 Leaderboard::Valid() 返回 true 时才能调用此方法。