Drone Grid Case Study: Creating the Enemies
Robert Chin · Apress eBooks · 2014
This chapter will cover the creation of the enemies for the Drone Grid case study. Covered first are arena objects, which have a relatively simple behavior. Next, I cover the tank enemy, which has much more complex behavior. In order to understand this behavior, I cover the basics of a finite state machine. Next, I cover the finite state machine and the related classes specific to our computer controlled tank. I then cover other classes needed to implement the tank in our game. Finally, I discuss a hands-on example that uses the classes I have previously covered in a working example.