#include <targetable.h>
Public Member Functions | |
void | setTargetsChanged (const Callback &targetsChanged) |
void | targetsChanged () |
void | insert (const std::string &key, EntityKeyValue &value) |
void | erase (const std::string &key, EntityKeyValue &value) |
const TargetingEntities & | get () const |
Private Member Functions | |
bool | readTargetKey (const std::string &key, std::size_t &index) |
Private Attributes | |
TargetingEntities | m_targetingEntities |
Callback | m_targetsChanged |
Definition at line 205 of file targetable.h.
void TargetKeys::erase | ( | const std::string & | key, | |
EntityKeyValue & | value | |||
) | [inline, virtual] |
Implements Entity::Observer.
Definition at line 241 of file targetable.h.
References EntityKeyValue::detach(), i, m_targetingEntities, readTargetKey(), and targetsChanged().
const TargetingEntities& TargetKeys::get | ( | ) | const [inline] |
Definition at line 251 of file targetable.h.
References m_targetingEntities.
Referenced by TargetableInstance::getTargeting().
void TargetKeys::insert | ( | const std::string & | key, | |
EntityKeyValue & | value | |||
) | [inline, virtual] |
Implements Entity::Observer.
Definition at line 231 of file targetable.h.
References EntityKeyValue::attach(), i, m_targetingEntities, readTargetKey(), and targetsChanged().
bool TargetKeys::readTargetKey | ( | const std::string & | key, | |
std::size_t & | index | |||
) | [inline, private] |
Definition at line 210 of file targetable.h.
void TargetKeys::setTargetsChanged | ( | const Callback & | targetsChanged | ) | [inline] |
Definition at line 222 of file targetable.h.
References m_targetsChanged.
Referenced by TargetableInstance::setTargetsChanged().
void TargetKeys::targetsChanged | ( | ) | [inline] |
Definition at line 226 of file targetable.h.
References m_targetsChanged.
Referenced by erase(), insert(), and TargetableInstance::targetsChanged().
Definition at line 207 of file targetable.h.
Callback TargetKeys::m_targetsChanged [private] |
Definition at line 208 of file targetable.h.
Referenced by setTargetsChanged(), and targetsChanged().