Main Page | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

ScriptCmd Class Reference

Inheritance diagram for ScriptCmd:

Inheritance graph
Collaboration diagram for ScriptCmd:

Collaboration graph

Detailed Description

Command which execute script function.

Definition at line 12 of file ScriptCmd.h.

Public Member Functions

 ScriptCmd (ScriptState *script, int funcRef)
 Obtain script function.
virtual ~ScriptCmd ()
 Remove function from registry.
virtual bool finish (int count)
 Return true when command has finished his work.

Constructor & Destructor Documentation

ScriptCmd::ScriptCmd ScriptState script,
int  funcRef

Obtain script function.

script script state where to execute
funcRef index of function at registry

Definition at line 19 of file ScriptCmd.cpp.

00020 {
00021     m_script = script;
00022     m_funcRef = funcRef;
00023 }

ScriptCmd::~ScriptCmd  )  [virtual]

Remove function from registry.

Definition at line 28 of file ScriptCmd.cpp.

00029 {
00030     m_script->unref(m_funcRef);
00031 }

Member Function Documentation

bool ScriptCmd::finish int  count  )  [virtual]

Return true when command has finished his work.

count number of calls
true for finish
ScriptException when error occures

Implements Command.

Definition at line 40 of file ScriptCmd.cpp.

00041 {
00042     return m_script->callCommand(m_funcRef, count);
00043 }

The documentation for this class was generated from the following files:
Generated on Wed Jun 1 09:56:39 2005 for Fish Fillets - Next Generation by  doxygen 1.4.2