Serialized Form
-
Package org.vyang.parkourwarrior
-
Class org.vyang.parkourwarrior.MenuBar
class MenuBar extends JMenuBar implements Serializable-
Serialized Fields
-
edit
JMenu edit
-
editAddMap
JMenuItem editAddMap
-
editManageMaps
JMenuItem editManageMaps
-
editPreferences
JMenuItem editPreferences
-
editRemoveMap
JMenuItem editRemoveMap
-
editToggleMusic
JMenuItem editToggleMusic
-
file
JMenu file
-
fileNew
JMenuItem fileNew
-
fileQuit
JMenuItem fileQuit
-
fileRestart
JMenuItem fileRestart
-
help
JMenu help
-
helpAbout
JMenuItem helpAbout
-
helpControls
JMenuItem helpControls
-
helpDocumentation
JMenuItem helpDocumentation
-
parkourMain
ParkourMain parkourMain
Reference to the main game panel.- Since:
- 1.1
-
window
JMenu window
-
windowFullscreen
JMenuItem windowFullscreen
-
-
-
Class org.vyang.parkourwarrior.ParkourMain
class ParkourMain extends JPanel implements Serializable-
Serialized Fields
-
currentMap
int currentMap
To determine which map is the player currently playing.- Since:
- 1.1
-
currentMapState
int currentMapState
To indicate the current map state.For loop to determine call which draw method (e.g. title screen, playing, finish screen).
- Since:
- 1.1
-
customPlayMap
int customPlayMap
The number for custom maps.The map can be anywhere in the system that the program have permission for.
- Since:
- 1.1
-
defaultPlayMap
int defaultPlayMap
The number for the default maps, which is inside the JAR.- Since:
- 1.1
-
dialogScreen
DialogScreen dialogScreen
Instance declaration forDialogScreen- Since:
- 1.4
-
dialogue
int dialogue
The number for the finish screen.- Since:
- 1.1
-
FPS
double FPS
The FPS of the game, currently 60.- Since:
- 1.0
-
ico
ImageIcon ico
The {ImageIcon} for the game.- Since:
- 1.0
-
keyHandler
KeyHandler keyHandler
The instance declaration forKeyHandler, used by all.- Since:
- 1.0
-
mapManager
MapManager mapManager
Instance declaration forMapManager, used by all.- Since:
- 1.1
-
maxHeightTiles
int maxHeightTiles
This is the maximum amount of tiles allowed in a column.- Since:
- 1.0
-
maxWidthTiles
int maxWidthTiles
This is the maximum amount of tiles allowed in a row.- Since:
- 1.0
-
maxWorldColumn
int maxWorldColumn
This is the maximum columns of ties that can be in a world.- Since:
- 1.1
-
maxWorldRow
int maxWorldRow
This is the maximum rows of tiles that can be in a world.- Since:
- 1.1
-
menuBar
MenuBar menuBar
Instance declaration forMenuBar- Since:
- 1.4
-
musicOn
boolean musicOn
To determine if the program needs to play music.- Since:
- 1.0
-
originalTileSize
int originalTileSize
This is the original tile size for tiles in Parkour Warrior.- Since:
- 1.0
-
parkourTimer
ParkourTimer parkourTimer
Instance declaration forParkourTimeclass, used by all.- Since:
- 1.1
-
pixelFont
Font pixelFont
The font used by the game.- Since:
- 1.2
-
play
int play
The number for playing map state.- Since:
- 1.1
-
player
Player player
Instance declaration forPlayerclass, used by all.- Since:
- 1.0
-
scale
int scale
This is the scale for the original tile size, meaning the real tile size istileSize = originalTileSize * scale.- Since:
- 1.0
-
screenHeight
int screenHeight
This is the screen maximum height in pixels, which ismaxHeightTiles * tileSize- Since:
- 1.0
-
screenWidth
int screenWidth
This is the maximum screen width in pixels, which ismaxWidthTiles * tileSize- Since:
- 1.0
-
soundClip
Clip soundClip
TheClipfor the music to play.- Since:
- 1.1
-
soundURL
URL soundURL
TheURLfor music of game.- Since:
- 1.1
-
thread
Thread thread
TheThreadfor game.- Since:
- 1.0
-
tileManager
TileManager tileManager
Instance declaration forTileManagerclass, used by all.- Since:
- 1.0
-
tileSize
int tileSize
This is mentioned atfinal int scale, and it is the final tile size for this game.- Since:
- 1.0
-
timerStartTime
long timerStartTime
The time when the timer is started, for time calculation.- Since:
- 1.2
-
title
int title
The number for title map state.- Since:
- 1.1
-
titleScreen
TitleScreen titleScreen
Instance declaration forTitleScreenclass, used by all.- Since:
- 1.2
-
-
-