14
Nov
The parameter name starts with the class name,
Black Art of Java Game Programming by Joel Fan Sams, Macmillan Computer Publishing ISBN: 1571690433 Pub Date: 11/01/96 Previous Table of Contents Next The initiateClasses() Method This method sees to it that all classes used in this world are initiated. It also retrieves a parameter, the gravity, from the bouncing boxes applet file (see Listing 12-3). Listing 12-3 The bouncing boxes applet public class BouncingBoxes extends NoFlickerApplet implements Runnable { //– the world and the camera BouncingBoxWorld world; fCamera camera; //– standard-fare applet stuff Thread myThread; boolean alive; public void init () { //– construct the world world=new BouncingBoxWorld(this); //– construct the camera double viewangle=Math.PI/3; double viewdist=100; fPoint3d campos=new fPoint3d(0,15,30); fAngle3d camagl=new fAngle3d(0,0,0); double gridsize=15; double fading=0; camera=new fMagicCamera(world,viewangle,viewdist,campos, camagl,gridsize,fading); //– applet stuff myThread=new Thread(this); myThread.start(); alive=true; } protected long lastUpdate; public void run () {
Note: If you are looking for cheap and reliable provider to host and run your servlet application check Vision servlet hosting services
