gpg: 分數
#include <score.h>
單一資料結構,可讓您存取玩家得分的相關資料。
摘要
建構函式和解構函式 |
|
---|---|
Score()
|
|
Score(std::shared_ptr< const ScoreImpl > impl)
明確的建構函式。
|
|
Score(const Score & copy_from)
複製用於將現有分數複製到新分數的建構函式。
|
|
Score(Score && move_from)
將現有分數移至新分數的建構函式。
|
|
~Score()
|
公開函式 |
|
---|---|
Metadata() const
|
const std::string &
傳回與分數相關的開發人員指定中繼資料 (如果已為這個分數設定)。
|
Rank() const
|
uint64_t
傳回該玩家與其他玩家的比較分數。
|
Valid() const
|
bool
如果傳回的分數填入資料並搭配成功的回應狀態,則會傳回 true;未填入使用者建立的分數,或是填入失敗回應狀態的填入分數為 false。
|
Value() const
|
uint64_t
傳回玩家的得分。
|
operator=(const Score & copy_from)
|
Score &
用於為其他分數指派此分數值的作業運算子。
|
operator=(Score && move_from)
|
Score &
用於為其他分數指派此分數值的作業運算子。
|
公開函式
中繼資料
const std::string & Metadata() const
傳回與分數相關的開發人員指定中繼資料 (如果已為這個分數設定)。
排名
uint64_t Rank() const
傳回該玩家與其他玩家的比較分數。
分數
Score()
分數
Score( std::shared_ptr< const ScoreImpl > impl )
明確的建構函式。
有效
bool Valid() const
如果傳回的分數填入資料並搭配成功的回應狀態,則會傳回 true;未填入使用者建立的分數,或是填入失敗回應狀態的填入分數為 false。
此物件的 getter 函式必須是 true 才能夠使用。
值
uint64_t Value() const
傳回玩家的得分。
~分數
~Score()