TargetableInstance Class Reference

#include <targetable.h>

Inheritance diagram for TargetableInstance:
Inheritance graph
[legend]
Collaboration diagram for TargetableInstance:
Collaboration graph
[legend]

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 Vector3world_position () const
void render (Renderer &renderer, const VolumeTest &volume) const
const TargetingEntitiesgetTargeting () const

Private Attributes

Vertex3f m_position
EntityKeyValuesm_entity
TargetKeys m_targeting
TargetedEntity m_targeted
RenderableTargetingEntities m_renderable

Detailed Description

Definition at line 312 of file targetable.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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]
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]

Implements Targetable.

Definition at line 357 of file targetable.h.

Referenced by render().


Field Documentation

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().

Definition at line 317 of file targetable.h.

Referenced by erase(), and insert().


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

Generated by  doxygen 1.6.2