SimpleAI
 All Classes Namespaces Files Functions Variables Typedefs Macros Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ai::Entry Class Reference

One entry for the AggroMgr. More...

#include <Entry.h>

Public Member Functions

 Entry (const CharacterId &id, float aggro=0.0f)
 
 Entry (const Entry &other)
 
 Entry (Entry &&other)
 
float getAggro () const
 
void addAggro (float aggro)
 
void setReduceByRatio (float reductionRatioPerSecond, float minimumAggro)
 
void setReduceByValue (float reductionValuePerSecond)
 
bool reduceByTime (int64_t millis)
 
void resetAggro ()
 
const CharacterId & getCharacterId () const
 
bool operator< (Entry &other) const
 
Entryoperator= (const Entry &other)
 

Protected Member Functions

void reduceByRatio (float ratio)
 
void reduceByValue (float value)
 

Protected Attributes

float _aggro
 
float _minAggro
 
float _reduceRatioSecond
 
float _reduceValueSecond
 
ReductionType _reduceType
 
CharacterId _id
 

Detailed Description

One entry for the AggroMgr.

Member Function Documentation

bool ai::Entry::reduceByTime ( int64_t  millis)
inline
Returns
true if any reduction was done

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