28.04.2019 Views

[JAVA][Beginning Java 8 Games Development]

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 14 ■ Setting Up the Game Environment: Creating Fixed Sprite Classes Using the Actor Superclass<br />

Figure 14-11. Add a <strong>Java</strong> this keyword reference to PropH (object) inside of the constructor and open up method helper<br />

Double-click on the .setIsFlipH method, shown highlighted in Figure 14-11, and insert a true value inside the<br />

method call parameter area. The finished this.setIsFlipH(true); <strong>Java</strong> statement can be seen in Figure 14-12.<br />

Figure 14-12. Call the .setIsFlipH() method, off of a <strong>Java</strong> this (PropH) object reference, and pass it the true setting value<br />

306<br />

www.it-ebooks.info

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!