Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- actionPerformed(ActionEvent) - Method in class org.vyang.parkourwarrior.MenuBar
-
The central action processing method.
- addMap() - Method in class org.vyang.parkourwarrior.MapManager
-
Adds a new map to the game.
- askJump - Variable in class org.vyang.parkourwarrior.Player
-
Whether the player has requested a jump.
C
- callback - Variable in class org.vyang.parkourwarrior.DialogScreen
-
Callback invoked with the dialog result (
truefor yes,falsefor no). - centerTextX(String, Graphics2D) - Method in class org.vyang.parkourwarrior.TitleScreen
-
Calculates the X position to center a text string horizontally.
- centerTextY(String, Graphics2D) - Method in class org.vyang.parkourwarrior.TitleScreen
-
Calculates the Y position to center a text string vertically.
- choosedMap - Variable in class org.vyang.parkourwarrior.TitleScreen
-
The index of the currently selected map.
- collideDown - Variable in class org.vyang.parkourwarrior.Player
-
Whether the player is colliding downward.
- collideLeft - Variable in class org.vyang.parkourwarrior.Player
-
Whether the player is colliding to the left.
- collideRight - Variable in class org.vyang.parkourwarrior.Player
-
Whether the player is colliding to the right.
- collideUp - Variable in class org.vyang.parkourwarrior.Player
-
Whether the player is colliding upward.
- createPropertiesFile() - Method in class org.vyang.parkourwarrior.MapManager
-
Creates a new properties file with default map entries.
- currentMap - Variable in class org.vyang.parkourwarrior.ParkourMain
-
To determine which map is the player currently playing.
- currentMapState - Variable in class org.vyang.parkourwarrior.ParkourMain
-
To indicate the current map state.
- currentSelection - Variable in class org.vyang.parkourwarrior.DialogScreen
-
The currently highlighted selection (yes or no).
- customPlayMap - Variable in class org.vyang.parkourwarrior.ParkourMain
-
The number for custom maps.
D
- defaultPlayMap - Variable in class org.vyang.parkourwarrior.ParkourMain
-
The number for the default maps, which is inside the JAR.
- detectCollisionDown() - Method in class org.vyang.parkourwarrior.Player
-
Detects collision below the player.
- detectCollisionLeft() - Method in class org.vyang.parkourwarrior.Player
-
Detects collision to the left of the player.
- detectCollisionRight() - Method in class org.vyang.parkourwarrior.Player
-
Detects collision to the right of the player.
- detectCollisionUp() - Method in class org.vyang.parkourwarrior.Player
-
Detects collision above the player.
- dialogScreen - Variable in class org.vyang.parkourwarrior.ParkourMain
-
Instance declaration for
DialogScreen - DialogScreen - Class in org.vyang.parkourwarrior
-
Dialog screen class for Parkour Warrior.
- DialogScreen(ParkourMain) - Constructor for class org.vyang.parkourwarrior.DialogScreen
-
Constructs a new
DialogScreenwith a reference to the main game panel. - dialogue - Variable in class org.vyang.parkourwarrior.ParkourMain
-
The number for the finish screen.
- DIALOGUE_CURRENT_NO - Static variable in class org.vyang.parkourwarrior.DialogScreen
-
Constant for the no selection state.
- DIALOGUE_CURRENT_YES - Static variable in class org.vyang.parkourwarrior.DialogScreen
-
Constant for the yes selection state.
- DIALOGUE_OPTION_NO - Static variable in class org.vyang.parkourwarrior.DialogScreen
-
Constant for dialog with only a no option.
- DIALOGUE_OPTION_NONE - Static variable in class org.vyang.parkourwarrior.DialogScreen
-
Constant for informational dialog without selection.
- DIALOGUE_OPTION_YES - Static variable in class org.vyang.parkourwarrior.DialogScreen
-
Constant for dialog with only a yes option.
- DIALOGUE_OPTION_YES_NO - Static variable in class org.vyang.parkourwarrior.DialogScreen
-
Constant for yes/no selection dialog.
- dialogueOption - Variable in class org.vyang.parkourwarrior.DialogScreen
-
The current dialog mode determining which type of prompt to display.
- drawDialogScreen(Graphics2D) - Method in class org.vyang.parkourwarrior.DialogScreen
-
Draws the dialog screen based on the current
dialogueOption. - drawPlayer(Graphics2D) - Method in class org.vyang.parkourwarrior.Player
-
Draws the player sprite on the screen.
- drawTile(Graphics2D) - Method in class org.vyang.parkourwarrior.TileManager
-
Draws the visible tiles on screen.
- drawTimer(Graphics2D) - Method in class org.vyang.parkourwarrior.ParkourTimer
-
Draws the timer on the screen.
- drawTitleScreen(Graphics2D) - Method in class org.vyang.parkourwarrior.TitleScreen
-
Draws the title screen.
E
- endIndex - Variable in class org.vyang.parkourwarrior.Map
-
The end index, defined for
MapManagerandTileManager. - endTimeMilis - Variable in class org.vyang.parkourwarrior.ParkourTimer
-
The end time milliseconds when a map is completed.
- endTimeMilisecondsStr - Variable in class org.vyang.parkourwarrior.ParkourTimer
-
Formatted string for the end time milliseconds.
- endTimeMinutes - Variable in class org.vyang.parkourwarrior.ParkourTimer
-
The end time minutes when a map is completed.
- endTimeMinutesStr - Variable in class org.vyang.parkourwarrior.ParkourTimer
-
Formatted string for the end time minutes.
- endTimeSeconds - Variable in class org.vyang.parkourwarrior.ParkourTimer
-
The end time seconds when a map is completed.
- endTimeSecondsStr - Variable in class org.vyang.parkourwarrior.ParkourTimer
-
Formatted string for the end time seconds.
F
- falling - Variable in class org.vyang.parkourwarrior.Player
-
Whether the player is currently falling.
- fallSpeed - Variable in class org.vyang.parkourwarrior.Player
-
The speed of the player's fall in pixels per frame.
- FPS - Variable in class org.vyang.parkourwarrior.ParkourMain
-
The FPS of the game, currently 60.
G
- gameMaps - Variable in class org.vyang.parkourwarrior.MapManager
-
The array of game maps loaded from the properties file.
- getPixelFont(String) - Method in class org.vyang.parkourwarrior.ParkourMain
-
The method to get the font file in
resand create aFontfor the program to use. - getPlayer() - Method in class org.vyang.parkourwarrior.Player
-
Loads the player's sprite images from the resources.
- getSound(String) - Method in class org.vyang.parkourwarrior.ParkourMain
-
The method to get the sound file from
resand puts the audio into aClip. - getTile() - Method in class org.vyang.parkourwarrior.TileManager
-
Loads all tile images from the resources and assigns their solid properties.
- goLeft - Variable in class org.vyang.parkourwarrior.Player
-
Whether the player is moving left.
- goRight - Variable in class org.vyang.parkourwarrior.Player
-
Whether the player is moving right.
- gotoMapState - Variable in class org.vyang.parkourwarrior.DialogScreen
-
The target map state to transition to when yes is selected (used as fallback when no callback is set).
H
- haveFinishedMap - Variable in class org.vyang.parkourwarrior.Map
-
This is for Graphics2D to see if the it need to print time next to the map, defined for
MapManagerandTileManager.
I
- ico - Variable in class org.vyang.parkourwarrior.ParkourMain
-
The {ImageIcon} for the game.
- image - Variable in class org.vyang.parkourwarrior.Tile
-
The
BufferedImageto store the image of a tile. - initialMapState - Variable in class org.vyang.parkourwarrior.DialogScreen
-
The map state to return to when no is selected (used as fallback when no callback is set).
- isDefaultMap - Variable in class org.vyang.parkourwarrior.Map
-
This is the type of map (e.g.
J
- jumpHeight - Variable in class org.vyang.parkourwarrior.Player
-
The height of the player's jump in pixels.
- jumping - Variable in class org.vyang.parkourwarrior.Player
-
Whether the player is currently jumping.
- jumpSpeed - Variable in class org.vyang.parkourwarrior.Player
-
The speed of the player's jump in pixels per frame.
K
- keyHandler - Variable in class org.vyang.parkourwarrior.ParkourMain
-
The instance declaration for
KeyHandler, used by all. - KeyHandler - Class in org.vyang.parkourwarrior
-
Keyboard input handler for the game.
- KeyHandler(ParkourMain) - Constructor for class org.vyang.parkourwarrior.KeyHandler
-
Constructs a new
KeyHandlerwith a reference to the main game panel. - keyPressed(KeyEvent) - Method in class org.vyang.parkourwarrior.KeyHandler
-
Invoked when a key has been pressed.
- keyReleased(KeyEvent) - Method in class org.vyang.parkourwarrior.KeyHandler
-
Invoked when a key has been released.
- keyTyped(KeyEvent) - Method in class org.vyang.parkourwarrior.KeyHandler
-
Invoked when a key has been typed.
L
- loadMap() - Method in class org.vyang.parkourwarrior.TileManager
-
Loads map data from the specified resource paths.
- loadMapProperties() - Method in class org.vyang.parkourwarrior.MapManager
-
Loads map and game data from the properties file.
M
- main(String[]) - Static method in class org.vyang.parkourwarrior.ParkourWarrior
-
Launches the Parkour Warrior game.
- Map - Class in org.vyang.parkourwarrior
-
Map contating all data of a map.
- Map() - Constructor for class org.vyang.parkourwarrior.Map
-
The constructor of class
Mapwhich is not used. - mapManager - Variable in class org.vyang.parkourwarrior.ParkourMain
-
Instance declaration for
MapManager, used by all. - MapManager - Class in org.vyang.parkourwarrior
-
Properties data handler for Parkour Warrior.
- MapManager(ParkourMain) - Constructor for class org.vyang.parkourwarrior.MapManager
-
Constructs a new
MapManagerwith a reference to the main game panel. - mapNumber - Variable in class org.vyang.parkourwarrior.Map
-
This is the map number for the program to load the maps, defined for
MapManagerandTileManager. - mapPath - Variable in class org.vyang.parkourwarrior.Map
-
This is the path to maps in the system, defined for
MapManagerandTileManager. - mapType - Variable in class org.vyang.parkourwarrior.Map
-
This is the type of map, defined for
MapManagerandTileManager, currently unused. - MAX_MOMENTUM_TICKS - Static variable in class org.vyang.parkourwarrior.Player
-
The maximum number of ticks for momentum to last.
- maxHeightTiles - Variable in class org.vyang.parkourwarrior.ParkourMain
-
This is the maximum amount of tiles allowed in a column.
- maxJumpHeight - Variable in class org.vyang.parkourwarrior.Player
-
The maximum height the player can reach during a jump.
- maxWidthTiles - Variable in class org.vyang.parkourwarrior.ParkourMain
-
This is the maximum amount of tiles allowed in a row.
- maxWorldColumn - Variable in class org.vyang.parkourwarrior.ParkourMain
-
This is the maximum columns of ties that can be in a world.
- maxWorldRow - Variable in class org.vyang.parkourwarrior.ParkourMain
-
This is the maximum rows of tiles that can be in a world.
- menuBar - Variable in class org.vyang.parkourwarrior.ParkourMain
-
Instance declaration for
MenuBar - MenuBar - Class in org.vyang.parkourwarrior
-
The menu bar handler for ParkourWarrior
- MenuBar(ParkourMain) - Constructor for class org.vyang.parkourwarrior.MenuBar
-
The constructor of this class which creates the reference to the main instance and initializes the menu bar with available options.
- momentumCountLeft - Variable in class org.vyang.parkourwarrior.Player
-
Counter for leftward momentum ticks.
- momentumCountRight - Variable in class org.vyang.parkourwarrior.Player
-
Counter for rightward momentum ticks.
- momentumLeft - Variable in class org.vyang.parkourwarrior.Player
-
Whether the player has leftward momentum after releasing the left key.
- momentumRight - Variable in class org.vyang.parkourwarrior.Player
-
Whether the player has rightward momentum after releasing the right key.
- musicOn - Variable in class org.vyang.parkourwarrior.ParkourMain
-
To determine if the program needs to play music.
O
- org.vyang.parkourwarrior - package org.vyang.parkourwarrior
P
- paintComponent(Graphics) - Method in class org.vyang.parkourwarrior.ParkourMain
-
The method for calling paint methods in each state for each class.
- ParkourMain - Class in org.vyang.parkourwarrior
-
The central class of Parkour Warrior.
- ParkourMain() - Constructor for class org.vyang.parkourwarrior.ParkourMain
-
The constructor for class
ParkourMain. - parkourTimer - Variable in class org.vyang.parkourwarrior.ParkourMain
-
Instance declaration for
ParkourTimeclass, used by all. - ParkourTimer - Class in org.vyang.parkourwarrior
-
Timer class for Parkour Warrior.
- ParkourTimer(ParkourMain) - Constructor for class org.vyang.parkourwarrior.ParkourTimer
-
Constructs a new
ParkourTimerwith a reference to the main game panel. - ParkourWarrior - Class in org.vyang.parkourwarrior
-
The entry point for the Parkour Warrior game.
- pixelFont - Variable in class org.vyang.parkourwarrior.ParkourMain
-
The font used by the game.
- play - Variable in class org.vyang.parkourwarrior.ParkourMain
-
The number for playing map state.
- player - Variable in class org.vyang.parkourwarrior.ParkourMain
-
Instance declaration for
Playerclass, used by all. - Player - Class in org.vyang.parkourwarrior
-
The player class for Parkour Warrior.
- Player(ParkourMain) - Constructor for class org.vyang.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 org.vyang.parkourwarrior.Player
-
The player's facing direction.
Q
- quit(int) - Method in class org.vyang.parkourwarrior.ParkourMain
-
The global quit method that handles the uninitialization.
R
- recordTimeMiliseconds - Variable in class org.vyang.parkourwarrior.Map
-
The shortest milliseconds used to finish a map, defined for
MapManagerandTileManager. - recordTimeMinutes - Variable in class org.vyang.parkourwarrior.Map
-
The shortest minutes used to finish a map, defined for
MapManagerandTileManager. - recordTimeSeconds - Variable in class org.vyang.parkourwarrior.Map
-
The shortest seconds used to finish a map, defined for
MapManagerandTileManager. - removeMap() - Method in class org.vyang.parkourwarrior.MapManager
-
Removes the current map from the game.
- run() - Method in class org.vyang.parkourwarrior.ParkourMain
-
The method from
Runnableinterface, to control what would be done each frame. - runTimer(long, double) - Method in class org.vyang.parkourwarrior.ParkourTimer
-
Runs the timer by calculating elapsed time since the start.
S
- saveMapProperties() - Method in class org.vyang.parkourwarrior.MapManager
-
Saves the current map and game data to the properties file.
- saveTime() - Method in class org.vyang.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 org.vyang.parkourwarrior.ParkourMain
-
This is the screen maximum height in pixels, which is
maxHeightTiles * tileSize - screenWidth - Variable in class org.vyang.parkourwarrior.ParkourMain
-
This is the maximum screen width in pixels, which is
maxWidthTiles * tileSize - screenX - Variable in class org.vyang.parkourwarrior.Player
-
The player's X position on screen, used for camera offset.
- showMapManager() - Method in class org.vyang.parkourwarrior.MapManager
-
Shows the map manager dialogue.
- sneaking - Variable in class org.vyang.parkourwarrior.Player
-
Whether the player is currently sneaking.
- solidTile - Variable in class org.vyang.parkourwarrior.Tile
-
To see if a tile is solid.
T
- tile - Variable in class org.vyang.parkourwarrior.TileManager
-
Array of all available tile types.
- Tile - Class in org.vyang.parkourwarrior
-
Tiles class for each tile.
- Tile() - Constructor for class org.vyang.parkourwarrior.Tile
-
Constructs a new
Tilewith default values. - tileManager - Variable in class org.vyang.parkourwarrior.ParkourMain
-
Instance declaration for
TileManagerclass, used by all. - TileManager - Class in org.vyang.parkourwarrior
-
Tile manager class for Parkour Warrior.
- TileManager(ParkourMain) - Constructor for class org.vyang.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 org.vyang.parkourwarrior.TileManager
-
The current tile number being processed.
- tileSize - Variable in class org.vyang.parkourwarrior.ParkourMain
-
This is mentioned at
final int scale, and it is the final tile size for this game. - timerStartTime - Variable in class org.vyang.parkourwarrior.ParkourMain
-
The time when the timer is started, for time calculation.
- timerTimeMiliseconds - Variable in class org.vyang.parkourwarrior.ParkourTimer
-
The current timer milliseconds.
- timerTimeMilisecondsStr - Variable in class org.vyang.parkourwarrior.ParkourTimer
-
Formatted string for the current timer milliseconds.
- timerTimeMinutes - Variable in class org.vyang.parkourwarrior.ParkourTimer
-
The current timer minutes.
- timerTimeMinutesStr - Variable in class org.vyang.parkourwarrior.ParkourTimer
-
Formatted string for the current timer minutes.
- timerTimeSeconds - Variable in class org.vyang.parkourwarrior.ParkourTimer
-
The current timer seconds.
- timerTimeSecondsStr - Variable in class org.vyang.parkourwarrior.ParkourTimer
-
Formatted string for the current timer seconds.
- title - Variable in class org.vyang.parkourwarrior.ParkourMain
-
The number for title map state.
- titleScreen - Variable in class org.vyang.parkourwarrior.ParkourMain
-
Instance declaration for
TitleScreenclass, used by all. - TitleScreen - Class in org.vyang.parkourwarrior
-
Title screen class for Parkour Warrior.
- TitleScreen(ParkourMain) - Constructor for class org.vyang.parkourwarrior.TitleScreen
-
Constructs a new
TitleScreenwith a reference to the main game panel.
U
- update() - Method in class org.vyang.parkourwarrior.ParkourMain
-
The method to call updates on updates on values of the game, like the player position.
- updatePlayer() - Method in class org.vyang.parkourwarrior.Player
-
Updates the player's state each frame.
- updateTile() - Method in class org.vyang.parkourwarrior.TileManager
-
Updates the tile state each frame.
W
- walkSpeed - Variable in class org.vyang.parkourwarrior.Player
-
The walking speed of the player in pixels per frame.
- worldX - Variable in class org.vyang.parkourwarrior.Player
-
The player's X position in the world.
- worldY - Variable in class org.vyang.parkourwarrior.Player
-
The player's Y position in the world.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form