Game Development Reference
In-Depth Information
Figure 15-15 . Create more AudioClip objects referencing the rightmono, upmono, downmono, wmono, and smono
files
Since we've made our AudioClip objects private , we need to create methods inside
of the InvinciBagel class, which can be called from our Bagel.java class (and other
classes as well, later on in development) using method calls.
Use your Source Insert Code Generate Setters work process to open
the Generate Setters dialog, seen in Figure 15-16 , and select the iSound0 through
iSound5 objects, so that NetBeans creates six .setiSound() methods.
Figure 15-16 . Use the Generate Setters dialog and create six .setiSound() methods
 
 
 
Search WWH ::




Custom Search