se_core::TimelineScript Class Reference

#include <TimelineScript.hpp>

Inheritance diagram for se_core::TimelineScript:

se_core::Script se_core::Object List of all members.

Public Types

enum  { fb_SPEECH_FINISHED }

Public Member Functions

 TimelineScript (const char *name, int trackerPosCount=40)
virtual ~TimelineScript ()
virtual const ActionnextAction (const ScriptComponent &performer, int channel, ScriptData *sd, Parameter &out) const
void addAction (int trackerPos, const char *name)
void addAction (int trackerPos, const Action *action)
void addAction (int trackerPos, const Action *action, int parameter)
void addAction (int trackerPos, const char *name, int parameter)
void addAction (int trackerPos, const char *name, String *attribute)
void addAction (int trackerPos, const Action *action, String *attribute)
void addAction (int trackerPos, const Action *action, String *attribute, int parameter)
void addAction (int trackerPos, const char *name, String *attribute, int parameter)
void setZeroMode (bool state)
virtual ScriptDatainit (const ScriptComponent &performer) const
virtual void reinit (const ScriptComponent &performer, ScriptData *sd) const
virtual void reinitPop (const ScriptComponent &performer, ScriptData *sd, const char *fromScript) const
virtual void touched (const ScriptComponent &performer, ScriptData *sd, void *param) const
void release (ScriptData *&sd) const
virtual void nextAction (const ScriptComponent &performer, int channel, ScriptData *sd, ActionAndParameter &out) const
virtual void feedbackEvent (const ScriptComponent &performer, ScriptData *sd, int type) const
virtual bool isStacker () const
 Should return false if the script should be popped before any is pushed on top of it.
virtual bool isTransparent () const
int id () const
 Get the Object id of the object.
virtual const char * name () const
 Get the name of the Object.
int type () const
 Get the type of the Object (got_ACTION, got_THING, etc).

Static Public Member Functions

const Scriptlookup (const char *name)
int hash (int type, const char *name)
 Calculate hash (object id) given object type and name.

Static Protected Member Functions

const Object_lookup (int hash)
const Object_lookup (int type, const char *name)

Member Enumeration Documentation

anonymous enum [inherited]
 

Enumeration values:
fb_SPEECH_FINISHED 

Definition at line 66 of file Script.hpp.


Constructor & Destructor Documentation

se_core::TimelineScript::TimelineScript const char *  name,
int  trackerPosCount = 40
 

Definition at line 37 of file TimelineScript.cpp.

se_core::TimelineScript::~TimelineScript  )  [virtual]
 

Definition at line 50 of file TimelineScript.cpp.


Member Function Documentation

const Object* se_core::Object::_lookup int  type,
const char *  name
[inline, static, protected, inherited]
 

Definition at line 102 of file Object.hpp.

const Object * se_core::Object::_lookup int  hash  )  [static, protected, inherited]
 

Definition at line 56 of file Object.cpp.

References se_core::ObjectRepository::get(), and se_core::CompSchema::objectRepository().

Referenced by se_core::Signal::lookup(), se_core::Script::lookup(), se_core::QuestGoal::lookup(), se_core::Cutscene::lookup(), se_core::ThingCollide::lookup(), se_core::Physics::lookup(), se_core::Ambience::lookup(), and se_core::Action::lookup().

void se_core::TimelineScript::addAction int  trackerPos,
const char *  name,
String attribute,
int  parameter
[inline]
 

Definition at line 61 of file TimelineScript.hpp.

void se_core::TimelineScript::addAction int  trackerPos,
const Action action,
String attribute,
int  parameter
[inline]
 

Definition at line 56 of file TimelineScript.hpp.

void se_core::TimelineScript::addAction int  trackerPos,
const Action action,
String attribute
[inline]
 

Definition at line 52 of file TimelineScript.hpp.

void se_core::TimelineScript::addAction int  trackerPos,
const char *  name,
String attribute
[inline]
 

Definition at line 48 of file TimelineScript.hpp.

void se_core::TimelineScript::addAction int  trackerPos,
const char *  name,
int  parameter
[inline]
 

Definition at line 44 of file TimelineScript.hpp.

void se_core::TimelineScript::addAction int  trackerPos,
const Action action,
int  parameter
[inline]
 

Definition at line 40 of file TimelineScript.hpp.

void se_core::TimelineScript::addAction int  trackerPos,
const Action action
 

Definition at line 56 of file TimelineScript.cpp.

References Assert.

void se_core::TimelineScript::addAction int  trackerPos,
const char *  name
 

Definition at line 63 of file TimelineScript.cpp.

References Assert.

Referenced by se_core::CutsceneParser::readScript().

virtual void se_core::Script::feedbackEvent const ScriptComponent performer,
ScriptData sd,
int  type
const [inline, virtual, inherited]
 

Definition at line 67 of file Script.hpp.

Referenced by se_core::ScriptComponent::feedbackEvent().

int se_core::Object::hash int  type,
const char *  name
[static, inherited]
 

Calculate hash (object id) given object type and name.

Definition at line 42 of file Object.cpp.

int se_core::Object::id  )  const [inline, inherited]
 

Get the Object id of the object.

Each instance of Object has a unique Object id assigned to it during construction. The id_ is a hash of the name. And will be the same every time the game is run.

Sometimes two different names can give the same hash, and id. When this occurs the name of the object must be changed.

Returns:
The unique Object instance id.

Definition at line 69 of file Object.hpp.

Referenced by se_core::ObjectRepository::add(), se_core::operator<<(), and se_core::ObjectRepository::remove().

virtual ScriptData* se_core::Script::init const ScriptComponent performer  )  const [inline, virtual, inherited]
 

Reimplemented in se_core::CustomScript, and se_core::ReentrantScript.

Definition at line 58 of file Script.hpp.

Referenced by se_core::ScriptComponent::pushScript(), and se_core::ScriptComponent::setDefaultScript().

virtual bool se_core::Script::isStacker  )  const [inline, virtual, inherited]
 

Should return false if the script should be popped before any is pushed on top of it.

Definition at line 73 of file Script.hpp.

virtual bool se_core::Script::isTransparent  )  const [inline, virtual, inherited]
 

Definition at line 74 of file Script.hpp.

const Script* se_core::Script::lookup const char *  name  )  [inline, static, inherited]
 

Definition at line 52 of file Script.hpp.

References se_core::Object::_lookup(), and se_core::got_SCRIPT.

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

Get the name of the Object.

Returns:
The name of the Object, or 0 if is not named.

Definition at line 78 of file Object.hpp.

Referenced by se_core::operator<<(), se_core::CutsceneParser::parse(), and se_basic::Say::perform().

void se_core::Script::nextAction const ScriptComponent performer,
int  channel,
ScriptData sd,
ActionAndParameter out
const [virtual, inherited]
 

Definition at line 61 of file Script.cpp.

References se_core::ActionAndParameter::parameter(), and se_core::ActionAndParameter::setAction().

const Action * se_core::TimelineScript::nextAction const ScriptComponent performer,
int  channel,
ScriptData sd,
Parameter out
const [virtual]
 

Reimplemented from se_core::Script.

Definition at line 70 of file TimelineScript.cpp.

References Assert.

virtual void se_core::Script::reinit const ScriptComponent performer,
ScriptData sd
const [inline, virtual, inherited]
 

Definition at line 59 of file Script.hpp.

virtual void se_core::Script::reinitPop const ScriptComponent performer,
ScriptData sd,
const char *  fromScript
const [inline, virtual, inherited]
 

Definition at line 60 of file Script.hpp.

void se_core::Script::release ScriptData *&  sd  )  const [inline, inherited]
 

Definition at line 62 of file Script.hpp.

void se_core::TimelineScript::setZeroMode bool  state  )  [inline]
 

Definition at line 68 of file TimelineScript.hpp.

virtual void se_core::Script::touched const ScriptComponent performer,
ScriptData sd,
void *  param
const [inline, virtual, inherited]
 

Definition at line 61 of file Script.hpp.

Referenced by se_core::ScriptComponent::touchDefault().

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

Get the type of the Object (got_ACTION, got_THING, etc).

Classes subclassing game objects should have a type enumerated in the enum ObjectType. The subclass is itself responsible for reporting the type during construction, and a whole subclass hierarchy may share the same type (like Action and its subclasses, Script and its subclasses, etc).

Returns:
The type of the game object.

Definition at line 91 of file Object.hpp.

Referenced by se_core::operator<<().


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

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

SourceForge.net Logo