omegalib  13.1
omega::Actor Class Reference

A specialied EngineModule used to control objects in a scene and define custom behaviors. More...

#include <Actor.h>

Public Member Functions

 Actor (const String &name)
 
 Actor ()
 
void kill ()
 
void setSceneNode (SceneNode *node)
 
SceneNodegetSceneNode ()
 
virtual void update (const UpdateContext &context)
 
virtual void handleEvent (const Event &evt)
 
virtual bool handleCommand (const String &cmd)
 
virtual void onUpdate (const UpdateContext &context)
 Callbacks These callbacks can be enabled / disabled using the corresponding callback filter functions. More...
 
virtual void onEvent (const Event &evt)
 
virtual bool onCommand (const String &cmd)
 
void setUpdateEnabled (bool value)
 Callback filter functions. More...
 
void setCommandsEnabled (bool value)
 
void setEventsEnabled (bool value)
 
bool isUpdateEnabled ()
 
bool areCommandsEnabled ()
 
bool areEventsEnabled ()
 
- Public Member Functions inherited from omega::EngineModule
 EngineModule (const String &name)
 
 EngineModule ()
 
virtual ~EngineModule ()
 
void requestOpenGLProfile (OpenGLProfile profile)
 This method can be used within an engine module ctor or initialization to test for module compatibility. More...
 
void enableSharedData ()
 
void disableSharedData ()
 
virtual void initialize ()
 
virtual void dispose ()
 
virtual void commitSharedData (SharedOStream &out)
 
virtual void updateSharedData (SharedIStream &in)
 
virtual void initializeRenderer (Renderer *)
 
void doInitialize (Engine *server)
 
void doDispose ()
 
virtual bool isInitialized ()
 
EnginegetEngine ()
 
Priority getPriority ()
 
void setPriority (Priority value)
 
const StringgetName ()
 
- Public Member Functions inherited from omicron::ReferenceType
 ReferenceType ()
 
virtual ~ReferenceType ()
 
void ref ()
 
void unref ()
 
long refCount ()
 

Protected Attributes

SceneNodemyNode
 
bool myUpdateEnabled
 
bool myEventsEnabled
 
bool myCommandsEnabled
 

Additional Inherited Members

- Public Types inherited from omega::EngineModule
enum  Priority {
  PriorityLowest = 0, PriorityLow = 1, PriorityNormal = 2, PriorityHigh = 3,
  PriorityHighest = 4
}
 
enum  OpenGLProfile { CoreProfile, CompatibilityProfile, UnspecifiedProfile }
 
- Static Public Member Functions inherited from omicron::ReferenceType
static void printObjCounts ()
 
- Static Protected Attributes inherited from omicron::ReferenceType
static List< ReferenceType * > mysObjList
 

Detailed Description

A specialied EngineModule used to control objects in a scene and define custom behaviors.

+ Inheritance diagram for omega::Actor:

Constructor & Destructor Documentation

omega::Actor::Actor ( const String name)
inline
omega::Actor::Actor ( )
inline

Member Function Documentation

bool omega::Actor::areCommandsEnabled ( )
inline
bool omega::Actor::areEventsEnabled ( )
inline
SceneNode * omega::Actor::getSceneNode ( )
inline
virtual bool omega::Actor::handleCommand ( const String cmd)
inlinevirtual

Reimplemented from omega::EngineModule.

virtual void omega::Actor::handleEvent ( const Event evt)
inlinevirtual

Reimplemented from omega::EngineModule.

Reimplemented in omega::TrackedObject.

bool omega::Actor::isUpdateEnabled ( )
inline
void omega::Actor::kill ( )
inline
virtual bool omega::Actor::onCommand ( const String cmd)
inlinevirtual
virtual void omega::Actor::onEvent ( const Event evt)
inlinevirtual
virtual void omega::Actor::onUpdate ( const UpdateContext context)
inlinevirtual

Callbacks These callbacks can be enabled / disabled using the corresponding callback filter functions.

void omega::Actor::setCommandsEnabled ( bool  value)
inline
void omega::Actor::setEventsEnabled ( bool  value)
inline
void omega::Actor::setSceneNode ( SceneNode node)
inline
void omega::Actor::setUpdateEnabled ( bool  value)
inline

Callback filter functions.

virtual void omega::Actor::update ( const UpdateContext context)
inlinevirtual

Member Data Documentation

bool omega::Actor::myCommandsEnabled
protected
bool omega::Actor::myEventsEnabled
protected
SceneNode* omega::Actor::myNode
protected
bool omega::Actor::myUpdateEnabled
protected

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