Context Struct Reference
[Core Engine Services]

Inherited by ContextImpl.

List of all members.

Public Methods

virtual ServicebeginCall (const Char *expectedType, int *args)=0
virtual void beginDispatch (Service *s, const Char *method)=0
virtual void dispatch ()=0
virtual void endDispatch ()=0
virtual bool asBool (int pos)=0
virtual Double asDouble (int pos)=0
virtual Float asFloat (int pos)=0
virtual int asInt (int pos)=0
virtual Matrix44asMatrix (int pos)=0
virtual void * asPointer (int pos)=0
virtual QuaternionasQuaternion (int pos)=0
virtual ServiceasService (int pos, const Char *expectedType)=0
virtual const CharasString (int pos)=0
virtual Vector3asVector (int pos)=0
virtual void pushBool (bool b)=0
virtual void pushDouble (Double d)=0
virtual void pushFloat (Float f)=0
virtual void pushInt (int i)=0
virtual void pushMatrix (const Matrix44 &m)=0
virtual void pushNull ()=0
virtual void pushPointer (void *p)=0
virtual void pushQuaternion (const Quaternion &q)=0
virtual void pushService (Service *s)=0
virtual void pushString (const Char *s)=0
virtual void pushString (const std::string &x)=0
virtual void pushVector (const Vector3 &v)=0
virtual void printContents ()=0


Detailed Description

The context manages a script execution environment. Each context represents a thread of execution, allowing multiple scripts to appear to run simultaneously.


Member Function Documentation

virtual bool Context::asBool int    pos [pure virtual]
 

Retrieve a boolean value from the call stack.

virtual Double Context::asDouble int    pos [pure virtual]
 

Retrieve a double precision number from the call stack.

virtual Float Context::asFloat int    pos [pure virtual]
 

Retrieve a floating point number from the call stack.

virtual int Context::asInt int    pos [pure virtual]
 

Retrieve an integer number from the call stack.

virtual Matrix44& Context::asMatrix int    pos [pure virtual]
 

Retrieve a Matrix44 from the call stack.

virtual void* Context::asPointer int    pos [pure virtual]
 

Retrieves a C pointer from the call stack.

virtual Quaternion& Context::asQuaternion int    pos [pure virtual]
 

Retrieve a quaternion from the call stack.

virtual Service* Context::asService int    pos,
const Char   expectedType
[pure virtual]
 

Retrieve a service instance from the call stack.

virtual const Char* Context::asString int    pos [pure virtual]
 

Retrieve a string value from the call stack.

virtual Vector3& Context::asVector int    pos [pure virtual]
 

Retrieve a Vector3 from the call stack.

virtual Service* Context::beginCall const Char   expectedType,
int *    args
[pure virtual]
 

Prepare the context to retrieve function call arguments. Returns the target service object (the "this" pointer).

virtual void Context::beginDispatch Service   s,
const Char   method
[pure virtual]
 

Prepare for a call to a script service method.

virtual void Context::dispatch   [pure virtual]
 

Make a call to a script service method.

virtual void Context::endDispatch   [pure virtual]
 

Clean up after a script service method call.

virtual void Context::printContents   [pure virtual]
 

Dump the contents of the context to the execution log (for debugging).

virtual void Context::pushBool bool    b [pure virtual]
 

Push a boolean value onto the call stack.

virtual void Context::pushDouble Double    d [pure virtual]
 

Push a double precision number onto the call stack.

virtual void Context::pushFloat Float    f [pure virtual]
 

Push a floating point value onto the call stack.

virtual void Context::pushInt int    i [pure virtual]
 

Push an integer onto the call stack.

virtual void Context::pushMatrix const Matrix44   m [pure virtual]
 

Push a Matrix44 onto the call stack.

virtual void Context::pushNull   [pure virtual]
 

Push a NULL value onto the call stack.

virtual void Context::pushPointer void *    p [pure virtual]
 

Push a C pointer onto the call stack.

virtual void Context::pushQuaternion const Quaternion   q [pure virtual]
 

Push a quaternion onto the call stack.

virtual void Context::pushService Service   s [pure virtual]
 

Push a service instance onto the call stack.

virtual void Context::pushString const std::string &    x [pure virtual]
 

Push the contents of an STL string onto the call stack.

virtual void Context::pushString const Char   s [pure virtual]
 

Push a C string onto the call stack.

virtual void Context::pushVector const Vector3   v [pure virtual]
 

Push a Vector3 onto the call stack.


The documentation for this struct was generated from the following file:


Flat Four Engine
Copyright (C) 2001 by 379, Inc.
This page generated by Doxygen