DI-Guy Lua AI SDK
 All Classes Files Functions Variables Groups Pages
Core Functionality

Classes

class  luaCharacter
 The base class of all the diguyCharacter's lua representation. More...
 
class  luaSmartProp
 A base class for creating movable props with auto tagging features. More...
 
class  luaCrowdObject
 A simple object for agents to use as a shared blackboard for storing arbitrary information. More...
 
class  luaUIStateMachine
 A class for building interactive UI tools. More...
 

Variables

 diguy_package_registry = {}
 A global registry for storing package objects. More...
 
 lua_character_registry = {}
 A global registry for storing luaCharacter objects and decendants. More...
 
 lua_crowd_registry = {}
 A global registry for storing luaCrowdObjects. More...
 

Additions to table library

 luaMessageObject = {}
 A object that wraps an incoming diguy message. More...
 
string sender
 who sent the message; More...
 
string message_type
 typically 'signal', 'broadcast', 'callback' or user defined; More...
 
string message
 the actual contents of the message; More...
 
string params
 optional additional information in the message; More...
 
 luaMessageObject_mt = { __index = luaMessageObject }
 
function luaMessageObject_mt __tostring (e)
 
function luaMessageObject new (sender, message_type, message, params)
 luaMessageObject constructor More...
 

Detailed Description

Function Documentation

function luaMessageObject_mt __tostring ( )
function luaMessageObject new ( sender  ,
message_type  ,
message  ,
params   
)

luaMessageObject constructor

Parameters
senderwho sent the message
message_typetypically signal, broadcast, callback or user defined
messagethe actual contents of the message
paramsoptional additional information in the message

Variable Documentation

diguy_package_registry = {}

A global registry for storing package objects.

lua_character_registry = {}

A global registry for storing luaCharacter objects and decendants.

See Also
find_lua_character
lua_crowd_registry = {}

A global registry for storing luaCrowdObjects.

See Also
find_lua_crowd
luaMessageObject = {}

A object that wraps an incoming diguy message.

luaMessageObject_mt = { __index = luaMessageObject }
string message

the actual contents of the message;

string message_type

typically 'signal', 'broadcast', 'callback' or user defined;

string params

optional additional information in the message;

string sender

who sent the message;