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

Designing the AI
There are two types of soccer players on a Simple Soccer team: field play
-
ers and goalkeepers. Both of these types derive from the same base class,
PlayerBase. Both make use of a cut-down version of the SteeringBehaviors
class you saw in the last chapter and both own finite state machines, with
their own set of states. See Figure 4.5.
144 | Chapter 4
Designing the AI
Figure 4.5. Class relationships at the agent level

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