O'Reilly logo

Beginning Java 8 Games Development by Wallace Jackson

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

CHAPTER 10

image

Directing the Cast of Actors: Creating a Casting Director Engine and Creating the Bagel Actor Class

Now that we have created the public abstract Actor and Hero classes (the Actor Engine) in Chapter 8, and some basic KeyEvent handling in Chapter 9, it is time to put more of our game infrastructure in place here in Chapter 10. We are going to create yet another Java class to manage our cast of actors, called CastingDirector.java (the Casting Engine). We will do this so that we can keep track of the Actor objects on the game play screen that have been created using our Actor and Hero abstract classes. It is important to know what game ...

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