se_core::Actor Class Reference

An actor is an in-game thing that may perform Action()s. More...

#include <Actor.hpp>

Inheritance diagram for se_core::Actor:

se_core::Component List of all members.

Public Types

typedef ComponentPtr< Actor,
sct_BLOB > 
Ptr

Public Member Functions

 Actor (Composite *owner, const ComponentFactory *factory)
 Constructor.
 ~Actor ()
void stopScript ()
void popScript ()
void pushScript (const Script *s)
void setDefaultScript (const Script *s)
bool hasActiveScript ()
const Scriptscript ()
void disrupt ()
void affect ()
bool calcNextCoor ()
bool isMover () const
MovenextMove ()
const Movemove () const
void setDefaultPhysics (const Physics *ph)
void pushPhysics (const Physics *ph)
void pushPhysics (const char *ph)
void popPhysics ()
void scheduleForDestruction ()
coor_t walkSpeed () const
Abilitiesabilities ()
void say (const char *message)
 Have the Actor say something.
void sound (const char *snd)
const Compositetarget () const
Compositetarget ()
bool hasTarget () const
void setTarget (Composite *target)
void resetTarget ()
const Pospos () const
PosnextPos () const
bool hasDefaultAction () const
const ActiondefaultAction (Parameter &out) const
void planDefaultAction () const
virtual const char * name () const
 By default returns name of composite, which returns name of composite factory.
Compositeowner ()
const Compositeowner () const
 Component type.
Componentcomponent (int type)
const Componentcomponent (int type) const
int type () const
const ComponentFactoryfactory ()
bool isActive ()
bool isDead () const

Protected Member Functions

virtual void setActive (bool state)
 Called by Composite.
virtual void setDead ()
 Called by Composite.
virtual void parentChanged (Composite *newParent, Composite *oldParent)
 Called by Composite.
virtual void zoneChanged (int type, Composite *newArea, Composite *oldArea)
 Called by Composite.
virtual void init ()
 Called by Composite.
virtual void cleanup ()
 Called by Composite.

Protected Attributes

PosComponentposComponent_
SpawnComponentspawnComponent_
ScriptComponentscriptComponent_
ActionComponentactionComponent_
PhysicsComponentphysicsComponent_
StatComponentstatComponent_
int type_
 The type of Component.
Compositeowner_
const ComponentFactoryfactory_

Friends

class Composite

Detailed Description

An actor is an in-game thing that may perform Action()s.

Definition at line 53 of file Actor.hpp.


Member Typedef Documentation

typedef ComponentPtr<Actor, sct_BLOB> se_core::Actor::Ptr
 

Definition at line 55 of file Actor.hpp.


Constructor & Destructor Documentation

se_core::Actor::Actor Composite owner,
const ComponentFactory factory
 

Constructor.

Definition at line 45 of file Actor.cpp.

References se_core::sct_BLOB.

se_core::Actor::~Actor  ) 
 

Definition at line 57 of file Actor.cpp.


Member Function Documentation

Abilities* se_core::Actor::abilities  )  [inline]
 

Definition at line 136 of file Actor.hpp.

void se_core::Actor::affect  )  [inline]
 

Definition at line 91 of file Actor.hpp.

References se_core::Component::isDead().

bool se_core::Actor::calcNextCoor  )  [inline]
 

Definition at line 96 of file Actor.hpp.

void se_core::Component::cleanup  )  [protected, virtual, inherited]
 

Called by Composite.

Reimplemented in se_core::NodeComponent, se_core::RootComponent, se_core::ActionComponent, se_core::CutsceneComponent, se_core::PosComponent, se_core::ScriptComponent, se_core::SignalAreaComponent, se_core::SignalComponent, se_core::SpawnComponent, se_ogre::O3dAreaComponent, se_ogre::O3dThingComponent, and se_basic::NavMeshComponent.

Definition at line 47 of file Component.cpp.

Referenced by se_core::Composite::cleanup().

const Component* se_core::Component::component int  type  )  const [inline, inherited]
 

Definition at line 71 of file Component.hpp.

References se_core::Component::component().

Component* se_core::Component::component int  type  )  [inline, inherited]
 

Definition at line 67 of file Component.hpp.

References se_core::Composite::component().

Referenced by se_core::Component::component(), se_core::Component::ComponentPtr< T, type >::ComponentPtr(), se_ogre::O3dThingComponent::get(), se_ogre::O3dNodeComponent::get(), and se_ogre::O3dAreaComponent::get().

const Action* se_core::Actor::defaultAction Parameter out  )  const [inline]
 

Definition at line 164 of file Actor.hpp.

void se_core::Actor::disrupt  )  [inline]
 

Definition at line 87 of file Actor.hpp.

const ComponentFactory* se_core::Component::factory  )  [inline, inherited]
 

Definition at line 81 of file Component.hpp.

Referenced by se_core::Composite::releaseComponents().

bool se_core::Actor::hasActiveScript  )  [inline]
 

Definition at line 80 of file Actor.hpp.

Referenced by se_basic::Say::perform().

bool se_core::Actor::hasDefaultAction  )  const [inline]
 

Definition at line 160 of file Actor.hpp.

bool se_core::Actor::hasTarget  )  const [inline]
 

Definition at line 153 of file Actor.hpp.

void se_core::Component::init  )  [protected, virtual, inherited]
 

Called by Composite.

Reimplemented in se_core::RootComponent, se_core::SignalAreaComponent, se_ogre::O3dAreaComponent, and se_ogre::O3dThingComponent.

Definition at line 42 of file Component.cpp.

Referenced by se_core::Composite::init().

bool se_core::Component::isActive  )  [inherited]
 

Definition at line 26 of file Component.cpp.

bool se_core::Component::isDead  )  const [inherited]
 

Definition at line 31 of file Component.cpp.

Referenced by affect().

bool se_core::Actor::isMover  )  const [inline]
 

Definition at line 100 of file Actor.hpp.

const Move& se_core::Actor::move  )  const [inline]
 

Definition at line 108 of file Actor.hpp.

const char * se_core::Component::name  )  const [virtual, inherited]
 

By default returns name of composite, which returns name of composite factory.

Reimplemented in se_core::CutsceneAreaComponent, se_core::CutsceneComponent, se_core::CutsceneManager, se_core::CollisionAreaComponent, se_core::SignalAreaComponent, se_core::SignalComponent, se_core::SpawnAreaComponent, se_core::SpawnManager, se_core::ZoneAreaComponent, se_core::ZoneComponent, se_core::ZoneManager, se_basic::NavMeshAreaComponent, se_basic::NavMeshComponent, and se_basic::NavMeshManager.

Definition at line 21 of file Component.cpp.

Referenced by se_core::Area::addNeighbour(), se_core::DefaultTC::collide(), se_core::CoDefault::collide(), se_basic::Say::perform(), and se_ogre::SpeechBubble::speechEvent().

Move& se_core::Actor::nextMove  )  [inline]
 

Definition at line 104 of file Actor.hpp.

Referenced by se_basic::EnterTo::perform().

Pos& se_core::Actor::nextPos  )  const [inline]
 

Definition at line 158 of file Actor.hpp.

Referenced by se_basic::SimpleActorFactory::create(), se_basic::LeaveToAndStopScript::perform(), and se_basic::EnterTo::perform().

const Composite* se_core::Component::owner  )  const [inline, inherited]
 

Component type.

Definition at line 62 of file Component.hpp.

Composite* se_core::Component::owner  )  [inline, inherited]
 

Definition at line 54 of file Component.hpp.

Referenced by se_core::CollisionAreaComponent::_testCollisionCandidates(), se_core::CollisionAreaComponent::_testCollisionCandidates2(), se_core::HealthListeners::add(), se_core::ZoneAreaComponent::addNeighbour(), se_basic::PhTrackingCamera::affect(), se_core::HealthListeners::castHealthChangedEvent(), se_core::Component::ComponentPtr< T, type >::ComponentPtr(), se_ogre::ThingMOManager::create(), se_basic::SimpleAreaThingEncoder::encode(), se_core::SpawnComponent::get(), se_core::SignalComponent::get(), se_core::SignalAreaComponent::get(), se_core::ScriptComponent::get(), se_core::PosComponent::get(), se_core::PhysicsComponent::get(), se_core::StatComponent::get(), se_ogre::O3dThingComponent::get(), se_ogre::O3dNodeComponent::get(), se_ogre::O3dAreaComponent::get(), se_core::Pos::hasArea(), se_core::CollisionGrid::insert(), se_core::CollisionComponent::isCollideable(), se_core::ZoneComponent::name(), se_core::Component::ComponentPtr< T, type >::operator=(), se_core::DefaultTC::pop(), se_core::CoDefault::pop(), se_core::DefaultTC::popAndDie(), se_core::CoDefault::popAndDie(), se_core::CollisionAreaComponent::removeCollideable(), se_core::AreaManager::resetThings(), scheduleForDestruction(), se_core::AreaManager::setActive(), se_core::AreaManager::setInactive(), and se_ogre::O3dManager::updateStats().

virtual void se_core::Component::parentChanged Composite newParent,
Composite oldParent
[inline, protected, virtual, inherited]
 

Called by Composite.

Reimplemented in se_core::AreaChildComponent, and se_core::NodeComponent.

Definition at line 101 of file Component.hpp.

Referenced by se_core::Composite::resetParent(), and se_core::Composite::setParent().

void se_core::Actor::planDefaultAction  )  const
 

Definition at line 81 of file Actor.cpp.

References se_core::CHANNEL_EXTRA.

void se_core::Actor::popPhysics  )  [inline]
 

Definition at line 124 of file Actor.hpp.

Referenced by se_ogre::SpeechBubble::lostFocusEvent().

void se_core::Actor::popScript  )  [inline]
 

Definition at line 67 of file Actor.hpp.

Referenced by se_basic::PopScript::perform().

const Pos& se_core::Actor::pos  )  const [inline]
 

Definition at line 157 of file Actor.hpp.

Referenced by se_basic::EnterTo::perform().

void se_core::Actor::pushPhysics const char *  ph  )  [inline]
 

Definition at line 120 of file Actor.hpp.

void se_core::Actor::pushPhysics const Physics ph  )  [inline]
 

Definition at line 116 of file Actor.hpp.

Referenced by se_ogre::SpeechBubble::grabbedFocusEvent().

void se_core::Actor::pushScript const Script s  )  [inline]
 

Definition at line 71 of file Actor.hpp.

Referenced by se_basic::PushScript::perform().

void se_core::Actor::resetTarget  )  [inline]
 

Definition at line 155 of file Actor.hpp.

Referenced by se_ogre::SpeechBubble::lostFocusEvent().

void se_core::Actor::say const char *  message  ) 
 

Have the Actor say something.

The message is looked up in the language file and typically shown in a speech bubble.

Parameters:
message The message name as occurring in a speech bubble.

Definition at line 69 of file Actor.cpp.

Referenced by se_basic::Say::perform().

void se_core::Actor::scheduleForDestruction  )  [inline]
 

Definition at line 128 of file Actor.hpp.

References se_core::Component::owner(), and se_core::Composite::scheduleForDestruction().

const Script* se_core::Actor::script  )  [inline]
 

Definition at line 83 of file Actor.hpp.

Referenced by se_basic::Say::perform().

virtual void se_core::Component::setActive bool  state  )  [inline, protected, virtual, inherited]
 

Called by Composite.

Reimplemented in se_core::RootChildComponent, se_core::ActionComponent, se_core::CutsceneAreaComponent, se_core::PhysicsAreaComponent, se_core::CollisionAreaComponent, se_core::ScriptComponent, se_core::SignalAreaComponent, se_core::SpawnAreaComponent, se_core::ZoneAreaComponent, se_client::CameraComponent, se_client::PlayerComponent, se_ogre::O3dAreaComponent, se_ogre::O3dThingComponent, and se_basic::NavMeshAreaComponent.

Definition at line 93 of file Component.hpp.

Referenced by se_core::Composite::setActive().

virtual void se_core::Component::setDead  )  [inline, protected, virtual, inherited]
 

Called by Composite.

Reimplemented in se_core::SignalComponent, and se_core::SpawnComponent.

Definition at line 97 of file Component.hpp.

Referenced by se_core::Composite::scheduleForDestruction().

void se_core::Actor::setDefaultPhysics const Physics ph  )  [inline]
 

Definition at line 112 of file Actor.hpp.

Referenced by se_basic::SimpleActorFactory::create().

void se_core::Actor::setDefaultScript const Script s  )  [inline]
 

Definition at line 75 of file Actor.hpp.

void se_core::Actor::setTarget Composite target  )  [inline]
 

Definition at line 154 of file Actor.hpp.

Referenced by se_ogre::SpeechBubble::grabbedFocusEvent(), and se_ogre::SpeechBubble::speechEvent().

void se_core::Actor::sound const char *  snd  ) 
 

Definition at line 75 of file Actor.cpp.

void se_core::Actor::stopScript  )  [inline]
 

Definition at line 63 of file Actor.hpp.

Referenced by se_basic::StopScript::perform(), and se_basic::LeaveToAndStopScript::perform().

Composite* se_core::Actor::target  )  [inline]
 

Definition at line 152 of file Actor.hpp.

const Composite* se_core::Actor::target  )  const [inline]
 

Definition at line 151 of file Actor.hpp.

int se_core::Component::type  )  const [inline, inherited]
 

Definition at line 76 of file Component.hpp.

Referenced by se_core::Composite::component().

coor_t se_core::Actor::walkSpeed  )  const [inline]
 

Definition at line 132 of file Actor.hpp.

References coor_t.

void se_core::Component::zoneChanged int  type,
Composite newArea,
Composite oldArea
[protected, virtual, inherited]
 

Called by Composite.

Reimplemented in se_core::AreaChildComponent, se_core::CollisionComponent, and se_core::SignalComponent.

Definition at line 37 of file Component.cpp.

Referenced by se_core::Composite::zoneChanged().


Friends And Related Function Documentation

friend class Composite [friend, inherited]
 

Definition at line 89 of file Component.hpp.


Member Data Documentation

ActionComponent* se_core::Actor::actionComponent_ [protected]
 

Definition at line 178 of file Actor.hpp.

const ComponentFactory* se_core::Component::factory_ [protected, inherited]
 

Definition at line 120 of file Component.hpp.

Composite* se_core::Component::owner_ [protected, inherited]
 

Definition at line 118 of file Component.hpp.

PhysicsComponent* se_core::Actor::physicsComponent_ [protected]
 

Definition at line 179 of file Actor.hpp.

PosComponent* se_core::Actor::posComponent_ [protected]
 

Definition at line 175 of file Actor.hpp.

ScriptComponent* se_core::Actor::scriptComponent_ [protected]
 

Definition at line 177 of file Actor.hpp.

SpawnComponent* se_core::Actor::spawnComponent_ [protected]
 

Definition at line 176 of file Actor.hpp.

StatComponent* se_core::Actor::statComponent_ [protected]
 

Definition at line 180 of file Actor.hpp.

int se_core::Component::type_ [protected, inherited]
 

The type of Component.

Definition at line 117 of file Component.hpp.


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

Home Page | SagaEngine trunk (updated nightly) reference generated Sun Dec 2 20:06:29 2007 by Doxygen version 1.3.9.1.

SourceForge.net Logo