A B C D E F G H I J K L M N P R S T U V W X Y Z 
All Classes All Packages

A

action(Firetruck) - Method in class com.sprites.PowerupSprite
Applies a powerup effect to the active truck
activeFireTruckType - Variable in class com.misc.SaveControls.SaveFile
 
addJunction(Junction) - Method in class com.pathFinding.MapGraph
Adds a junction to junctions
addResourceAmount(int) - Method in class com.misc.ResourceBar
Add a value to the resource bar.
aimAtTarget(Vector2) - Method in class com.misc.Arrow
"Update" function which rotates the arrow head to point to the the target
Alien - Class in com.entities
Alien is a really simple sprite which also keeps track of how long it has been alive, and gives it certain properties depending on Constants.AlienType
Alien(Constants.AlienType, Vector2) - Constructor for class com.entities.Alien
Constructor for Alien, which is called to spawn at a random position, remains there for a certain amount of time, and gives a certain amount of score depending on the type
applyAcceleration(Constants.Direction) - Method in class com.sprites.MovementSprite
Increases the speed of the sprite in the given direction.
Arrow - Class in com.misc
Creates a polygon which looks like an arrow which points to a target vector
Arrow(float, float, float, float) - Constructor for class com.misc.Arrow
Constructs an arrow with the following parameters

B

BackgroundBox - Class in com.misc
Custom actor to allow for a shape to be rendered on the stage.
BackgroundBox(int, int, Color) - Constructor for class com.misc.BackgroundBox
Constructor to create a rectangle
BackgroundBox(int, int, Color, int) - Constructor for class com.misc.BackgroundBox
Constructor to create a rounded rectangle
BAR_FADE_DURATION - Static variable in class com.misc.Constants
 
batch - Variable in class com.Kroy
 
blue - com.misc.Constants.AlienType
 
BLUE - com.misc.Constants.TruckType
 
boughtTruck(Firetruck) - Method in class com.screens.CarparkScreen
Buys the truck if user has enough score to buy it
buy() - Method in class com.entities.Firetruck
 

C

calculateTrajectory(SimpleSprite) - Method in class com.entities.Projectile
Calculates the trajectory from the projectiles starting point to the target point.
cameraZoom(float) - Method in class com.screens.GameScreen
Sets the zoomTarget that the user sets with the scroll wheel
canceled() - Method in class com.misc.StringInputListener
Called if the player cancel's editing
canShootProjectile() - Method in class com.entities.ETFortress
Check to see if the ETFortress should fire another projectile.
canShootProjectile() - Method in class com.entities.Patrol
Returns if a patrol can shoot a projectile
CarparkScreen - Class in com.screens
This screen shows the player the "car park" which is an interface allowing the user to manage bought fire trucks as well as buy new ones to add to the user's arsenal
CarparkScreen(Kroy, GameScreen, Firestation) - Constructor for class com.screens.CarparkScreen
Constructor for car park screen
CASTLE1 - com.misc.Constants.FortressType
 
CASTLE2 - com.misc.Constants.FortressType
 
changeFiretruck(int) - Method in class com.entities.Firestation
Swap active fire truck with indexed parked fire truck
checkAlienDespawn() - Method in class com.screens.MinigameScreen
======================================================================= Modified for Assessment 4 @author Archie Godfrey ======================================================================= Added a clause to end the game when an alien reaches the end, also decreases the furthest position an alien can spawn by 1 Check if an alien on the screen is ready to be despawned by being clicked on or by the timer
checkCarparkCollision() - Method in class com.entities.Firetruck
Checks if the firetruck enters a car park, set the respawn location of the fire truck to that car park and sets the menu to be opened
checkDestroyed() - Method in class com.entities.Firetruck
Checks if the fire truck should be destroyed
checkForCollisions() - Method in class com.screens.GameScreen
Checks to see if any collisions have occurred
checkIfCarpark() - Method in class com.screens.GameScreen
Checks to see if the fire truck is to be opened, if so change screen
checkIfGameOver() - Method in class com.screens.GameScreen
Checks to see if the player has won or lost the game.
checkIfSaveEmpty(int) - Method in class com.misc.SaveControls
Checks if a save file contains any data
checkRepairRefill(int, boolean) - Method in class com.entities.Firestation
Repairs/Refills the fire truck if: - it is within 3 minutes - in the main carpark (fire station) - less than 100 health or water
CLIFFORD - com.misc.Constants.FortressType
 
com - package com
 
com.entities - package com.entities
 
com.misc - package com.misc
 
com.pathFinding - package com.pathFinding
 
com.screens - package com.screens
 
com.sprites - package com.sprites
 
connectJunctions(Junction, Junction) - Method in class com.pathFinding.MapGraph
This creates a road from fromJunction to toJunction and adds it to roads.
Constants - Class in com.misc
Game constants for use by Kroy.
Constants() - Constructor for class com.misc.Constants
 
Constants.AlienType - Enum in com.misc
 
Constants.CarparkEntrances - Enum in com.misc
 
Constants.Direction - Enum in com.misc
 
Constants.FortressType - Enum in com.misc
 
Constants.Outcome - Enum in com.misc
 
Constants.TruckType - Enum in com.misc
 
constructFireTruck(boolean, Constants.TruckType) - Method in class com.screens.GameScreen
Creates a fire truck
coolFont - Variable in class com.Kroy
 
create() - Method in class com.Kroy
Create fields that will be needed at runtime and then display the main menu screen upon game start.
createPatrol() - Method in class com.screens.GameScreen
Spawns a patrol, up to a certain number

D

DEBUG_ENABLED - Static variable in class com.misc.Constants
 
decreaseInternalTime() - Method in class com.sprites.SimpleSprite
Decrement or reset the internal time of the sprite used for timing of attacks
deleteSave(int) - Method in class com.misc.SaveControls
Attempts to delete a save file.
difficulty - Variable in class com.misc.SaveControls.SaveFile
 
disableSFX(String) - Static method in class com.misc.SFX
 
dispose() - Method in class com.entities.Firetruck
Dispose of all textures used by this class and its parents.
dispose() - Method in class com.Kroy
Dispose of all game elements upon game completion.
dispose() - Method in class com.screens.CarparkScreen
Called when this screen should release all resources.
dispose() - Method in class com.screens.GameOverScreen
Called when this screen should release all resources.
dispose() - Method in class com.screens.GameScreen
Dispose of main game assets upon completion.
dispose() - Method in class com.screens.HowToPlayScreen
Called when this screen should release all resources.
dispose() - Method in class com.screens.MainMenuScreen
 
dispose() - Method in class com.screens.MinigameScreen
 
dispose() - Method in class com.screens.PauseScreen
Called when this screen should release all resources.
dispose() - Method in class com.screens.StoryScreen
Called when this screen should release all resources.
dispose() - Method in class com.sprites.SimpleSprite
Dispose of assets used by the class.
DOWN - com.misc.Constants.Direction
 
draw(Batch, float) - Method in class com.misc.BackgroundBox
 
drawDebug(ShapeRenderer) - Method in class com.entities.ETFortress
Overloaded method for drawing debug information.
drawDebug(ShapeRenderer) - Method in class com.entities.Firestation
Overloaded method for drawing debug information.
drawDebug(ShapeRenderer) - Method in class com.entities.Firetruck
Overloaded method for drawing debug information.
drawDebug(ShapeRenderer) - Method in class com.entities.Patrol
 
drawDebug(ShapeRenderer) - Method in class com.sprites.SimpleSprite
Enables drawing of the hitbox to it can be seen.

E

empty - Variable in class com.misc.SaveControls.SaveFile
 
enableSFX(short) - Static method in class com.misc.SFX
 
estimate(Junction, Junction) - Method in class com.pathFinding.MapHeuristic
 
ETFortress - Class in com.entities
The ET Fortress implementation, a static sprite in the game.
ETFortress(Texture, Texture, float, float, float, float, Constants.FortressType, GameScreen) - Constructor for class com.entities.ETFortress
Overloaded constructor containing all possible parameters.
ETFORTRESS_HEIGHT - Static variable in class com.misc.Constants
 
ETFORTRESS_WIDTH - Static variable in class com.misc.Constants
 
ETFortresses - Variable in class com.misc.SaveControls.SaveFile
 

F

findPath(Junction, Junction) - Method in class com.pathFinding.MapGraph
This finds the path from the startJunction to the goalJunction
finishTutorial() - Method in class com.screens.GameScreen
Multiple statements to reset the game after the tutorial has terminated: - reset truck water + position - show good luck test - start fire station timer - reset zoom - reset patrols The shader will also change, and collisions will now begin to occur, starting the game
Firestation - Class in com.entities
The Firestation implementation, a static sprite in the game.
Firestation(Texture, Texture, float, float, GameScreen) - Constructor for class com.entities.Firestation
Overloaded constructor containing all possible parameters.
FIRESTATION_HEALTH - Static variable in class com.misc.Constants
 
FIRESTATION_HEIGHT - Static variable in class com.misc.Constants
 
FIRESTATION_WIDTH - Static variable in class com.misc.Constants
 
firestationHealth - Variable in class com.misc.SaveControls.SaveFile
 
Firetruck - Class in com.entities
The Firetruck implementation.
Firetruck(ArrayList<Texture>, ArrayList<Texture>, Constants.TruckType, TiledMapTileLayer, TiledMapTileLayer, Firestation, boolean, GameScreen) - Constructor for class com.entities.Firetruck
Creates a firetruck capable of moving and colliding with the tiledMap and other sprites.
FIRETRUCK_HEIGHT - Static variable in class com.misc.Constants
 
FIRETRUCK_REPAIR_SPEED - Static variable in class com.misc.Constants
 
FIRETRUCK_WIDTH - Static variable in class com.misc.Constants
 
firetrucks - Variable in class com.misc.SaveControls.SaveFile
 
flooded - Variable in class com.misc.SaveControls.SavedFortress
 

G

GAME_NAME - Static variable in class com.misc.Constants
 
GameInputHandler - Class in com.screens
Input handler processor for GameScreen
GameInputHandler(GameScreen) - Constructor for class com.screens.GameInputHandler
Constructor for game input handler which takes in GameScreen to be able to provide some sort of feedback to when an event occurs
GameOverScreen - Class in com.screens
Really basic screen that provides the user whether they have won or lost the game, displays their score and allows them to navigate back to the main menu
GameOverScreen(Kroy, Constants.Outcome, int) - Constructor for class com.screens.GameOverScreen
Constructor for Game over screen, with inputs from GameScreen once the game has ended
GameScreen - Class in com.screens
Display the main game.
GameScreen(Kroy, boolean) - Constructor for class com.screens.GameScreen
The constructor for the main game screen.
generateType() - Method in class com.screens.MinigameScreen
Generates a random number between 0.0 and 1.0 then rounds up to the nearest value in the map - this allows a random patrol type to be selected but has a higher probability of choosing lower scoring patrols over higher scoring patrols
getActiveFireTruck() - Method in class com.entities.Firestation
 
getActivePowerups() - Method in class com.entities.Firetruck
 
getActiveTruck() - Method in class com.screens.GameScreen
 
getAliveTime() - Method in enum com.misc.Constants.AlienType
 
getCamera() - Method in class com.screens.MinigameScreen
 
getCarpark() - Method in class com.entities.Firetruck
 
getCentre() - Method in class com.sprites.SimpleSprite
 
getCentreX() - Method in class com.sprites.SimpleSprite
Get the value of the centre x-coordinate of the sprite.
getCentreY() - Method in class com.sprites.SimpleSprite
Get the value of the centre y-coordinate of the sprite.
getChance() - Method in enum com.misc.Constants.AlienType
 
getColourString() - Method in enum com.misc.Constants.TruckType
 
getConnections(Junction) - Method in class com.pathFinding.MapGraph
This returns the connections you can take from the fromNode
getCost() - Method in class com.pathFinding.Road
 
getCurrentAmount() - Method in class com.misc.ResourceBar
Get the current resource amount.
getCurrentSaveNumber() - Method in class com.misc.SaveControls
Gets the index of the save file currently used.
getDamage() - Method in class com.entities.Firetruck
 
getDamage() - Method in class com.entities.Projectile
 
getDamage() - Method in enum com.misc.Constants.FortressType
 
getDamageHitBox() - Method in class com.sprites.SimpleSprite
Get the damage hit box of the sprite.
getDifficulty() - Method in class com.Kroy
Getter for the game difficulty
getDifficulty() - Method in class com.screens.GameScreen
Getter for the game screen difficulty
getETFortressesDestroyed() - Method in class com.screens.GameScreen
Returns a tuple containing the number of fortresses destroyed and total number of fortresses
getFade() - Method in class com.misc.ResourceBar
Get the bar's alpha value, manipulated to remain in the range 0-1.
getFirestation() - Method in class com.screens.GameScreen
 
getFireStationTime() - Method in class com.screens.GameScreen
Returns the time for the fire station
getFiretruckByType(Constants.TruckType) - Method in class com.entities.Firestation
Gets a firetruck from the parked firetrucks given it's type.
getFireTruckImage() - Method in class com.entities.Firetruck
 
getFireTruckTexture() - Method in class com.entities.Firetruck
 
getFont10() - Method in class com.Kroy
 
getFromNode() - Method in class com.pathFinding.Road
 
getGoal() - Method in class com.sprites.PatrolMovementSprite
 
getHealing() - Method in enum com.misc.Constants.FortressType
 
getHealth() - Method in enum com.misc.Constants.FortressType
 
getHealthBar() - Method in class com.sprites.SimpleSprite
Get the health bar of the sprite.
getHeight() - Method in class com.sprites.SimpleSprite
Get the current height of the sprite.
getHitBox() - Method in class com.sprites.MinigameSprite
 
getHitBox() - Method in class com.sprites.PowerupSprite
 
getImmune() - Method in class com.entities.Firetruck
 
getIndex() - Method in class com.pathFinding.Junction
 
getIndex(Junction) - Method in class com.pathFinding.MapGraph
 
getInternalTime() - Method in class com.sprites.SimpleSprite
Get the internal time of the sprite.
getInvisible() - Method in class com.entities.Firetruck
 
getJunctions() - Method in class com.pathFinding.MapGraph
 
getLocation() - Method in enum com.misc.Constants.CarparkEntrances
 
getMaxAmount() - Method in class com.misc.ResourceBar
Get the max resource amount.
getMaxSpeed() - Method in class com.sprites.MovementSprite
Returns the max speed the sprite can accelerate to.
getMovementHitBox() - Method in class com.sprites.SimpleSprite
Get the movement hit box of the sprite.
getName() - Method in enum com.misc.Constants.CarparkEntrances
 
getName() - Method in class com.pathFinding.Junction
 
getNearestFortress() - Method in class com.entities.Firetruck
 
getNodeCount() - Method in class com.pathFinding.MapGraph
 
getNumberOfMinigames() - Method in class com.screens.GameScreen
 
getOnScreenETs() - Method in class com.screens.MinigameScreen
 
getParkedFireTrucks() - Method in class com.entities.Firestation
 
getPolygonVertices(Polygon) - Method in class com.sprites.MovementSprite
Gets the coordinates, as Vector2s for each vertex of the polygon
getPowerupDisplay() - Method in class com.entities.Firetruck
 
getPowerupType() - Method in class com.entities.Firetruck
 
getPrice() - Method in class com.entities.Firetruck
 
getProperties() - Method in enum com.misc.Constants.TruckType
 
getRange() - Method in class com.entities.Firetruck
 
getRange() - Method in enum com.misc.Constants.FortressType
 
getRoad(Junction, Junction) - Method in class com.pathFinding.MapGraph
Gets road between two junction
getRotation() - Method in enum com.misc.Constants.CarparkEntrances
 
getSaveControls() - Method in class com.Kroy
Getter for the game screen save controls
getSaveControls() - Method in class com.screens.GameScreen
Getter for the game screen save controls
getSavedDifficulty() - Method in class com.misc.SaveControls
Gets the saved game difficulty
getSavedFiretruck(Constants.TruckType) - Method in class com.misc.SaveControls
Gets a saved firetruck given its type
getSavedFortress(Constants.FortressType) - Method in class com.misc.SaveControls
Gets a saved fortress given its type
getSaveFile() - Method in class com.misc.SaveControls
Gets the current loaded save file
getSaveName(int) - Method in class com.misc.SaveControls
Gets the name of a save file
getScore() - Method in class com.entities.Alien
 
getScore() - Method in enum com.misc.Constants.AlienType
 
getScore() - Method in class com.screens.GameScreen
 
getScore() - Method in class com.screens.MinigameScreen
 
getSkin() - Method in class com.Kroy
 
getSpawnTime() - Method in class com.entities.Alien
 
getTexture() - Method in enum com.misc.Constants.AlienType
 
getThis() - Method in class com.screens.MainMenuScreen
Used to pass the main menu screen into the controls screen
getThis() - Method in class com.screens.PauseScreen
Used to pass the pause screen into the controls screen
getThis() - Method in class com.sprites.PatrolMovementSprite
 
getTime() - Method in class com.screens.GameScreen
 
getToNode() - Method in class com.pathFinding.Road
 
getType() - Method in class com.entities.ETFortress
 
getType() - Method in class com.entities.Firetruck
 
getWaterBar() - Method in class com.entities.Firetruck
Gets the firetruck's water bar so it can be manipulated.
getWidth() - Method in class com.sprites.SimpleSprite
Get the current width of the sprite.
getX() - Method in class com.pathFinding.Junction
 
getX() - Method in class com.sprites.PatrolMovementSprite
 
getY() - Method in class com.pathFinding.Junction
 
getY() - Method in class com.sprites.PatrolMovementSprite
 
green - com.misc.Constants.AlienType
 
GREEN - com.misc.Constants.TruckType
 

H

hasParkedFiretrucks() - Method in class com.entities.Firestation
Whether the fire station has any more active fire trucks
health - Variable in class com.misc.SaveControls.SavedFiretruck
 
health - Variable in class com.misc.SaveControls.SavedFortress
 
hide() - Method in class com.screens.CarparkScreen
Called when this screen is no longer the current screen for a Game.
hide() - Method in class com.screens.GameOverScreen
Called when this screen is no longer the current screen for a Game.
hide() - Method in class com.screens.GameScreen
Actions to perform when the main game is hidden.
hide() - Method in class com.screens.HowToPlayScreen
Called when this screen is no longer the current screen for a Game.
hide() - Method in class com.screens.MainMenuScreen
 
hide() - Method in class com.screens.MinigameScreen
 
hide() - Method in class com.screens.PauseScreen
Called when this screen is no longer the current screen for a Game.
hide() - Method in class com.screens.StoryScreen
Called when this screen is no longer the current screen for a Game.
HowToPlayScreen - Class in com.screens
Screen that appears when the user enters the controls screen.
HowToPlayScreen(Kroy, Screen) - Constructor for class com.screens.HowToPlayScreen
The constructor for the control screen

I

input(String) - Method in class com.misc.StringInputListener
Called when the player finishes editing
isAlive() - Method in class com.entities.Firetruck
 
isBought - Variable in class com.misc.SaveControls.SavedFiretruck
 
isBought() - Method in class com.entities.Firetruck
 
isDamaged() - Method in class com.entities.Firetruck
Gets whether the firetruck is damaged.
isDead() - Method in class com.entities.Patrol
 
isDestroyed() - Method in class com.entities.Firestation
 
isFlooded() - Method in class com.entities.ETFortress
 
isImmune - Variable in class com.entities.Firetruck
 
isInHoseRange(Polygon) - Method in class com.entities.Firetruck
Checks if a polygon is within the range of the firetrucks hose.
isInRadius(Vector2) - Method in class com.entities.ETFortress
Simple method for detecting whether a vector, fire truck, is within attacking distance of that fortress' range
isInRadius(Vector2) - Method in class com.entities.Patrol
Simple method for detecting whether a vector, fire truck, is within attacking distance of that fortress' range
isInTutorial() - Method in class com.screens.GameScreen
Checks if the game is in the tutorial
isInvisible - Variable in class com.entities.Firetruck
 
isLowOnWater() - Method in class com.entities.Firetruck
Gets whether the firetruck has used any water.
isMenuOpen() - Method in class com.entities.Firestation
 
isOutOfMap() - Method in class com.entities.Projectile
Gets whether the projectile is ready to be removed.
isRoadLocked(Junction, Junction) - Method in class com.pathFinding.MapGraph
Checks if a patrol is travelling on the road between fromJunction to toJunction.
isSpraying() - Method in class com.entities.Firetruck
Gets whether the firetruck is spraying water.
isTankEmpty() - Method in class com.entities.Firetruck
Gets if the water tank of the truck is empty
isVulnerable() - Method in class com.entities.Firestation
 

J

Junction - Class in com.pathFinding
 
Junction(float, float, String) - Constructor for class com.pathFinding.Junction
Constructor for Junction

K

keyDown(int) - Method in class com.screens.GameInputHandler
Called when a key was pressed
keyDown(int) - Method in class com.screens.MiniGameInputHandler
 
keyTyped(char) - Method in class com.screens.GameInputHandler
Called when a key was typed
keyTyped(char) - Method in class com.screens.MiniGameInputHandler
 
keyUp(int) - Method in class com.screens.GameInputHandler
Called when a key was released
keyUp(int) - Method in class com.screens.MiniGameInputHandler
 
Kroy - Class in com
Entry point to the main game, called by DesktopLauncher.
Kroy() - Constructor for class com.Kroy
 

L

LEFT - com.misc.Constants.Direction
 
LERP - Static variable in class com.misc.Constants
 
loadFromSave(int) - Method in class com.misc.SaveControls
Attempts to load a save file.
loadGameFromSave(int) - Method in class com.Kroy
Load a game from a save file
lockRoad(Road, PatrolMovementSprite) - Method in class com.pathFinding.MapGraph
Locks a road by a patrol if that road is not already locked
LOST - com.misc.Constants.Outcome
 
Lower - com.misc.Constants.CarparkEntrances
 

M

Main1 - com.misc.Constants.CarparkEntrances
 
Main2 - com.misc.Constants.CarparkEntrances
 
MainMenuScreen - Class in com.screens
Displays the main menu screen with selection buttons.
MainMenuScreen(Kroy) - Constructor for class com.screens.MainMenuScreen
The constructor for the main menu screen.
MAP_HEIGHT - Static variable in class com.misc.Constants
 
MAP_SCALE - Static variable in class com.misc.Constants
 
MAP_WIDTH - Static variable in class com.misc.Constants
 
MapGraph - Class in com.pathFinding
This class creates a MapGraph which contains all junctions and connections between them.
MapGraph() - Constructor for class com.pathFinding.MapGraph
 
MapHeuristic - Class in com.pathFinding
This class creates the Heuristic that should be used when finding a path
MapHeuristic() - Constructor for class com.pathFinding.MapHeuristic
 
MAX_ZOOM - Static variable in class com.misc.Constants
 
MIN_ZOOM - Static variable in class com.misc.Constants
 
MINIGAME_DURATION - Static variable in class com.misc.Constants
 
MINIGAME_SPAWN_RATE - Static variable in class com.misc.Constants
 
MiniGameInputHandler - Class in com.screens
Input handler for Minigame, when the player clicks down on the screen, a water image will appear and destroy an alien if there is one there.
MiniGameInputHandler(MinigameScreen) - Constructor for class com.screens.MiniGameInputHandler
Constructor for minigame handler, which takes minigameScreen so that is can communicate events that happen in here
MinigameScreen - Class in com.screens
MinigameScreen, as suggested, a Mini game contained within the game, which allows the player to play a different style of game ("whack-a-mole"), but keeping the same theme (aliens and fire trucks).
MinigameScreen(Kroy, GameScreen, MinigameSprite) - Constructor for class com.screens.MinigameScreen
======================================================================= Modified for Assessment 4 @author Archie Godfrey ======================================================================= Changed the background image to keep the minigame more inline with the main game.
MinigameSprite - Class in com.sprites
This sprite can be located around the map and when a player drives over it, the mini game will begin
MinigameSprite(float, float, ArrayList<Texture>) - Constructor for class com.sprites.MinigameSprite
Constructor for minigame sprite
MINSTER - com.misc.Constants.FortressType
 
MOSSY - com.misc.Constants.FortressType
 
mouseMoved(int, int) - Method in class com.screens.GameInputHandler
Called when the mouse was moved without any buttons being pressed.
mouseMoved(int, int) - Method in class com.screens.MiniGameInputHandler
 
MovementSprite - Class in com.sprites
MovementSprite adds movement facilities to a sprite.
MovementSprite(Texture) - Constructor for class com.sprites.MovementSprite
Creates a sprite capable of moving and but only colliding with other sprites.
MovementSprite(Texture, TiledMapTileLayer) - Constructor for class com.sprites.MovementSprite
Creates a sprite capable of moving and colliding with the tiledMap and other sprites.

N

name - Variable in class com.misc.SaveControls.SaveFile
 

P

parkFireTruck(Firetruck) - Method in class com.entities.Firestation
Add fire truck to parked fire truck list
Patrol - Class in com.entities
This class is used to create a patrol.
Patrol(ArrayList<Texture>, MapGraph) - Constructor for class com.entities.Patrol
The constructor for Patrol
PATROL_MAX - Static variable in class com.misc.Constants
 
PatrolMovementSprite - Class in com.sprites
This class is the super class for Patrol and is used to move the patrol around the map.
PatrolMovementSprite(Texture, MapGraph) - Constructor for class com.sprites.PatrolMovementSprite
Constructor for PatrolMovementSprite
pause() - Method in class com.screens.CarparkScreen
 
pause() - Method in class com.screens.GameOverScreen
 
pause() - Method in class com.screens.GameScreen
================================================== New function for assessment 3 =================================================== Pauses the game and changes the screen to PauseScreen Actions to perform when the main game is paused.
pause() - Method in class com.screens.HowToPlayScreen
 
pause() - Method in class com.screens.MainMenuScreen
 
pause() - Method in class com.screens.MinigameScreen
 
pause() - Method in class com.screens.PauseScreen
 
pause() - Method in class com.screens.StoryScreen
 
PauseScreen - Class in com.screens
Screen that appears when the user pauses the game.
PauseScreen(Kroy, GameScreen) - Constructor for class com.screens.PauseScreen
The constructor for the pause screen
playGameMusic() - Static method in class com.misc.SFX
 
playMenuMusic() - Static method in class com.misc.SFX
 
PowerupSprite - Class in com.sprites
This sprite can be located around the map and when a player drives over it, the power up will be applied
PowerupSprite(String, ArrayList<Texture>, float, float, int) - Constructor for class com.sprites.PowerupSprite
Constructor for powerup sprite
Projectile - Class in com.entities
The Projectile implementation.
Projectile(Texture, float, float, int, GameScreen) - Constructor for class com.entities.Projectile
Overloaded constructor containing all possible parameters.
PROJECTILE_HEIGHT - Static variable in class com.misc.Constants
 
PROJECTILE_SPEED - Static variable in class com.misc.Constants
 
PROJECTILE_WIDTH - Static variable in class com.misc.Constants
 

R

RAIL - com.misc.Constants.FortressType
 
red - com.misc.Constants.AlienType
 
RED - com.misc.Constants.TruckType
 
removeDead(MapGraph) - Method in class com.entities.Patrol
If a patrol has died have to remove the road the patrol locked when it died from lockedRoads in mapGraph Otherwise no patrols will be able to travel on that road
removeDead(PatrolMovementSprite) - Method in class com.pathFinding.MapGraph
Removes the road that a patrol was travelling on from locked roads when it died.
removeMinigame(MinigameSprite) - Method in class com.screens.GameScreen
Called after the minigame has been won.
removeSprite(Texture) - Method in class com.sprites.SimpleSprite
Enables drawing of the hitbox to it can be seen.
render() - Method in class com.Kroy
Render the main game using the Game's render function.
render(float) - Method in class com.screens.CarparkScreen
Called when the screen should render itself.
render(float) - Method in class com.screens.GameOverScreen
Called when the screen should render itself.
render(float) - Method in class com.screens.GameScreen
Render function to display all elements in the main game.
render(float) - Method in class com.screens.HowToPlayScreen
Called when the screen should render itself.
render(float) - Method in class com.screens.MainMenuScreen
Render function to display all elements in the main menu.
render(float) - Method in class com.screens.MinigameScreen
 
render(float) - Method in class com.screens.PauseScreen
Called when the screen should render itself.
render(float) - Method in class com.screens.StoryScreen
Called when the screen should render itself.
repairRefill(Firetruck) - Method in class com.entities.Firestation
Repair a firetruck over time.
resetResourceAmount() - Method in class com.misc.ResourceBar
Reset the resource amount back to its original full capacity, this is used for replenishing the fire truck's water after the tutorial has finished
resetRotation(float) - Method in class com.sprites.SimpleSprite
Resets the rotation of the sprite, but also the hit boxes
resetSprite() - Method in class com.entities.Firetruck
Resets rotation and hit box when fire truck is spawned
resize(int, int) - Method in class com.screens.CarparkScreen
 
resize(int, int) - Method in class com.screens.GameOverScreen
 
resize(int, int) - Method in class com.screens.GameScreen
Resize the screen.
resize(int, int) - Method in class com.screens.HowToPlayScreen
 
resize(int, int) - Method in class com.screens.MainMenuScreen
 
resize(int, int) - Method in class com.screens.MinigameScreen
 
resize(int, int) - Method in class com.screens.PauseScreen
 
resize(int, int) - Method in class com.screens.StoryScreen
 
ResourceBar - Class in com.misc
Resource bars used by sprites to indicate properties of sprites.
ResourceBar(float, float) - Constructor for class com.misc.ResourceBar
Constructor for this class, gathers required information so that it can be drawn.
respawn() - Method in class com.entities.Firetruck
Calls methods to reset the fire truck when it is to be respawned
respawnLocation - Variable in class com.misc.SaveControls.SavedFiretruck
 
resume() - Method in class com.screens.CarparkScreen
 
resume() - Method in class com.screens.GameOverScreen
 
resume() - Method in class com.screens.GameScreen
============================================================== Overridden for assessment 3 ============================================================== Actions to perform when the main game is resumed.
resume() - Method in class com.screens.HowToPlayScreen
 
resume() - Method in class com.screens.MainMenuScreen
 
resume() - Method in class com.screens.MinigameScreen
 
resume() - Method in class com.screens.PauseScreen
 
resume() - Method in class com.screens.StoryScreen
 
RIGHT - com.misc.Constants.Direction
 
Road - Class in com.pathFinding
This class creates a road between two Junctions and calculates a cost for travelling on this road
Road(Junction, Junction) - Constructor for class com.pathFinding.Road
Constructs a road
rotate(float) - Method in class com.sprites.SimpleSprite
Overrides Sprite class method to rotate the sprite and hitbox at once.

S

SaveControls - Class in com.misc
A class to store the functions required to save objects in the main game.
SaveControls() - Constructor for class com.misc.SaveControls
Creates a new Gson instance and creates a fresh save file setting the current save to 0
SaveControls.SavedFiretruck - Class in com.misc
A 'barebones' Firetruck class to only store the properties needed to re-create the class
SaveControls.SavedFortress - Class in com.misc
A 'barebones' ETFortress class to only store the properties needed to re-create the class
SaveControls.SaveFile - Class in com.misc
The format of a save file
SavedFiretruck() - Constructor for class com.misc.SaveControls.SavedFiretruck
 
SavedFiretruck(Constants.TruckType, int, int, Constants.CarparkEntrances, float, float, boolean) - Constructor for class com.misc.SaveControls.SavedFiretruck
 
SavedFortress() - Constructor for class com.misc.SaveControls.SavedFortress
 
SavedFortress(Constants.FortressType, int, boolean) - Constructor for class com.misc.SaveControls.SavedFortress
 
SaveFile() - Constructor for class com.misc.SaveControls.SaveFile
 
SaveFile(String, int, int, int, int, Constants.TruckType, ArrayList<SaveControls.SavedFiretruck>, ArrayList<SaveControls.SavedFortress>) - Constructor for class com.misc.SaveControls.SaveFile
 
saveGame(int) - Method in class com.screens.GameScreen
Save the game into a given save file
saveGame(int, int, int, int, Firestation, ArrayList<ETFortress>) - Method in class com.misc.SaveControls
The one function to save the entire game in a selected file.
score - Variable in class com.misc.SaveControls.SaveFile
 
SCREEN_HEIGHT - Static variable in class com.misc.Constants
 
SCREEN_WIDTH - Static variable in class com.misc.Constants
 
scrolled(int) - Method in class com.screens.GameInputHandler
Called when the mouse wheel was scrolled.
scrolled(int) - Method in class com.screens.MiniGameInputHandler
 
setAccelerationRate(float) - Method in class com.sprites.MovementSprite
Sets the rate at which the sprite will accelerate.
setActiveFireTruck(Firetruck) - Method in class com.entities.Firestation
 
setArrow(boolean) - Method in class com.entities.Firetruck
 
setBatch(Batch) - Method in class com.Kroy
Set the batch that should be used to render all the textures.
setCanSpray(boolean) - Method in class com.screens.MinigameScreen
Means that the water can spray and destroy aliens in that location
setColourRange(Color[]) - Method in class com.misc.ResourceBar
Set the colour range of the bar.
setCurrentAmount(int) - Method in class com.misc.ResourceBar
Set the current resource amount.
setCurrentSaveNumber(int) - Method in class com.misc.SaveControls
Sets the index of the save file currently used.
setDecelerationRate(float) - Method in class com.sprites.MovementSprite
Sets the rate at which the sprite will decelerate.
setDifficulty(int) - Method in class com.Kroy
Setter for the game difficulty
setFade(boolean, boolean) - Method in class com.misc.ResourceBar
Fade the bar either in or out using it's alpha value.
setGoal(Junction) - Method in class com.sprites.PatrolMovementSprite
This generates the queue of junctions the patrol will have to travel through to go from it's start position to it's goal position, once it's created a path it calls setSpeedToNextCity
setHose(boolean) - Method in class com.entities.Firetruck
Set the hose on or off
setIndex(int) - Method in class com.pathFinding.Junction
 
setInternalTime(int) - Method in class com.sprites.SimpleSprite
Set the internal time of the sprite.
setMaxResource(int) - Method in class com.misc.ResourceBar
Set the maximum limit for the resource bar.
setMaxSpeed(float) - Method in class com.sprites.MovementSprite
Sets the max speed the sprite can accelerate to.
setMovementHitBox(float) - Method in class com.sprites.SimpleSprite
Changes the movement hit box to a triangle for better movement and collisions
setNearestFortress(ArrayList<ETFortress>) - Method in class com.entities.Firetruck
Finds the nearest alive fortress
setPosition(float, float) - Method in class com.misc.ResourceBar
Set the position of the bar, takes into account the sprite's dimensions
setPowerup(int, String) - Method in class com.entities.Firetruck
 
setRespawnLocation(int) - Method in class com.entities.Firetruck
====================================================================== Added for assessment 3 ====================================================================== Sets the respawn location which contains the name, x coord, y coord and name of car park
setSaveName(int, String) - Method in class com.misc.SaveControls
Sets the name of a save file
setScore(int) - Method in class com.screens.GameScreen
 
setScreenDimensions(int, int) - Method in class com.screens.MinigameScreen
 
setSize(float, float) - Method in class com.sprites.SimpleSprite
Overrides Sprite class method to keep seperate values for width and height.
setSpeed(Vector2) - Method in class com.sprites.MovementSprite
Sets the current speed of the sprite.
setToggleDelay(int) - Method in class com.entities.Firetruck
 
setTouch(int, int) - Method in class com.screens.MinigameScreen
Sets the position of the water object and set where the player clicked
SFX - Class in com.misc
 
SFX() - Constructor for class com.misc.SFX
 
sfx_button_click - Static variable in class com.misc.SFX
 
sfx_fortress_destroyed - Static variable in class com.misc.SFX
 
sfx_garage - Static variable in class com.misc.SFX
 
sfx_on - Static variable in class com.misc.SFX
 
sfx_patrol_dies - Static variable in class com.misc.SFX
 
sfx_projectile - Static variable in class com.misc.SFX
 
sfx_soundtrack_1 - Static variable in class com.misc.SFX
 
sfx_soundtrack_2 - Static variable in class com.misc.SFX
 
sfx_truck_damage - Static variable in class com.misc.SFX
 
show() - Method in class com.screens.CarparkScreen
Called when this screen becomes the current screen for a Game.
show() - Method in class com.screens.GameOverScreen
Called when this screen becomes the current screen for a Game.
show() - Method in class com.screens.GameScreen
Actions to perform on first render cycle of the game
show() - Method in class com.screens.HowToPlayScreen
Called when this screen becomes the current screen for a Game.
show() - Method in class com.screens.MainMenuScreen
Create the button stage.
show() - Method in class com.screens.MinigameScreen
 
show() - Method in class com.screens.PauseScreen
Called when this screen becomes the current screen for a Game.
show() - Method in class com.screens.StoryScreen
Called when this screen becomes the current screen for a Game.
showPopupText(String, int, int) - Method in class com.screens.GameScreen
Queues a popup message and resets the popup timer
SimpleSprite - Class in com.sprites
Simplify and add functionality to the sprite object provided by libGDX.
SimpleSprite(Texture) - Constructor for class com.sprites.SimpleSprite
Constructor that creates a sprite at a given position using a given texture..
spawnAlien() - Method in class com.screens.MinigameScreen
======================================================================= Modified for Assessment 4 @author Archie Godfrey ======================================================================= Now increments the current row by 2 each call and spawns an alien at the front of the queue Spawns an alien and resets the spawn timer
spriteBatch - Variable in class com.Kroy
 
step() - Method in class com.sprites.PatrolMovementSprite
This is called each frame and is what makes the patrol look like it is moving by updating it's x and y position by an amount set by setSpeedToNextJunction.
StoryScreen - Class in com.screens
Screen to tell the user the back story to the game This text is taken from the product brief and sets the scene before the user enters the game
StoryScreen(Kroy) - Constructor for class com.screens.StoryScreen
The constructor for the story screen
StringInputListener - Class in com.misc
A class to produce a popup allowing the player to enter a string for the save name.
StringInputListener(SaveControls, TextButton, int) - Constructor for class com.misc.StringInputListener
The contructor of the input listener, gathers information that it can be called when the player has finished entering a string
subtractResourceAmount(int) - Method in class com.misc.ResourceBar
Subtract a value from the resource bar.

T

TILE_DIMS - Static variable in class com.misc.Constants
 
time - Variable in class com.misc.SaveControls.SaveFile
 
TIME_STATION_VULNERABLE - Static variable in class com.misc.Constants
 
toGameScreen(boolean) - Method in class com.screens.MinigameScreen
======================================================================= Modified for Assessment 4 @author Archie Godfrey ======================================================================= Added ability to lose the game, score affected by win parameter Goes back to the game screen once the user presses escape, when the time runs out, or if the player loses
toggleHose() - Method in class com.entities.Firetruck
Toggles the firetruck's hose to spray if off and stop if on.
toggleMenu(boolean) - Method in class com.entities.Firestation
Open or close the car park menu
TopLeft - com.misc.Constants.CarparkEntrances
 
TopRight - com.misc.Constants.CarparkEntrances
 
touchDown(int, int, int, int) - Method in class com.screens.GameInputHandler
Called when the screen was touched or a mouse button was pressed.
touchDown(int, int, int, int) - Method in class com.screens.MiniGameInputHandler
 
touchDragged(int, int, int) - Method in class com.screens.GameInputHandler
Called when a finger or the mouse was dragged.
touchDragged(int, int, int) - Method in class com.screens.MiniGameInputHandler
 
touchUp(int, int, int, int) - Method in class com.screens.GameInputHandler
Called when a finger was lifted or a mouse button was released.
touchUp(int, int, int, int) - Method in class com.screens.MiniGameInputHandler
 
type - Variable in class com.entities.Alien
 
type - Variable in class com.misc.SaveControls.SavedFiretruck
 
type - Variable in class com.misc.SaveControls.SavedFortress
 

U

unlockRoad(Road, PatrolMovementSprite) - Method in class com.pathFinding.MapGraph
Unlocks a road if there is a road that the patrol had previously locked
UP - com.misc.Constants.Direction
 
update(Batch) - Method in class com.entities.ETFortress
Update the fortress so that it is drawn every frame.
update(Batch) - Method in class com.entities.Firestation
Updates the firestation so that it is drawn every frame.
update(Batch) - Method in class com.entities.Patrol
Called from gameScreen, first checks whether the patrol has been killed, it draws the patrol calls super to update the patrols movement and updates its detection range so that it moves with the movement of the patrol.
update(Batch) - Method in class com.entities.Projectile
Update the position and direction of the projectile every frame.
update(Batch) - Method in class com.misc.ResourceBar
Draw the resource bar.
update(Batch) - Method in class com.sprites.MinigameSprite
Draw the sprite
update(Batch) - Method in class com.sprites.MovementSprite
Update the sprite position and direction based on acceleration and boundaries.
update(Batch) - Method in class com.sprites.PatrolMovementSprite
Called each frame, it updates the patrols position
update(Batch) - Method in class com.sprites.PowerupSprite
Draw the sprite
update(Batch) - Method in class com.sprites.SimpleSprite
Update the sprite position, hitbox and health bar.
update(Batch, Camera) - Method in class com.entities.Firetruck
Update the position and direction of the firetruck every frame.
updateActiveArrow(ShapeRenderer, ArrayList<ETFortress>) - Method in class com.entities.Firestation
Updates the arrow that points to the nearest fortress
updateArrow(ShapeRenderer, ArrayList<ETFortress>) - Method in class com.entities.Firetruck
================================================================================== Added for assessment 3 ==================================================================================
updateFiretruck(Batch, ShapeRenderer, OrthographicCamera) - Method in class com.entities.Firestation
Updates the active fire truck, check if the fire truck's health is 0 or below, if so "destroy" it
updateMovement() - Method in class com.entities.Patrol
Just updates the movement of the patrol, doesn't draw the sprite or check detection range
updatePatrolMovements() - Method in class com.screens.GameScreen
Updates only the movement of the patrol when the player is in the car park screen
Upper1 - com.misc.Constants.CarparkEntrances
 
Upper2 - com.misc.Constants.CarparkEntrances
 

V

valueOf(String) - Static method in enum com.misc.Constants.AlienType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.misc.Constants.CarparkEntrances
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.misc.Constants.Direction
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.misc.Constants.FortressType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.misc.Constants.Outcome
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.misc.Constants.TruckType
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.misc.Constants.AlienType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.misc.Constants.CarparkEntrances
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.misc.Constants.Direction
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.misc.Constants.FortressType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.misc.Constants.Outcome
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.misc.Constants.TruckType
Returns an array containing the constants of this enum type, in the order they are declared.

W

water - Variable in class com.misc.SaveControls.SavedFiretruck
 
WON - com.misc.Constants.Outcome
 

X

x - Variable in class com.misc.SaveControls.SavedFiretruck
 

Y

y - Variable in class com.misc.SaveControls.SavedFiretruck
 
YELLOW - com.misc.Constants.TruckType
 

Z

ZOOM_SPEED - Static variable in class com.misc.Constants
 
A B C D E F G H I J K L M N P R S T U V W X Y Z 
All Classes All Packages