Interpreter Class Reference

Agent's behavior interpreter. More...

#include <Interpreter.h>

List of all members.

Public Member Functions

 Interpreter ()
 Default constructor.
 ~Interpreter ()
 Destructor.
void Interpret (string objectType, ObjectAgent *collisionAgent)
 Calls interpret when agent should decide next action.
void Interpret (ObjectAgent *freeAgent)
 Choose next action, when agent is not in collision.

Private Member Functions

bool method (const skString &name, skRValueArray &arguments, skRValue &returnValue, skExecutableContext &context)
 Calls script behavior handler.

Private Attributes

skInterpreter interpreter
 Simkin interpreter.
ObjectAgentagent
 "Parsed" agent


Detailed Description

Agent's behavior interpreter.


Constructor & Destructor Documentation

Interpreter::Interpreter (  )  [inline]

Default constructor.

Interpreter::~Interpreter (  )  [inline]

Destructor.


Member Function Documentation

void Interpreter::Interpret ( ObjectAgent freeAgent  ) 

Choose next action, when agent is not in collision.

Parameters:
freeAgent Agent, whose action is being chosen

void Interpreter::Interpret ( string  objectType,
ObjectAgent collisionAgent 
)

Calls interpret when agent should decide next action.

Parameters:
objectType Class of object involved in the collision
collisionAgent Agent, whose behavior is being interpreted

bool Interpreter::method ( const skString &  name,
skRValueArray &  arguments,
skRValue &  returnValue,
skExecutableContext &  context 
) [private]

Calls script behavior handler.

Parameters:
name Name of handler (in behavior script)
arguments Arguments passed to called method
returnValue Value returned by called method
context Script context (e.g. global variables, errors)


Member Data Documentation

ObjectAgent* Interpreter::agent [private]

"Parsed" agent

skInterpreter Interpreter::interpreter [private]

Simkin interpreter.


The documentation for this class was generated from the following files:
Generated on Sun Apr 29 11:46:11 2007 for IPP/ICP2007 by  doxygen 1.4.7