OpenEnroth 4aaa0a0
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | Friends | List of all members
CharacterConditions Class Reference

#include <CharacterConditions.h>

Public Member Functions

bool has (Condition condition) const
 
bool hasAny (std::initializer_list< Condition > conditions) const
 
bool hasNone (std::initializer_list< Condition > conditions) const
 
void reset (Condition condition)
 
void resetAll ()
 
void set (Condition condition, Time time)
 
Time get (Condition condition) const
 

Private Attributes

IndexedArray< Time, CONDITION_FIRST, CONDITION_LAST_times
 

Friends

void snapshot (const CharacterConditions &src, CharacterConditions_MM7 *dst)
 
void reconstruct (const CharacterConditions_MM7 &src, CharacterConditions *dst)
 

Member Function Documentation

◆ get()

Time CharacterConditions::get ( Condition  condition) const
inline

◆ has()

bool CharacterConditions::has ( Condition  condition) const
inline

◆ hasAny()

bool CharacterConditions::hasAny ( std::initializer_list< Condition conditions) const
inline

◆ hasNone()

bool CharacterConditions::hasNone ( std::initializer_list< Condition conditions) const
inline

◆ reset()

void CharacterConditions::reset ( Condition  condition)
inline

◆ resetAll()

void CharacterConditions::resetAll ( )
inline

◆ set()

void CharacterConditions::set ( Condition  condition,
Time  time 
)
inline

Friends And Related Function Documentation

◆ reconstruct

void reconstruct ( const CharacterConditions_MM7 src,
CharacterConditions dst 
)
friend

◆ snapshot

void snapshot ( const CharacterConditions src,
CharacterConditions_MM7 dst 
)
friend

Member Data Documentation

◆ _times

IndexedArray<Time, CONDITION_FIRST, CONDITION_LAST> CharacterConditions::_times
private

Game time when condition has started. Zero means that the character doesn't have a condition.


The documentation for this class was generated from the following file: