#include <targetable.h>
Public Member Functions | |
TargetableInstance (const scene::Path &path, scene::Instance *parent, void *instance, InstanceTypeCastTable &casts, EntityKeyValues &entity, Targetable &targetable) | |
~TargetableInstance () | |
void | setTargetsChanged (const Callback &targetsChanged) |
void | targetsChanged () |
void | insert (const std::string &key, EntityKeyValue &value) |
void | erase (const std::string &key, EntityKeyValue &value) |
const Vector3 & | world_position () const |
void | render (Renderer &renderer, const VolumeTest &volume) const |
const TargetingEntities & | getTargeting () const |
Private Attributes | |
Vertex3f | m_position |
EntityKeyValues & | m_entity |
TargetKeys | m_targeting |
TargetedEntity | m_targeted |
RenderableTargetingEntities | m_renderable |
Definition at line 312 of file targetable.h.
TargetableInstance::TargetableInstance | ( | const scene::Path & | path, | |
scene::Instance * | parent, | |||
void * | instance, | |||
InstanceTypeCastTable & | casts, | |||
EntityKeyValues & | entity, | |||
Targetable & | targetable | |||
) | [inline] |
Definition at line 321 of file targetable.h.
References EntityKeyValues::attach(), m_entity, and m_targeting.
TargetableInstance::~TargetableInstance | ( | ) | [inline] |
Definition at line 329 of file targetable.h.
References EntityKeyValues::detach(), m_entity, and m_targeting.
void TargetableInstance::erase | ( | const std::string & | key, | |
EntityKeyValue & | value | |||
) | [inline, virtual] |
Implements Entity::Observer.
Definition at line 350 of file targetable.h.
References EntityKeyValue::detach(), g_targetable_nameKey, and m_targeted.
const TargetingEntities& TargetableInstance::getTargeting | ( | ) | const [inline] |
Definition at line 373 of file targetable.h.
References TargetKeys::get(), and m_targeting.
void TargetableInstance::insert | ( | const std::string & | key, | |
EntityKeyValue & | value | |||
) | [inline, virtual] |
Implements Entity::Observer.
Definition at line 344 of file targetable.h.
References EntityKeyValue::attach(), g_targetable_nameKey, and m_targeted.
void TargetableInstance::render | ( | Renderer & | renderer, | |
const VolumeTest & | volume | |||
) | const [inline] |
Definition at line 366 of file targetable.h.
References Renderer::eFullMaterials, Renderer::eWireframeOnly, EntityKeyValues::getEntityClass(), m_entity, m_renderable, EntityClass::m_state_wire, RenderableTargetingEntities::render(), Renderer::SetState(), and world_position().
void TargetableInstance::setTargetsChanged | ( | const Callback & | targetsChanged | ) | [inline] |
Definition at line 335 of file targetable.h.
References m_targeting, and TargetKeys::setTargetsChanged().
void TargetableInstance::targetsChanged | ( | ) | [inline] |
Definition at line 339 of file targetable.h.
References m_targeting, and TargetKeys::targetsChanged().
const Vector3& TargetableInstance::world_position | ( | ) | const [inline, virtual] |
EntityKeyValues& TargetableInstance::m_entity [private] |
Definition at line 315 of file targetable.h.
Referenced by render(), TargetableInstance(), and ~TargetableInstance().
Vertex3f TargetableInstance::m_position [mutable, private] |
Definition at line 314 of file targetable.h.
Definition at line 318 of file targetable.h.
Referenced by render().
TargetedEntity TargetableInstance::m_targeted [private] |
Definition at line 317 of file targetable.h.
TargetKeys TargetableInstance::m_targeting [private] |
Definition at line 316 of file targetable.h.
Referenced by getTargeting(), setTargetsChanged(), TargetableInstance(), targetsChanged(), and ~TargetableInstance().