From ggc
|
01 packagepackage is used to name the directory or folder a class is in Pavitra.arcade;
02 importimport means to make the classes and/or packages available in this program arcade.*;
03 importimport means to make the classes and/or packages available in this program wiki.Wiki;
04 /**
05 * All about my classclass is a group of fields and methods used for making objects here.
06 * @authorthis is the Javadoc tag for documenting who created the source code Pavitra Pullay
07 */
08 publicpublic is used to indicate unrestricted access (any other class can have access) classclass is a group of fields and methods used for making objects ArcadeGames extendsextends means to customize or extend the functionality of a class ArcadeGame
09 {open braces start code blocks and must be matched with a close brace
10 publicpublic is used to indicate unrestricted access (any other class can have access) ArcadeGames()
11 {open braces start code blocks and must be matched with a close brace
12 setName("My Arcade Games");
13 addArcadeLevel(newnew is used to create objects by calling the constructor PavitraDPullay.wackadot.WackadotLevel());
14 addArcadeLevel(newnew is used to create objects by calling the constructor PavitraPullay.LetsMakeADealLevel());
15 addArcadeLevel(newnew is used to create objects by calling the constructor Pavitra.InteractiveArtLevel());
16 addArcadeLevel(newnew is used to create objects by calling the constructor Pavitra.BreakoutLevel());
17 addArcadeLevel(newnew is used to create objects by calling the constructor Pavitra.lights.LightsOutLevel());
18 addArcadeLevel(newnew is used to create objects by calling the constructor HemendraPavitra.Breakout2Level());
19
20 }close braces end code blocks and must match an earlier open brace
21 }close braces end code blocks and must match an earlier open brace
|
Compiler Errors:
----------
1. ERROR in PavitraDPullay/wackadot/WackadotLevel.java (at line 103)
dot=new ImageSprite(Wiki.getMedia("Pavitra.jpg"));
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The constructor ImageSprite(URL) is undefined
----------
2. ERROR in PavitraDPullay/wackadot/WackadotLevel.java (at line 108)
redDot=new ImageSprite(Wiki.getMedia("Annie.jpg"));
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The constructor ImageSprite(URL) is undefined
----------
8 problems (8 errors)
Download/View Pavitra/arcade/ArcadeGames.java
/**Edit Dr. Jenkins code*/