Skip to main content

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

  • Chapter
  • First Online:
  • 2622 Accesses

Abstract

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 components (actors) are currently on the screen (or stage, or set, if you like the film production lingo that we are using) at any given time (or level) in the game.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   49.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2014 Wallace Jackson

About this chapter

Cite this chapter

Jackson, W. (2014). Directing the Cast of Actors: Creating a Casting Director Engine and Creating the Bagel Actor Class. In: Beginning Java 8 Games Development. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-0415-3_10

Download citation

Publish with us

Policies and ethics