StatHistory
Accesses the history of an empire's stat. Locks the stat, so limit access to these histories.
bool
toTail(
)
Advances to the most recent stat entry.
Returns
bool
: True if there was a tail to move to.
bool
toHead(
)
Advances to the earliest stat entry.
Returns
bool
: True if there was a head to move to.
bool
advance(
int
offset = 1
)
Advances to another stat entry.
-
int
offset — Number of entries to move. Positive is later in time, negative is earlier. Advancing 0 resets the event reader. If not on a valid entry, advances to a valid entry at the correspending head or tail.
Returns
bool
: Returns true if an entry existed at the offset.
bool
advanceEvent(
)
Advances to the next event for the current stat.
Returns
bool
: True if there was an event to advance to.
string
get_eventName(
) const
Returns the current event's name.