Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- addMap() - Method in class net.vincent.parkourwarrior.PropertiesData
-
Adds a new map to the game.
- askJump - Variable in class net.vincent.parkourwarrior.Player
-
Whether the player has requested a jump.
C
- centerTextX(String, Graphics2D) - Method in class net.vincent.parkourwarrior.TitleScreen
-
Calculates the X position to center a text string horizontally.
- centerTextY(String, Graphics2D) - Method in class net.vincent.parkourwarrior.TitleScreen
-
Calculates the Y position to center a text string vertically.
- choosedMap - Variable in class net.vincent.parkourwarrior.TitleScreen
-
The index of the currently selected map.
- collideDown - Variable in class net.vincent.parkourwarrior.Player
-
Whether the player is colliding downward.
- collideLeft - Variable in class net.vincent.parkourwarrior.Player
-
Whether the player is colliding to the left.
- collideRight - Variable in class net.vincent.parkourwarrior.Player
-
Whether the player is colliding to the right.
- collideUp - Variable in class net.vincent.parkourwarrior.Player
-
Whether the player is colliding upward.
- createPropertiesFile() - Method in class net.vincent.parkourwarrior.PropertiesData
-
Creates a new properties file with default map entries.
- currentMap - Variable in class net.vincent.parkourwarrior.ParkourMain
-
To determine which map is the player currently playing.
- currentMapState - Variable in class net.vincent.parkourwarrior.ParkourMain
-
To indicate the current map state.
- customPlayMap - Variable in class net.vincent.parkourwarrior.ParkourMain
-
The number for custom maps.
D
- defaultPlayMap - Variable in class net.vincent.parkourwarrior.ParkourMain
-
The number for the default maps, which is inside the JAR.
- detectCollisionDown() - Method in class net.vincent.parkourwarrior.Player
-
Detects collision below the player.
- detectCollisionLeft() - Method in class net.vincent.parkourwarrior.Player
-
Detects collision to the left of the player.
- detectCollisionRight() - Method in class net.vincent.parkourwarrior.Player
-
Detects collision to the right of the player.
- detectCollisionUp() - Method in class net.vincent.parkourwarrior.Player
-
Detects collision above the player.
- drawFinishScreen(Graphics2D) - Method in class net.vincent.parkourwarrior.FinishScreen
-
Draws the finish screen.
- drawPlayer(Graphics2D) - Method in class net.vincent.parkourwarrior.Player
-
Draws the player sprite on the screen.
- drawTile(Graphics2D) - Method in class net.vincent.parkourwarrior.TileManager
-
Draws the visible tiles on screen.
- drawTimer(Graphics2D) - Method in class net.vincent.parkourwarrior.ParkourTimer
-
Draws the timer on the screen.
- drawTitleScreen(Graphics2D) - Method in class net.vincent.parkourwarrior.TitleScreen
-
Draws the title screen.
E
- endIndex - Variable in class net.vincent.parkourwarrior.ParkourMain
-
The end index, defined for
PropertiesDataandTileManager. - endTimeMilis - Variable in class net.vincent.parkourwarrior.ParkourTimer
-
The end time milliseconds when a map is completed.
- endTimeMilisecondsStr - Variable in class net.vincent.parkourwarrior.ParkourTimer
-
Formatted string for the end time milliseconds.
- endTimeMinutes - Variable in class net.vincent.parkourwarrior.ParkourTimer
-
The end time minutes when a map is completed.
- endTimeMinutesStr - Variable in class net.vincent.parkourwarrior.ParkourTimer
-
Formatted string for the end time minutes.
- endTimeSeconds - Variable in class net.vincent.parkourwarrior.ParkourTimer
-
The end time seconds when a map is completed.
- endTimeSecondsStr - Variable in class net.vincent.parkourwarrior.ParkourTimer
-
Formatted string for the end time seconds.
F
- fall() - Method in class net.vincent.parkourwarrior.Player
-
Handles the player's falling logic.
- falling - Variable in class net.vincent.parkourwarrior.Player
-
Whether the player is currently falling.
- fallSpeed - Variable in class net.vincent.parkourwarrior.Player
-
The speed of the player's fall in pixels per frame.
- finish - Variable in class net.vincent.parkourwarrior.ParkourMain
-
The number for the finish screen.
- finishScreen - Variable in class net.vincent.parkourwarrior.ParkourMain
-
Instance declaration for
FinishScreenclass, used by all. - FinishScreen - Class in net.vincent.parkourwarrior
-
Finish screen class for Parkour Warrior.
- FinishScreen(ParkourMain) - Constructor for class net.vincent.parkourwarrior.FinishScreen
-
Constructs a new
FinishScreenwith a reference to the main game panel. - FPS - Variable in class net.vincent.parkourwarrior.ParkourMain
-
The FPS of the game, currently 60.
G
- getPixelFont(String) - Method in class net.vincent.parkourwarrior.ParkourMain
-
The method to get the font file in
resand create aFontfor the program to use. - getPlayer() - Method in class net.vincent.parkourwarrior.Player
-
Loads the player's sprite images from the resources.
- getSound(String) - Method in class net.vincent.parkourwarrior.ParkourMain
-
The method to get the sound file from
resand puts the audio into aClip. - getTile() - Method in class net.vincent.parkourwarrior.TileManager
-
Loads all tile images from the resources and assigns their solid properties.
- goLeft - Variable in class net.vincent.parkourwarrior.Player
-
Whether the player is moving left.
- goRight - Variable in class net.vincent.parkourwarrior.Player
-
Whether the player is moving right.
H
- haveFinishedMap - Variable in class net.vincent.parkourwarrior.ParkourMain
-
This is for Graphics2D to see if the it need to print time next to the map, defined for
PropertiesDataandTileManager.
I
- ico - Variable in class net.vincent.parkourwarrior.ParkourMain
-
The {ImageIcon} for the game.
- image - Variable in class net.vincent.parkourwarrior.Tile
-
The
BufferedImageto store the image of a tile. - isDefaultMap - Variable in class net.vincent.parkourwarrior.ParkourMain
-
This is the type of map (e.g.
J
- jump() - Method in class net.vincent.parkourwarrior.Player
-
Handles the player's jump logic.
- jumpHeight - Variable in class net.vincent.parkourwarrior.Player
-
The height of the player's jump in pixels.
- jumping - Variable in class net.vincent.parkourwarrior.Player
-
Whether the player is currently jumping.
- jumpSpeed - Variable in class net.vincent.parkourwarrior.Player
-
The speed of the player's jump in pixels per frame.
K
- keyHandler - Variable in class net.vincent.parkourwarrior.ParkourMain
-
The instance declaration for
KeyHandler, used by all. - KeyHandler - Class in net.vincent.parkourwarrior
-
Keyboard input handler for the game.
- KeyHandler(ParkourMain) - Constructor for class net.vincent.parkourwarrior.KeyHandler
-
Constructs a new
KeyHandlerwith a reference to the main game panel. - keyPressed(KeyEvent) - Method in class net.vincent.parkourwarrior.KeyHandler
-
Invoked when a key has been pressed.
- keyReleased(KeyEvent) - Method in class net.vincent.parkourwarrior.KeyHandler
-
Invoked when a key has been released.
- keyTyped(KeyEvent) - Method in class net.vincent.parkourwarrior.KeyHandler
-
Invoked when a key has been typed.
L
- loadMap(ArrayList<String>) - Method in class net.vincent.parkourwarrior.TileManager
-
Loads map data from the specified resource paths.
- loadProperties() - Method in class net.vincent.parkourwarrior.PropertiesData
-
Loads map and game data from the properties file.
M
- main(String[]) - Static method in class net.vincent.parkourwarrior.ParkourWarrior
-
Launches the Parkour Warrior game.
- mapNumber - Variable in class net.vincent.parkourwarrior.ParkourMain
-
This is the map number for the program to load the maps, defined for
PropertiesDataandTileManager. - mapPath - Variable in class net.vincent.parkourwarrior.ParkourMain
-
This is the path to maps in the system, defined for
PropertiesDataandTileManager. - mapType - Variable in class net.vincent.parkourwarrior.ParkourMain
-
This is the type of map, defined for
PropertiesDataandTileManager, currently unused. - MAX_MOMENTUM_TICKS - Static variable in class net.vincent.parkourwarrior.Player
-
The maximum number of ticks for momentum to last.
- maxHeightTiles - Variable in class net.vincent.parkourwarrior.ParkourMain
-
This is the maximum amount of tiles allowed in a column.
- maxJumpHeight - Variable in class net.vincent.parkourwarrior.Player
-
The maximum height the player can reach during a jump.
- maxWidthTiles - Variable in class net.vincent.parkourwarrior.ParkourMain
-
This is the maximum amount of tiles allowed in a row.
- maxWorldColumn - Variable in class net.vincent.parkourwarrior.ParkourMain
-
This is the maximum columns of ties that can be in a world.
- maxWorldRow - Variable in class net.vincent.parkourwarrior.ParkourMain
-
This is the maximum rows of tiles that can be in a world.
- momentumCountLeft - Variable in class net.vincent.parkourwarrior.Player
-
Counter for leftward momentum ticks.
- momentumCountRight - Variable in class net.vincent.parkourwarrior.Player
-
Counter for rightward momentum ticks.
- momentumLeft - Variable in class net.vincent.parkourwarrior.Player
-
Whether the player has leftward momentum after releasing the left key.
- momentumRight - Variable in class net.vincent.parkourwarrior.Player
-
Whether the player has rightward momentum after releasing the right key.
- musicOn - Variable in class net.vincent.parkourwarrior.ParkourMain
-
To determine if the program needs to play music.
N
- net.vincent.parkourwarrior - package net.vincent.parkourwarrior
P
- paintComponent(Graphics) - Method in class net.vincent.parkourwarrior.ParkourMain
-
The method for calling paint methods in each state for each class.
- ParkourMain - Class in net.vincent.parkourwarrior
-
The central class of Parkour Warrior.
- ParkourMain() - Constructor for class net.vincent.parkourwarrior.ParkourMain
-
The constructor for class
ParkourMain. - parkourTimer - Variable in class net.vincent.parkourwarrior.ParkourMain
-
Instance declaration for
ParkourTimeclass, used by all. - ParkourTimer - Class in net.vincent.parkourwarrior
-
Timer class for Parkour Warrior.
- ParkourTimer(ParkourMain) - Constructor for class net.vincent.parkourwarrior.ParkourTimer
-
Constructs a new
ParkourTimerwith a reference to the main game panel. - ParkourWarrior - Class in net.vincent.parkourwarrior
-
The entry point for the Parkour Warrior game.
- pixelFont - Variable in class net.vincent.parkourwarrior.ParkourMain
-
The font used by the game.
- play - Variable in class net.vincent.parkourwarrior.ParkourMain
-
The number for playing map state.
- player - Variable in class net.vincent.parkourwarrior.ParkourMain
-
Instance declaration for
Playerclass, used by all. - Player - Class in net.vincent.parkourwarrior
-
The player class for Parkour Warrior.
- Player(ParkourMain) - Constructor for class net.vincent.parkourwarrior.Player
-
Constructs a new
Playerwith a reference to the main game panel and initializes the player's collision area and screen position. - playerDirection - Variable in class net.vincent.parkourwarrior.Player
-
The player's facing direction.
- propertiesData - Variable in class net.vincent.parkourwarrior.ParkourMain
-
Instance declaration for
PropertiesData, used by all. - PropertiesData - Class in net.vincent.parkourwarrior
-
Properties data handler for Parkour Warrior.
- PropertiesData(ParkourMain) - Constructor for class net.vincent.parkourwarrior.PropertiesData
-
Constructs a new
PropertiesDatawith a reference to the main game panel.
R
- recordTimeMiliseconds - Variable in class net.vincent.parkourwarrior.ParkourMain
-
The shortest milliseconds used to finish a map, defined for
PropertiesDataandTileManager. - recordTimeMinutes - Variable in class net.vincent.parkourwarrior.ParkourMain
-
The shortest minutes used to finish a map, defined for
PropertiesDataandTileManager. - recordTimeSeconds - Variable in class net.vincent.parkourwarrior.ParkourMain
-
The shortest seconds used to finish a map, defined for
PropertiesDataandTileManager. - removeMap() - Method in class net.vincent.parkourwarrior.PropertiesData
-
Removes the current map from the game.
- run() - Method in class net.vincent.parkourwarrior.ParkourMain
-
The method from
Runnableinterface, to control what would be done each frame. - runTimer(long, double) - Method in class net.vincent.parkourwarrior.ParkourTimer
-
Runs the timer by calculating elapsed time since the start.
S
- saveProperties() - Method in class net.vincent.parkourwarrior.PropertiesData
-
Saves the current map and game data to the properties file.
- saveTime() - Method in class net.vincent.parkourwarrior.ParkourTimer
-
Saves the current timer as the end time and updates the record time if it is faster than the previous record.
- screenHeight - Variable in class net.vincent.parkourwarrior.ParkourMain
-
This is the screen maximum height in pixels, which is
maxHeightTiles * tileSize - screenWidth - Variable in class net.vincent.parkourwarrior.ParkourMain
-
This is the maximum screen width in pixels, which is
maxWidthTiles * tileSize - screenX - Variable in class net.vincent.parkourwarrior.Player
-
The player's X position on screen, used for camera offset.
- sneaking - Variable in class net.vincent.parkourwarrior.Player
-
Whether the player is currently sneaking.
- solidTile - Variable in class net.vincent.parkourwarrior.Tile
-
To see if a tile is solid.
T
- tile - Variable in class net.vincent.parkourwarrior.TileManager
-
Array of all available tile types.
- Tile - Class in net.vincent.parkourwarrior
-
Tiles class for each tile.
- Tile() - Constructor for class net.vincent.parkourwarrior.Tile
-
Constructs a new
Tilewith default values. - tileManager - Variable in class net.vincent.parkourwarrior.ParkourMain
-
Instance declaration for
TileManagerclass, used by all. - TileManager - Class in net.vincent.parkourwarrior
-
Tile manager class for Parkour Warrior.
- TileManager(ParkourMain) - Constructor for class net.vincent.parkourwarrior.TileManager
-
Constructs a new
TileManagerwith a reference to the main game panel, initializes the tile array and map data array, and loads all tile images. - tileNumber - Variable in class net.vincent.parkourwarrior.TileManager
-
The current tile number being processed.
- tileSize - Variable in class net.vincent.parkourwarrior.ParkourMain
-
This is mentioned at
final int scale, and it is the final tile size for this game. - timerStartTime - Variable in class net.vincent.parkourwarrior.ParkourMain
-
The time when the timer is started, for time calculation.
- timerTimeMiliseconds - Variable in class net.vincent.parkourwarrior.ParkourTimer
-
The current timer milliseconds.
- timerTimeMilisecondsStr - Variable in class net.vincent.parkourwarrior.ParkourTimer
-
Formatted string for the current timer milliseconds.
- timerTimeMinutes - Variable in class net.vincent.parkourwarrior.ParkourTimer
-
The current timer minutes.
- timerTimeMinutesStr - Variable in class net.vincent.parkourwarrior.ParkourTimer
-
Formatted string for the current timer minutes.
- timerTimeSeconds - Variable in class net.vincent.parkourwarrior.ParkourTimer
-
The current timer seconds.
- timerTimeSecondsStr - Variable in class net.vincent.parkourwarrior.ParkourTimer
-
Formatted string for the current timer seconds.
- title - Variable in class net.vincent.parkourwarrior.ParkourMain
-
The number for title map state.
- titleScreen - Variable in class net.vincent.parkourwarrior.ParkourMain
-
Instance declaration for
TitleScreenclass, used by all. - TitleScreen - Class in net.vincent.parkourwarrior
-
Title screen class for Parkour Warrior.
- TitleScreen(ParkourMain) - Constructor for class net.vincent.parkourwarrior.TitleScreen
-
Constructs a new
TitleScreenwith a reference to the main game panel.
U
- update() - Method in class net.vincent.parkourwarrior.ParkourMain
-
The method to call updates on updates on values of the game, like the player position.
- updatePlayer() - Method in class net.vincent.parkourwarrior.Player
-
Updates the player's state each frame.
- updateTile() - Method in class net.vincent.parkourwarrior.TileManager
-
Updates the tile state each frame.
W
- walkSpeed - Variable in class net.vincent.parkourwarrior.Player
-
The walking speed of the player in pixels per frame.
- worldX - Variable in class net.vincent.parkourwarrior.Player
-
The player's X position in the world.
- worldY - Variable in class net.vincent.parkourwarrior.Player
-
The player's Y position in the world.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form