O'Reilly logo

Programming Game AI by Example by Mat Buckland

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

K
key,
and hash table, 261
indexed priority queue, 238
Lua table, 271-272
weapon type, 323
key methods, Simple Soccer AI, 176
key player, 145
key-value pair, Lua, 265
KickBall field player state, 156, 162-166
KickBall::Enter C++ method, 163
KickBall::Execute C++ method, 163-164
kicking force, Simple Soccer, 142
kicking range, Simple Soccer, 159
kick-off, Simple Soccer, 135
L
leader following, 132
leader space, offset pursuit steering behavior,
112
Leptothorax (ant), 118
level of detail AI, 329
library, Lua, 258
LIFO data structure, 215, 383, 406
limited lifetime triggers, 309-310
line of sight,
and navigation graphs, 334, 335, 337
caching, 319
test, 327, 329
line segment, 10
linguistic rule, 415
linguistic term, 415, 416, 421
load spike, 359
local coordinate system, MovingEntity class,
87
local space, 26-27
obstacle avoidance steering behavior,
100
local variable, Lua, 260, 265
locomotion (agent movement), 86
LOD AI, see level of detail AI
logical operators, Lua, 263
lookup table, 359-363
LOS, see line of sight
lower bound, cost, 241
Lua scripting language, 255-276
accessing function in C++, 273-274
accessing global variable in C++,
269-271
accessing table in C++, 271-272
Boolean type, 260
break, 265
C/C++ API, 257
comments, 259
exposing C++ class to, 276
exposing C++ function to, 274-275
for, 264
function type, 261
garbage collector, 276
global variable, 260
interfacing with C++, 268-276
library, 258, 268
local variable, 260
logical operators, 263
luac.exe, 258
memory management, 276
metatable, 263, 276
nil type, 259, 260
number type, 260
repeat, 264
setting up your compiler, 256
string type, 260
table type, 261-263, 276, 286
table variable, 260
thread type, 263
types, 260-263
until, 264
userdata type, 263
using with hierarchical goals, 413
variables, 258-260
virtual stack, 268-269
while, 264
lua_call function, 273
lua_close function, 258
lua_dofile function, 258
lua_getglobal function, 271
lua_gettable function, 272
lua_gettop function, 274
LUA_MINSTACK, 269
lua_open function, 257
lua_pushstring function, 272
lua_register function, 275
Index | 487

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required