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

field players, 134, 155-170
goalkeepers, 134, 170-176
passing the ball, 177
pitch, 135
rules, 134
team, 134
sine, of angle, 15
singleton, 57-59
single-variable function, 3
skill level, of Raven bot, 323
sliding door, negotiating, 409
slug, Raven projectile, 301, 302
smoothing, and steering behaviors,130-132
sniping, and navigation graph, 334
soccer, 133 see also Simple Soccer
soccer ball, 138
trapping, 173
soccer pitch, 135
soccer player,
attacking, 146
closest to ball, 146
controlling, 146
key, 145
receiving, 146
supporting, 146
soccer team states, 152
Attacking, 152, 154-155
Defending, 152, 153-154
PrepareForKickOff, 152
SoccerBall C++ class, 139-140
SoccerBall::FuturePosition C++ method,
141-142
SoccerBall::Kick C++ method, 165
SoccerBall::TimeToCoverDistance C++
method, 142-143
SoccerPitch C++ class, 136-137
SoccerTeam C++ class, 144, 145
SoccerTeam::CanShoot C++ method, 164,
169, 182-184
SoccerTeam::FindPass C++ method, 166,
184-185
SoccerTeam::GetBestPassFromReceiver C++
method, 185-189
SoccerTeam::isPassSafeFromAllOpponents
C++ method, 177
SoccerTeam::isPassSafeFromOpponent C++
method, 177-182
SohCahToa, triangle, 15
sound event, Raven, 320
sound notification triggers, 310
source code,
downloading, 475
installing, 475
source node, and graphs, 197
space,
local, 26-27
world, 26
sparse graph, 196, 204
SparseGraph C++ class, 207-209
spatial partitioning, 126-130
and navigation graphs, 342
spawn point, 299
spin-offs, from hierarchical goals, 405-413
SPT, see shortest path tree
square root, 6
square, of number, 6
squared-distance space, 14
stack,
data structure, 215
indexing, 269
stage direction, and scripting, 254
state, 379
blip, 63
design pattern, 50, 55
enter and exit methods, 46-47
global, 63
graph, 201
State C++ class, 48, 55, 62, 76, 384
state-driven agent architecture, 43
state machine, finite, see finite state machine
state space, 201
Rubik’s cube, 222
state transition, 44, 201
diagram, 54, 55, 68, 71
table, 47
StateMachine C++ class, 64, 145
states, scripted, 289-292
steering (agent movement), 86
steering behaviors,
activating and deactivating, 119
and Raven bot movement, 315
492 | Index

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