Game Development Reference
In-Depth Information
SandboxApplication
The main AI sandbox class, which is SandboxApplication , inherits from the
BaseApplication class that implements the Cleanup , Draw , Initialize , and
Update functions. The CreateSandbox function creates an instance of a sandbox and
hooks up the Lua script specified by the filename parameter.
The following is a class overview of the SandboxApplication.h header:
The SandboxApplication implementation of the BaseApplication abstract class
Sandbox
The sandbox class represents the sandbox data as well as handling calls into the Lua sand-
box script. The creation of a sandbox requires an Ogre SceneNode instance to situate the
sandbox in the world. The sandbox's SceneNode instance acts as the parent to any addi-
tional geometry SceneNodes used for rendering; this also includes the AI agents within
the sandbox.
The following is a class overview of the Sandbox.h header:
Search WWH ::




Custom Search