gpg::QuestMilestone

#include <quest_milestone.h>

A single data structure allowing you to access data about the status of a specific quest milestone.

Summary

Deprecated. The Google Play Games quests service will be deprecated as of March 2018. Do not use the Google Play Games quests service in new apps. See the deprecation announcement blog post for more details.

Constructors and Destructors

QuestMilestone()
QuestMilestone(std::shared_ptr< const QuestImpl > impl)
Constructs a QuestMilestone from a shared_ptr to a QuestMilestoneImpl.
QuestMilestone(const QuestMilestone & copy_from)
Creates a copy of an existing QuestMilestone.
QuestMilestone(QuestMilestone && move_from)
Moves an existing QuestMilestone.
~QuestMilestone()

Public functions

CompletionRewardData() const
const std::vector< uint8_t > &
Returns the developer-defined data for completion of this milestone.
CurrentCount() const
uint64_t
Returns current progress of the milestone, as a counter of the associated event.
EventId() const
const std::string &
Returns the id for the event associated with this milestone.
Id() const
const std::string &
Returns the unique string that the Google Play Developer Console generated beforehand.
QuestId() const
const std::string &
Returns the id for the quest that owns this milestone.
State() const
Returns the milestone state: NOT_STARTED, NOT_COMPLETED, COMPLETED_NOT_CLAIMED, or CLAIMED.
TargetCount() const
uint64_t
Returns the target event count for the milestone.
Valid() const
bool
Returns true when the returned milestone is populated with data and is accompanied by a successful response status; false for an unpopulated user-created milestone or for a populated one accompanied by an unsuccessful response status.
operator=(const QuestMilestone & copy_from)
Assigns this QuestMilestone by copying from another one.
operator=(QuestMilestone && move_from)
Assigns this QuestMilestone by moving another one into it.

Public functions

CompletionRewardData

const std::vector< uint8_t > & CompletionRewardData() const 

Returns the developer-defined data for completion of this milestone.

This data is set in the Google Play Developer Console. QuestMilestone::Valid() must return true for this function to be usable.

CurrentCount

uint64_t CurrentCount() const 

Returns current progress of the milestone, as a counter of the associated event.

QuestMilestone::Valid() must return true for this function to be usable.

EventId

const std::string & EventId() const 

Returns the id for the event associated with this milestone.

Incrementing this event will progress the milestone. This is a unique string that the Google Play Developer Console generated beforehand. QuestMilestone::Valid() must return true for this function to be usable.

Id

const std::string & Id() const 

Returns the unique string that the Google Play Developer Console generated beforehand.

Use it to refer to a milestone in your game client. QuestMilestone::Valid() must return true for this function to be usable.

QuestId

const std::string & QuestId() const 

Returns the id for the quest that owns this milestone.

This is a unique string that the Google Play Developer Console generated beforehand. QuestMilestone::Valid() must return true for this function to be usable.

QuestMilestone

 QuestMilestone()

QuestMilestone

 QuestMilestone(
  std::shared_ptr< const QuestImpl > impl
)

Constructs a QuestMilestone from a shared_ptr to a QuestMilestoneImpl.

Intended for internal use by the API.

QuestMilestone

 QuestMilestone(
  const QuestMilestone & copy_from
)

Creates a copy of an existing QuestMilestone.

QuestMilestone

 QuestMilestone(
  QuestMilestone && move_from
)

Moves an existing QuestMilestone.

State

QuestMilestoneState State() const 

Returns the milestone state: NOT_STARTED, NOT_COMPLETED, COMPLETED_NOT_CLAIMED, or CLAIMED.

QuestMilestone::Valid() must return true for this function to be usable.

TargetCount

uint64_t TargetCount() const 

Returns the target event count for the milestone.

QuestMilestone::Valid() must return true for this function to be usable.

Valid

bool Valid() const 

Returns true when the returned milestone is populated with data and is accompanied by a successful response status; false for an unpopulated user-created milestone or for a populated one accompanied by an unsuccessful response status.

This function must return true for the getter functions on this object to be usable.

operator=

QuestMilestone & operator=(
  const QuestMilestone & copy_from
)

Assigns this QuestMilestone by copying from another one.

operator=

QuestMilestone & operator=(
  QuestMilestone && move_from
)

Assigns this QuestMilestone by moving another one into it.

~QuestMilestone

 ~QuestMilestone()

傳送您對下列選項的寶貴意見...

這個網頁
Play Games Services for C++
Play Games Services for C++