xoreos  0.0.5
Classes | Typedefs | Enumerations | Functions | Variables
Aurora::NWScript Namespace Reference

Classes

class  EngineType
 
class  FunctionContext
 
class  FunctionManager
 
class  NCSFile
 An NCS, BioWare's NWN Compile Script. More...
 
class  NCSStack
 
class  Object
 
class  ObjectContainer
 
class  ObjectManager
 
class  ObjectReference
 
class  ObjectSearch
 
struct  ScriptState
 
class  SearchList
 
class  SearchRange
 
class  SearchTagMap
 
class  Variable
 
class  VariableContainer
 

Typedefs

typedef std::vector< TypeSignature
 
typedef std::vector< class VariableParameters
 
typedef boost::function< void(class FunctionContext &ctx)> Function
 

Enumerations

enum  Type {
  kTypeVoid = 0, kTypeInt, kTypeFloat, kTypeString,
  kTypeObject, kTypeVector, kTypeEngineType, kTypeScriptState,
  kTypeArray, kTypeReference, kTypeAny
}
 

Functions

Common::UString formatTag (const Object *object)
 Construct a string with the tag of this object. More...
 
void formatVariable (Common::UString &str, const Variable &var)
 Print a description of this variable into that string. More...
 
Common::UString formatParams (const FunctionContext &ctx)
 Construct a string describing parameters of this function. More...
 
Common::UString formatReturn (const FunctionContext &ctx)
 Construct a string describing the return value of this function. More...
 
Common::UString formatType (Type type)
 Construct a string describing this variable type. More...
 

Variables

static const Common::UString kStringEmpty
 

Typedef Documentation

◆ Function

typedef boost::function<void (class FunctionContext &ctx)> Aurora::NWScript::Function

Definition at line 56 of file types.h.

◆ Parameters

typedef std::vector<class Variable> Aurora::NWScript::Parameters

Definition at line 54 of file types.h.

◆ Signature

typedef std::vector<Type> Aurora::NWScript::Signature

Definition at line 52 of file types.h.

Enumeration Type Documentation

◆ Type

Enumerator
kTypeVoid 
kTypeInt 
kTypeFloat 
kTypeString 
kTypeObject 
kTypeVector 
kTypeEngineType 

"effect", "event", "location", "talent"...

kTypeScriptState 

"action".

kTypeArray 
kTypeReference 

A reference/pointer to another variable.

kTypeAny 

Any other type.

Definition at line 36 of file types.h.

Function Documentation

◆ formatParams()

Common::UString Aurora::NWScript::formatParams ( const FunctionContext ctx)

◆ formatReturn()

Common::UString Aurora::NWScript::formatReturn ( const FunctionContext ctx)

Construct a string describing the return value of this function.

Definition at line 121 of file util.cpp.

References formatVariable(), Aurora::NWScript::FunctionContext::getReturn(), Aurora::NWScript::Variable::getType(), and kTypeVoid.

Referenced by Aurora::NWScript::FunctionManager::call().

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

◆ formatTag()

Common::UString Aurora::NWScript::formatTag ( const Object object)

◆ formatType()

Common::UString Aurora::NWScript::formatType ( Type  type)

◆ formatVariable()

void Aurora::NWScript::formatVariable ( Common::UString str,
const Variable var 
)

Variable Documentation

◆ kStringEmpty

const Common::UString Aurora::NWScript::kStringEmpty
static