xoreos  0.0.5
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | List of all members
Engines::KotOR2::ScriptContainer Class Reference

#include <container.h>

Inheritance diagram for Engines::KotOR2::ScriptContainer:
Inheritance graph
[legend]
Collaboration diagram for Engines::KotOR2::ScriptContainer:
Collaboration graph
[legend]

Public Member Functions

 ScriptContainer ()
 
 ~ScriptContainer ()
 
const Common::UStringgetScript (Script script) const
 
bool hasScript (Script script) const
 
bool runScript (Script script, const Aurora::NWScript::ObjectReference owner=Aurora::NWScript::ObjectReference(), const Aurora::NWScript::ObjectReference triggerer=Aurora::NWScript::ObjectReference())
 

Static Public Member Functions

static bool runScript (const Common::UString &script, const Aurora::NWScript::ObjectReference owner=Aurora::NWScript::ObjectReference(), const Aurora::NWScript::ObjectReference triggerer=Aurora::NWScript::ObjectReference())
 
static bool runScript (const Common::UString &script, const Aurora::NWScript::ScriptState &state, const Aurora::NWScript::ObjectReference owner=Aurora::NWScript::ObjectReference(), const Aurora::NWScript::ObjectReference triggerer=Aurora::NWScript::ObjectReference())
 

Protected Member Functions

void clearScripts ()
 
void readScripts (const Aurora::GFF3Struct &gff)
 
void readScripts (const ScriptContainer &container)
 

Private Attributes

Common::UString _scripts [kScriptMAX]
 

Detailed Description

Definition at line 47 of file container.h.

Constructor & Destructor Documentation

◆ ScriptContainer()

Engines::KotOR2::ScriptContainer::ScriptContainer ( )

Definition at line 113 of file container.cpp.

◆ ~ScriptContainer()

Engines::KotOR2::ScriptContainer::~ScriptContainer ( )

Definition at line 116 of file container.cpp.

Member Function Documentation

◆ clearScripts()

void Engines::KotOR2::ScriptContainer::clearScripts ( )
protected

Definition at line 129 of file container.cpp.

References _scripts, and Engines::KotOR2::kScriptMAX.

Referenced by readScripts().

Here is the caller graph for this function:

◆ getScript()

const Common::UString & Engines::KotOR2::ScriptContainer::getScript ( Script  script) const

Definition at line 119 of file container.cpp.

References _scripts, and Engines::KotOR2::kScriptMAX.

Referenced by hasScript(), and runScript().

Here is the caller graph for this function:

◆ hasScript()

bool Engines::KotOR2::ScriptContainer::hasScript ( Script  script) const

Definition at line 125 of file container.cpp.

References Common::UString::empty(), and getScript().

Referenced by Engines::KotOR2::Door::click(), and Engines::KotOR2::Creature::click().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readScripts() [1/2]

void Engines::KotOR2::ScriptContainer::readScripts ( const Aurora::GFF3Struct gff)
protected

◆ readScripts() [2/2]

void Engines::KotOR2::ScriptContainer::readScripts ( const ScriptContainer container)
protected

Definition at line 145 of file container.cpp.

References _scripts, and Engines::KotOR2::kScriptMAX.

◆ runScript() [1/3]

bool Engines::KotOR2::ScriptContainer::runScript ( Script  script,
const Aurora::NWScript::ObjectReference  owner = Aurora::NWScript::ObjectReference(),
const Aurora::NWScript::ObjectReference  triggerer = Aurora::NWScript::ObjectReference() 
)

◆ runScript() [2/3]

bool Engines::KotOR2::ScriptContainer::runScript ( const Common::UString script,
const Aurora::NWScript::ObjectReference  owner = Aurora::NWScript::ObjectReference(),
const Aurora::NWScript::ObjectReference  triggerer = Aurora::NWScript::ObjectReference() 
)
static

Definition at line 156 of file container.cpp.

References Aurora::NWScript::NCSFile::getEmptyState(), and runScript().

Here is the call graph for this function:

◆ runScript() [3/3]

bool Engines::KotOR2::ScriptContainer::runScript ( const Common::UString script,
const Aurora::NWScript::ScriptState state,
const Aurora::NWScript::ObjectReference  owner = Aurora::NWScript::ObjectReference(),
const Aurora::NWScript::ObjectReference  triggerer = Aurora::NWScript::ObjectReference() 
)
static

Member Data Documentation

◆ _scripts

Common::UString Engines::KotOR2::ScriptContainer::_scripts[kScriptMAX]
private

Definition at line 75 of file container.h.

Referenced by clearScripts(), getScript(), and readScripts().


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