Preface
Chapter 1:Gettinq Started with Al Sandbox
Introduction to Al sandbox
Understanding the sandbox
The project Iayout
The Premake build
Compiling the sandbox with VisuaI Studio 2008/201 0/201 2/201 3
Open source Iibraries
Open source tools
Lua IDE—Decoda
Running AI sandbox inside Decoda
Setting up a new Decoda project
Debugging Lua scripts
Decoda Watch window
Decoda Call Stack window
The Decoda VirtuaI Machines window
Simultaneous Lua and C+-I-debugging
VisuaI Studio—Attach to Process
Decoda——Attach to Process
Decoda..Attach System Debugger
Associating Lua scripts from code with Decoda
The Lua virtuaI machine
The Lua stack
Lua primitives
Metatables
Metamethods
Userdata
C/C++calling Lua functions
Lua calling C/C++functions
Function binding
Creating custom userdata
Looking at the vector data type
The demo framework
Ogre
Object-Oriented Input System
SandboxApplication
Sandbox
Agent
Utility classes
Lua binding
Summary
Chapter 2:Creating and Movinq Aqents
Creating a new sandbox project
Setting up the file structure
Extending the SandboxApplication class
Running your sandbox for the first time
Creating a new Decoda project
Configuring Decoda。S run executable
Creating a sandbox Lua script
Creating a floor
Adding a Iight
Adding a skybox
Adding meshes to the sandbox
Creating sandbox objects
Shooting blocks
Creating an agent Lua script
Creating a visual representation
Updating an agent position
Updating an agent orientation
Agent properties
Orientation
The forward axis
The leftaxis
The up axis
Location
Position
Size
Height
RadiLJS
……