Serialized Form
-
Package net.vincent.parkourwarrior
-
Class net.vincent.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
-
endIndex
ArrayList<Integer> endIndex
The end index, defined forPropertiesDataandTileManager.- Since:
- 1.1
-
finish
int finish
The number for the finish screen.- Since:
- 1.1
-
finishScreen
FinishScreen finishScreen
Instance declaration forFinishScreenclass, used by all.- Since:
- 1.2
-
FPS
double FPS
The FPS of the game, currently 60.- Since:
- 1.0
-
haveFinishedMap
ArrayList<Boolean> haveFinishedMap
This is for Graphics2D to see if the it need to print time next to the map, defined forPropertiesDataandTileManager.- Since:
- 1.1
-
ico
ImageIcon ico
The {ImageIcon} for the game.- Since:
- 1.0
-
isDefaultMap
ArrayList<Boolean> isDefaultMap
This is the type of map (e.g. default), defined forPropertiesDataandTileManager.- Since:
- 1.1
-
keyHandler
KeyHandler keyHandler
The instance declaration forKeyHandler, used by all.- Since:
- 1.0
-
mapNumber
ArrayList<Integer> mapNumber
This is the map number for the program to load the maps, defined forPropertiesDataandTileManager.- Since:
- 1.1
-
mapPath
ArrayList<String> mapPath
This is the path to maps in the system, defined forPropertiesDataandTileManager.- Since:
- 1.1
-
mapType
ArrayList<Integer> mapType
This is the type of map, defined forPropertiesDataandTileManager, currently unused.- 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
-
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
-
propertiesData
PropertiesData propertiesData
Instance declaration forPropertiesData, used by all.- Since:
- 1.1
-
recordTimeMiliseconds
ArrayList<Integer> recordTimeMiliseconds
The shortest milliseconds used to finish a map, defined forPropertiesDataandTileManager.- Since:
- 1.1
-
recordTimeMinutes
ArrayList<Integer> recordTimeMinutes
The shortest minutes used to finish a map, defined forPropertiesDataandTileManager.- Since:
- 1.1
-
recordTimeSeconds
ArrayList<Integer> recordTimeSeconds
The shortest seconds used to finish a map, defined forPropertiesDataandTileManager.- Since:
- 1.1
-
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
-
-
-