Index

A B C D E F G H I J K L M N O P R S T U V W X Y 
All Classes and Interfaces|All Packages|Serialized Form

A

addEntities(Entity) - Method in class model.Terrain
Adds a new Entity to the tile
addEntity(Entity) - Method in class model.Player
Adds an entity to the player's entity ArrayList.
addGold(int) - Method in class model.Player
Adds gold to the player's gold amount.
addSavedEntity(Entity) - Method in class model.Player
Adds an entity to the player's entity ArrayList from a save.
addWaypoint(Point) - Method in class model.Soldier
Adds a waypoint to the Soldier's path.
animate() - Method in class model.Animator
Animate an entity.
Animator - Class in model
Implementation of Animator class, contains methods for moving the Units, and animate the attacking of Towers.
Animator() - Constructor for class model.Animator
Constructor for Animator class loaded from JSON.
Animator(Entity) - Constructor for class model.Animator
Constructor for Animator class.
animObj - Variable in class model.Entity
The Animator of the Entity.
Assassin - Class in model
Implementation of Assassin special soldier type.
Assassin(Point) - Constructor for class model.Assassin
Constructs a new Assassin instance.
ASSASSIN - Enum constant in enum class model.Types
The Assassin type
attachActionListener(int, ActionListener) - Method in class view.ControlPanel
Adds an ActionListener to a button in the panel.
attachActionListener(int, ActionListener) - Method in class view.HamburgerMenu
Adds an ActionListener to a button in the menu.
attack() - Method in class model.Assassin
Attacks the unit's target if nearby.
attack() - Method in class model.Barricade
Attack method for the Barricade.
attack() - Method in class model.Kamikaze
Attacks the unit's target if nearby.
attack() - Method in class model.Soldier
Attacks the unit's target if nearby.
attack() - Method in class model.Tower
Attacks the targets.
ATTACKING - Enum constant in enum class model.RoundState
The game is in the third state.
attackSpeed - Variable in class model.Tower
The Tower's attacking speed.

B

Barracks - Class in model
Implementation of Barracks Building type.
Barracks(Point) - Constructor for class model.Barracks
Constructs a new Barracks instance.
Barracks(Point, Sides) - Constructor for class model.Barracks
Constructs a new Barracks instance.
BARRACKS - Enum constant in enum class model.Types
The Barracks type
Barricade - Class in model
Implementation of the archerless Barricade Tower type.
Barricade(Point) - Constructor for class model.Barricade
Constructs a new Barricade instance.
BARRICADE - Enum constant in enum class model.Types
The Barricade type
BLUE - Enum constant in enum class model.Sides
The left side of the Map.
Building - Class in model
Implements the Building Entity type.
Building(Point) - Constructor for class model.Building
Constructs a new Building instance.
Building(Point, Sides) - Constructor for class model.Building
Constructs a new Building instance.
BUILDING - Enum constant in enum class model.RoundState
The game is in the second state.
buildingFactory(Types, int, int) - Static method in enum class model.Types
Factory method for creating a new Building instance.

C

calculateGoldAtRound() - Method in class model.Player
Calculates the player's gold at round start.
calculatePath() - Method in class model.Soldier
Calculates the shortest path to the enemy Castle.
calculatePaths() - Method in class model.GameState
Calculates the soldier' path.
canAttack - Variable in class model.Tower
Determines if the Tower can attack.
canUpgrade - Variable in class model.Building
Returns if the building can be upgraded.
Castle - Class in model
Implementation of Castle Building type.
Castle(Point) - Constructor for class model.Castle
Constructs a new Castle instance.
Castle(Point, Sides) - Constructor for class model.Castle
Constructs a new Castle instance.
CASTLE - Enum constant in enum class model.Types
The Castle type
castleParts - Variable in class model.Soldier
The location of the enemy Castle's Tile locations.
checkAlive() - Method in class model.GameState
Returns if the Game is ended.
Climber - Class in model
Implementation of Climber Soldier type.
Climber(Point) - Constructor for class model.Climber
Constructs a new Climber instance.
CLIMBER - Enum constant in enum class model.Types
The Climber type
closeConnection() - Method in class persistence.Database
Closes the Database connection.
color - Variable in enum class model.Types
Color value of enum
controlPanel - Variable in class view.GameFieldRenderer
ControlPanel component.
ControlPanel - Class in view
Implementation of ControlPanel component.
ControlPanel(Game) - Constructor for class view.ControlPanel
Constructs a new ControlPanel instance with dependency injection.
createTable() - Method in class persistence.Database
SQL query to crate the Game.db database.

D

damage - Variable in class model.Entity
The damage the Entity deals.
Database - Class in persistence
Implementation of the Game's Database class, contains SQL queries, and SQLite connection opening and closing methods.
Database() - Constructor for class persistence.Database
Constructs the Database class.
DBRecord - Class in persistence
Implementation of DBRecord class for Database INSERT and SELECT queries.
DBRecord(String, String, int, int) - Constructor for class persistence.DBRecord
Constructs a new record from String and int parameters.
DBRecord(ResultSet) - Constructor for class persistence.DBRecord
Constructs a new record from a ResultSet.
DBRecordTable - Class in persistence
Implementation of DBRecordTable class, which converts an ArrayList of DBRecords to a TableModel.
DBRecordTable(ArrayList<DBRecord>) - Constructor for class persistence.DBRecordTable
Constructs a new TableModel from the passed records.
decideStarter() - Method in class model.GameState
Determines the starting Player.
delete(int, int) - Method in class model.GameFieldModel
Deletes an entity.
DELETE - Enum constant in enum class model.Types
Delete type
deleteBuilding(Building) - Method in class model.GameFieldModel
Deletes a building from the Map
deltaTime - Static variable in class model.GameState
The deltaTime for animation drawing.
Desert - Class in model
Implementation of Desert Terrain type.
Desert() - Constructor for class model.Desert
Constructs a new Desert instance without predefined entities.
Desert(ArrayList<Entity>) - Constructor for class model.Desert
Constructs a new Desert instance with predefined entities.
DESERT - Enum constant in enum class model.Types
The Desert type
destroy() - Method in class model.Building
Destroys the Building instance, converts it to a ruin.
Dijkstra(Soldier, Sides, Building) - Method in class model.Pathfinder
Finds the shortest path from the start to the end.
Diver - Class in model
Implementation of Diver Soldier type.
Diver(Point) - Constructor for class model.Diver
Constructs a new Diver instance
DIVER - Enum constant in enum class model.Types
The Diver type
dockScale() - Static method in class view.GameFieldRenderer
Returns the dock's scale.
DoubleTroubleKingdom - Class in Unnamed Package
Main class of the Double Trouble Kingdom Game.
DoubleTroubleKingdom() - Constructor for class DoubleTroubleKingdom
 
drawAnimated(Graphics2D) - Method in class view.GameFieldRenderer
Draws the animated units
drawAvgHealthBar(Graphics2D, ArrayList<Entity>) - Method in class view.GameFieldRenderer
Draws the avg health bar of the units
drawBuildingState(Graphics2D, Entity) - Method in class view.GameFieldRenderer
Draws a building's visible attributes
drawCurrentSelection(Graphics2D) - Method in class view.GameFieldRenderer
Draws the current selection
drawEnt(Graphics2D, int, int) - Method in class view.GameFieldRenderer
Draws the selected Entity.
drawHealthBar(Graphics2D, Entity) - Method in class view.GameFieldRenderer
Draws the health bar of the unit
drawImage(Graphics2D, Terrain, int, int) - Method in class view.GameFieldRenderer
Draws the textures.
drawLabels(Graphics2D) - Method in class view.GameFieldRenderer
Draws the HUD's labels.
drawPath(Graphics2D, Soldier) - Method in class view.GameFieldRenderer
Draws the paths
drawTile(Graphics2D, int, int) - Method in class view.GameFieldRenderer
Draws the selected tile.
drawWayPoints(Graphics2D) - Method in class view.GameFieldRenderer
Draws the waypoints

E

entities - Variable in class model.Terrain
An ArrayList of Entities on the tile.
Entity - Class in model
Implementation of Entity abstract class, containing the Entity types common fields and methods.
Entity() - Constructor for class model.Entity
Constructs an Entity instance with JacksonJSON.
Entity(Point) - Constructor for class model.Entity
Constructs an Entity instance without side.
Entity(Point, Sides) - Constructor for class model.Entity
Constructs an Entity instance with side.

F

FileDialog - Class in view
Implementation of FileDialog class.
FileDialog() - Constructor for class view.FileDialog
Constructs a new FileDialog with the game's folder.
FileHandler - Class in persistence
Implementation of FileHandler class, contains static methods for saving and loading Map and Game state to and from files.
FileHandler() - Constructor for class persistence.FileHandler
 
frame - Static variable in class view.GameFieldRenderer
The parent frame.

G

game - Variable in class view.GameFieldRenderer
The Game dependency.
Game - Class in model
Game class implementation for Double Trouble Kingdom, connects different game systems, contains methods for managing the state of game.
Game(Game) - Constructor for class model.Game
Copy Constructor for Game.
Game(Map) - Constructor for class model.Game
Constructs a Game for Editor use.
Game(Database, Map, String, String) - Constructor for class model.Game
Constructs a Game with dependency injection of Database and Map.
GameField - Class in view
Implementation of the GameField class, which displays the game table.
GameField(Game, JFrame) - Constructor for class view.GameField
Constructs a new GameField instance.
gameFieldModel - Variable in class view.GameField
Model of the GameField.
GameFieldModel - Class in model
Implementation of the GameField's logic.
GameFieldModel(Game) - Constructor for class model.GameFieldModel
Constructs a new GameFieldModel.
GameFieldRenderer - Class in view
Implements the game's rendering engine.
GameFieldRenderer(Game, JFrame) - Constructor for class view.GameFieldRenderer
Constructs a GameFieldRenderer instance.
GameState - Class in model
GameState class implementation for Double Trouble Kingdom game, contains the Players, playerNumbers, the roundState, and other fields and methods for managing the state of the Game.
GameState() - Constructor for class model.GameState
Constructs a gamesState.
GameState(String, String, Database) - Constructor for class model.GameState
Constructs a class containing the Players, roundState, and elapsedTimer.
GameState(GameState) - Constructor for class model.GameState
Constructs a copy of the GameState.
genPath(Soldier, Sides, Building, String) - Method in class model.Pathfinder
Generates a path from start to end.
getAbsPath() - Method in class model.Soldier
Returns the Soldier's absolute path of the found path in an ArrayList.
getAnimBuffer() - Static method in class model.GameState
Returns the animation buffer.
getAnimObj() - Method in class model.Entity
Gets the Entity's animator.
getAttackSpeed() - Method in class model.Tower
Returns the attack speed of the Tower.
getBuildingTypes() - Static method in enum class model.Types
Returns the Building enum types.
getButtons() - Method in class view.ControlPanel
Returns the buttons of the panel.
getCastle() - Method in class model.Player
Returns the player's castle
getColumnCount() - Method in class persistence.DBRecordTable
Returns the count of columns in the table.
getColumnName(int) - Method in class persistence.DBRecordTable
Returns the table's column name at the passed column index.
getCurrentPlayer() - Method in class model.GameState
Returns the current Player.
getDamage() - Method in class model.Entity
Returns the Entity's damage.
getDatabase() - Method in class model.Game
Returns the Database of the Game.
getDimension() - Static method in class view.MainWindow
Returns the dimensions of the main window.
getElapsedTime() - Method in class model.GameState
Returns elapsed time.
getEnemyCastle(int) - Method in class model.GameState
Returns the enemy's Castle.
getEnemySoldiers(int) - Method in class model.GameState
Returns the enemy's Soldiers.
getEnemyTowers(int) - Method in class model.GameState
Returns the enemy's Towers.
getEntities() - Method in class model.Player
Returns an ArrayList with the player's entities.
getEntities() - Method in class model.Terrain
Returns the entities on the tile in an ArrayList.
getEntity() - Method in class model.Animator
The entity to animate.
getFile() - Method in class model.Pair
Returns the second object.
getFrame() - Method in class model.Animator
Gets the sprite frame number.
getGameState() - Method in class model.Game
Returns the GameState of the Game.
getGold() - Method in class model.Player
Returns the player's gold amount.
getHealthPoints() - Method in class model.Entity
Returns the remaining health of the Entity.
getImage() - Method in class model.Building
 
getImage() - Method in class model.Entity
Gets the name of correct sprite.
getImage() - Method in class model.Soldier
 
getImage() - Method in class model.Tower
 
getLevel() - Method in class model.Tower
Returns the Tower's level.
getMap() - Method in class model.Game
Returns the Map of the game.
getMap() - Method in class model.Pair
Returns the first object.
getMap() - Method in class view.MainMenu
Returns the map.
getMapReference() - Static method in class model.Game
Returns the Map of the Game.
getMaxHealthPoints() - Method in class model.Entity
Returns the max health of the Entity.
getName() - Method in class model.Map
Returns the Map instance's name.
getName() - Method in class model.Player
Returns the player's name.
getOwner() - Method in class model.Entity
Returns the Entity's owner.
getP1Name() - Method in class persistence.DBRecord
Returns the name of Player1.
getP1Name() - Method in class view.MainMenu
Returns player 1's name.
getP2Name() - Method in class persistence.DBRecord
Returns the name of Player2.
getP2Name() - Method in class view.MainMenu
Returns player 2's name.
getPath() - Method in class model.Animator
Get the path of the animation.
getPath() - Method in class model.Soldier
Returns the path of the Solider to the enemy Castle in an ArrayList.
getPlayerNumber() - Method in class model.Player
Returns the player's number.
getPlayers() - Method in class model.GameState
Returns the Players in an ArrayList.
getPosition() - Method in class model.Entity
Returns the Entity's position.
getPrice(String) - Static method in class model.GameFieldModel
Returns the price of a Unit.
getRange() - Method in class model.Tower
Returns the Tower's range.
getRecords() - Method in class persistence.Database
SQL query to select all the records, and returns it as an ArrayList containing DBRecords.
getRoundState() - Method in class model.GameState
Returns the roundState.
getRowCount() - Method in class persistence.DBRecordTable
Returns the count of rows in the table.
getScale() - Static method in class view.GameFieldRenderer
Returns the current scale.
getSide() - Method in class model.Entity
Returns the side the Entity belongs to.
getSide() - Method in class model.Player
Returns the player's side.
getSize() - Method in class model.Entity
Returns the Entity's size.
getSoldierCount() - Method in class model.Player
Returns the number of soldiers the player has.
getSoldiers() - Method in class model.Player
Returns the player's soldiers
getSoldierTypes() - Static method in enum class model.Types
Returns the Soldier enum types.
getSpeed() - Method in class model.Soldier
Returns the current speed of the Soldier.
getSpeedMod() - Method in class model.Terrain
Returns the speed modifier of the tile.
getTargets() - Method in class model.Tower
Returns the Tower's targets in an ArrayList.
getTerrains() - Method in class model.Soldier
Returns which tiles the Solider can cross in an ArrayList.
getTerrainTypes() - Static method in enum class model.Types
Returns the Tile enum types.
getText() - Method in class view.JRoundedButton
Returns the button's text.
getTiles() - Method in class model.Map
Returns the Map instance's tile grid.
getTileVersion() - Method in class model.Terrain
Returns the version of the tile.
getTime() - Method in class persistence.DBRecord
Returns the game's length in seconds.
getTowers() - Method in class model.Player
Returns the player's towers
getTowerTypes() - Static method in enum class model.Types
Returns the Tower enum types.
getType() - Method in class model.Entity
Returns the Entity's type.
getType() - Method in class model.Terrain
Returns the type of the tile.
getUpgradeable() - Static method in enum class model.Types
Returns the Upgradeable Tower enum types.
getUpgradeCost() - Method in class model.Barracks
Returns the upgrade cost of the Barrack instance.
getUpgradeCost() - Method in class model.Building
Returns the upgrade cost of the Building instance.
getUpgradeCost() - Method in class model.Castle
 
getUpgradeCost() - Method in class model.Tower
 
getValue() - Method in class model.Entity
Returns the Entity's value.
getValueAt(int, int) - Method in class persistence.DBRecordTable
Returns a value from the DBRecords at the passed row and column indexes.
getWayPoints() - Static method in class model.GameFieldModel
Returns the waypoints.
getWayPoints() - Method in class model.Soldier
Returns the waypoints of the Soldier in an ArrayList.
getWayPoints() - Method in class view.GameField
Returns the waypoints.
getWinner() - Method in class model.GameState
Returns the winner of the game.
getWinner() - Method in class persistence.DBRecord
Returns the winner's number or 0 for draw.
getX() - Method in class model.Animator
The next point x coordinate to move to.
getY() - Method in class model.Animator
The next point y coordinate to move to.

H

HallOfFame - Class in view
Implements a dialog to show Database query records.
HallOfFame(ArrayList<DBRecord>, JFrame) - Constructor for class view.HallOfFame
Constructs a new Hall of Fame JDialog instance
hamburgerMenu - Variable in class view.GameFieldRenderer
HamburgerMenu component.
HamburgerMenu - Class in view
Implementation of HamburgerMenu component.
HamburgerMenu(JFrame) - Constructor for class view.HamburgerMenu
Constructs a new HamburgerMenu instance.
handleType(Graphics2D, Types) - Method in class view.GameFieldRenderer
Defines which color to use when drawing an Entity.
handleWayPoint(int, int, Entity) - Method in class model.GameFieldModel
Handle a waypoint.
healthPoints - Variable in class model.Entity
The health of the Entity.
hideButton(int) - Method in class view.ControlPanel
Hides a button in the panel.
hideControlPanel() - Method in class view.ControlPanel
Hides the panel.

I

id - Variable in enum class model.Sides
The id of the side.
invert() - Method in class model.Entity
Rotates the Entity.
inverted - Variable in class view.GameField
Determines if the selection is inverted.
isAlive - Variable in class model.Entity
Determines if the Entity is alive.
isAlive() - Method in class model.Entity
Returns if the Entity is alive.
isAnimated - Variable in class model.Entity
Determines if the Entity is animated.
isAnimated() - Method in class model.Entity
Gets if the Entity is animated.
isAttackAnimated(Tower) - Static method in class model.GameFieldModel
Checks if Tower attack is animated.
isCanAttack() - Method in class model.Tower
Returns if the Tower can attack.
isDestroyed - Variable in class model.Building
Returns if the building is destroyed.
isDestroyed() - Method in class model.Building
Returns if the Building instance is a ruin.
isEmpty(int, int, Dimension) - Method in class model.GameFieldModel
Checks if the tile is empty.
isEnded() - Method in class model.GameState
Checks if the game is ended.
isInAttackRange(Tower, Entity) - Static method in class model.GameFieldModel
Checks if Tower has a Solider in attack range.
isNumeric(String) - Method in class view.MainWindow
Checks if the given value is a number.
isPathVisualization() - Method in class model.GameState
Returns if path visualization is enabled.
isTargeted() - Method in class model.Soldier
Returns if the Soldier is targeted.
isUnitRestricted() - Method in class model.Player
Returns if the player has unlocked all unit types.
isUpgraded - Variable in class model.Building
Determines if the Barrack instance is upgraded to train special units.
isUpgraded() - Method in class model.Barracks
Returns if the Barrack instance is upgraded.

J

JRoundedButton - Class in view
Implementation of JRoundedButtons component.
JRoundedButton(int, int) - Constructor for class view.JRoundedButton
Constructs a new JRoundedButton instance with blank text.
JRoundedButton(String, int, int) - Constructor for class view.JRoundedButton
Constructs a new JRoundedButton instance.
JRoundedButton(String, int, int, Color[]) - Constructor for class view.JRoundedButton
Constructs a new JRoundedButton instance with non-default colors.
JRoundedButton(String, int, int, Color[], int, int) - Constructor for class view.JRoundedButton
Constructs a new JRoundedButton instance with non-default colors and non-default rounding.

K

Kamikaze - Class in model
Implementation of Kamikaze Soldier type.
Kamikaze(Point) - Constructor for class model.Kamikaze
Constructs a new Kamikaze instance.
KAMIKAZE - Enum constant in enum class model.Types
The Kamikaze type
killUnit() - Method in class model.Entity
Sets the Entity's health to zero and sets it to dead.

L

level - Variable in class model.Tower
The level of the Tower.
loadBuildings(Map) - Method in class model.GameState
Loads the buildings from a map file after load.
loadGame(File) - Static method in class persistence.FileHandler
Loads a Game instance from a specified file.
loadGameDialog() - Method in class view.FileDialog
Opens a load dialog to load a Game state.
loadMap(File) - Static method in class persistence.FileHandler
Loads a Map instance from a specified file.
loadMapAndFile(File) - Static method in class persistence.FileHandler
Loads a Map and a File from a specified file.
loadMapDialog() - Method in class view.FileDialog
Opens a load dialog to load a Map.

M

main(String[]) - Static method in class DoubleTroubleKingdom
Starts the game.
MainMenu - Class in view
Implementation of MainMenu panel.
MainMenu(MainWindow) - Constructor for class view.MainMenu
Constructs a new MainMenu instance.
MainWindow - Class in view
Implementation of the game's main window.
MainWindow() - Constructor for class view.MainWindow
Constructs a MainWindow instance.
Map - Class in model
Implementation of Map class.
Map() - Constructor for class model.Map
Constructs a default Map instance if the Map file is not found.
Map(String, Terrain[][]) - Constructor for class model.Map
 
Map(Map) - Constructor for class model.Map
Copy constructor for Map class.
MapEditorModel - Class in model
Implementation of MapEditor model class.
MapEditorModel() - Constructor for class model.MapEditorModel
Constructor for MapEditorModel.
MapEditorView - Class in view
Implementation of the view of Map editor.
MapEditorView(Game, JFrame) - Constructor for class view.MapEditorView
Constructs a new MapEditorView instance.
mapRef - Variable in class view.GameFieldRenderer
Reference to a Map instance.
maxHealthPoints - Variable in class model.Entity
The maximum health of the Entity.
middleText - Variable in class view.GameFieldRenderer
Text field 1 on the HUD.
model - package model
 
Mountain - Class in model
Implementation of Mountain Terrain type.
Mountain() - Constructor for class model.Mountain
Constructs a new Mountain instance without predefined entities.
Mountain(ArrayList<Entity>) - Constructor for class model.Mountain
Constructs a new Mountain instance with predefined entities.
MOUNTAIN - Enum constant in enum class model.Types
The Mountain type

N

nextRoundState() - Method in class model.GameState
Switches the current roundState to the next one.
NO_SELECTION - Enum constant in enum class model.Types
The No Select type
NONE - Enum constant in enum class model.Types
The None type

O

openConnection() - Method in class persistence.Database
Opens the Database connection.
owner - Variable in class model.Entity
The owner of the Entity.

P

paintComponent(Graphics) - Method in class view.ControlPanel
The paintComponent method of the class.
paintComponent(Graphics) - Method in class view.GameFieldRenderer
The paintComponent method of the class.
paintComponent(Graphics) - Method in class view.HamburgerMenu
The paintComponent method of the class.
paintComponent(Graphics) - Method in class view.JRoundedButton
The paintComponent method of the class.
paintComponent(Graphics) - Method in class view.MainMenu
Draws the background.
Pair<T,U> - Class in model
A class that represents a pair of objects.
Pair(T, U) - Constructor for class model.Pair
Constructs a new pair.
path - Variable in class model.Soldier
An ArrayList containing the path of the Solider to the enemy Castle.
pathfinder - Variable in class model.Soldier
The soldier's pathfinder
Pathfinder - Class in model
Implementation of the Dijkstra's algorithm for finding the shortest path between two nodes.
Pathfinder() - Constructor for class model.Pathfinder
Constructs a Pathfinder instance.
pauseGame() - Method in class model.Game
Pause the running Game.
persistence - package persistence
 
placeBlock(int, int) - Method in class view.GameField
Places the Entity.
placeBlock(int, int) - Method in class view.MapEditorView
Places a new tile.
placeBlock(int, int, GameFieldModel, boolean, Types) - Method in class model.MapEditorModel
Handles the placement of a building or unit.
placeEntity(int, int, boolean, Types) - Method in class model.GameFieldModel
Places an entity.
Plains - Class in model
Implementation of Mountain Terrain type.
Plains() - Constructor for class model.Plains
Constructs a new Plains instance without predefined entities.
Plains(ArrayList<Entity>) - Constructor for class model.Plains
Constructs a new Plains instance with predefined entities.
PLAINS - Enum constant in enum class model.Types
The Plains type
Player - Class in model
Implementation of the Player class for Double Trouble Kingdom Game, contains the Player's name, entities and gold.
Player(String) - Constructor for class model.Player
Constructs the Player with starter gold, entities and name.
position - Variable in class model.Entity
The position of the Entity.

R

range - Variable in class model.Entity
The attack range of the Entity.
range - Variable in class model.Tower
The attack range of the Tower.
RED - Enum constant in enum class model.Sides
The right side of the Map.
refreshGameField() - Method in class view.GameField
Redraws the canvas.
refreshTimer - Variable in class view.GameField
Timer to refresh the game field.
removeEntity(Entity) - Method in class model.Player
Removes the given entity from the player's entities ArrayList.
removePath() - Method in class model.Animator
Remove the path of the animation.
removeSoldier(Soldier) - Method in class model.Player
Remove a soldier from the player's entity ArrayList.
renderField(Graphics2D) - Method in class view.GameFieldRenderer
Renders the canvas
repack() - Static method in class view.MainWindow
Repacks the windows
resize() - Method in class view.ControlPanel
Resizes the panel and buttons.
restartElapsedTimer() - Method in class model.GameState
Restarts the elapsedTimer.
restartGame() - Method in class model.Game
Start a new Game.
RoundState - Enum Class in model
This class is used to store the current state of the game.

S

saveGame(File, Game) - Static method in class persistence.FileHandler
Saves a Game instance to a specified file.
saveGameDialog(Game) - Method in class view.FileDialog
Opens a save dialog to save a Game state.
saveMap(File, Map) - Static method in class persistence.FileHandler
Saves a Map instance to a specified file.
saveMapDialog(Map) - Method in class view.FileDialog
Opens a save dialog to save a Map.
saveRecord(DBRecord) - Method in class persistence.Database
SQL query to save a DBRecord to the Database.
saveToJson(File, Object, String) - Static method in class persistence.FileHandler
The logic of saving an Object state to a specified file with a specified file type.
saveToStream(File, Object, String) - Static method in class persistence.FileHandler
Serializes an Object to a Stream.
scale - Static variable in class view.GameFieldRenderer
The scaling of the game.
selection - Variable in class view.GameFieldRenderer
The selected Entity.
selectTarget(Entity) - Method in class model.Soldier
Selects a target for the Soldier to attack.
selectTargets(ArrayList<Soldier>) - Method in class model.Assassin
Sets the soldier's targets.
selectTargets(ArrayList<Soldier>) - Method in class model.Tower
Selects the Tower's targets.
selectTargets(ArrayList<Tower>) - Method in class model.Kamikaze
Sets the Kamikaze's target list.
serialize(FileOutputStream, Object) - Static method in class persistence.FileHandler
Serializes an Object to a specified file.
setAlive(boolean) - Method in class model.Entity
Sets if the Entity is alive.
setAnimated(boolean) - Method in class model.Entity
Sets if the Entity is animated.
setButtonColor(int, Color, int) - Method in class view.ControlPanel
Sets a buttons color in the panel.
setButtonColors(int, Color[]) - Method in class view.ControlPanel
Sets a buttons three color types at once.
setButtonSize(int, Dimension) - Method in class view.ControlPanel
Sets a buttons size.
setButtonText(int, String) - Method in class view.ControlPanel
Sets a buttons text.
setColor(int, Color) - Method in class view.JRoundedButton
Sets the buttons color at the given type.
setColors(Color[]) - Method in class view.JRoundedButton
Sets the buttons all color types.
setCurrentPlayer(Player) - Method in class model.GameState
Sets the current Player.
setDestroyed(boolean) - Method in class model.Building
Sets if the Building instance is destroyed.
setDimension(Dimension) - Static method in class view.MainWindow
Sets the dimensions of the main window.
setElapsedTime(int) - Method in class model.GameState
Sets the elapsed time.
setEntities(ArrayList<Entity>) - Method in class model.Player
Sets the player's entities.
setEntities(ArrayList<Entity>) - Method in class model.Terrain
Sets the entities on the tile with an ArrayList.
setEntity(Entity) - Method in class model.Animator
Set the entity to animate.
setFile(U) - Method in class model.Pair
Sets the second object.
setIsAnimated(boolean) - Method in class model.Entity
Sets if the Entity is animated.
setMap(Map) - Static method in class model.Pathfinder
Sets the map that the pathfinder is working on.
setMap(T) - Method in class model.Pair
Sets the first object.
setOwner(Player) - Method in class model.Entity
Sets the Entity's owner.
setPath(ArrayList<Point>) - Method in class model.Animator
Set the path of the animation.
setPosition(Point) - Method in class model.Entity
Sets the Entity's position.
setSecond(double) - Method in class model.Animator
Set the time it takes to travel 1 block.
setSeconds(double) - Method in class model.Animator
Sets the second variable to the time it takes to travel 1 block.
setSelection(Entity) - Method in class view.GameFieldRenderer
Sets the selection to a new Entity.
setSide(Sides) - Method in class model.Entity
Sets the Entity's side.
setSoldierCount(int) - Method in class model.Player
Sets the number of soldiers the player has.
setSpeedModifier(double) - Method in class model.Animator
Set the speed modifier.
setSteps(int) - Method in class model.Animator
Set the steps of the animation.
setTargeted(boolean) - Method in class model.Soldier
Sets if the Soldier is targeted.
setTargets() - Method in class model.GameState
Sets the soldier's target.
setText(String) - Method in class view.JRoundedButton
Sets the buttons text.
setTextures() - Method in class view.GameFieldRenderer
Sets textures
setTransparent() - Method in class view.JRoundedButton
Sets to button to transparent.
setUnitRestricted(boolean) - Method in class model.Player
Sets the unit restriction to the given value.
setupButtons() - Method in class view.GameField
Sets the panel's buttons
setupButtons() - Method in class view.MapEditorView
Sets the view's buttons.
setUpgraded(boolean) - Method in class model.Barracks
Sets if the Barrack instance is upgraded.
setX(double) - Method in class model.Animator
Set the next point x coordinate to move to.
setY(double) - Method in class model.Animator
Set the next point y coordinate to move to.
Shotgun - Class in model
Implementation of Shotgun Tower type.
Shotgun(Point) - Constructor for class model.Shotgun
Constructs a Shotgun instance.
Shotgun(Point, Sides) - Constructor for class model.Shotgun
Constructs a Shotgun instance.
SHOTGUN - Enum constant in enum class model.Types
The Shotgun type
showControlPanel() - Method in class view.ControlPanel
Shows the panel.
side - Variable in class model.Entity
Determines which side the Entity belongs to.
Sides - Enum Class in model
This class is used to store the sides of the DTK model.
sideText - Variable in class view.GameFieldRenderer
Text field 2 on the HUD.
size - Variable in class model.Entity
The size of the Entity.
Sniper - Class in model
Implementation of Sniper Tower type.
Sniper(Point) - Constructor for class model.Sniper
Constructs a Sniper instance.
Sniper(Point, Sides) - Constructor for class model.Sniper
Constructs a Sniper instance.
SNIPER - Enum constant in enum class model.Types
The Sniper type
Soldier - Class in model
Implementation of Soldier Entity type.
Soldier(Point) - Constructor for class model.Soldier
Constructs a new Soldier instance.
SOLDIER - Enum constant in enum class model.Types
The Soldier type
soldierFactory(Types, int, int) - Static method in enum class model.Types
Factory method for creating a new Soldier instance.
speed - Variable in class model.Soldier
The current speed of the Soldier.
speedMod - Variable in class model.Terrain
The speed modifier of the tile.
startAnimation() - Method in class model.Animator
Start the animation.
startEditor() - Method in class view.MainWindow
Starts a new Map editor
startElapsedTimer() - Method in class model.GameState
Starts the elapsedTimer.
startGame() - Method in class view.MainWindow
Starts a new Game
startMainMenu(JFrame) - Static method in class view.MainWindow
Starts main menu.
stopAnimation() - Method in class model.Animator
Stop the animation.
stopElapsedTimer() - Method in class model.GameState
Stops the elapsedTimer.
Swamp - Class in model
Implementation of Swamp Terrain type.
Swamp() - Constructor for class model.Swamp
Constructs a new Swamp instance without predefined entities.
Swamp(ArrayList<Entity>) - Constructor for class model.Swamp
Constructs a new Swamp instance with predefined entities.
SWAMP - Enum constant in enum class model.Types
The Forest type

T

takeDamage(int) - Method in class model.Entity
The Entity takes the passed damage.
takeDamage(int) - Method in class model.Tower
Takes damage from an attack.
target - Variable in class model.Soldier
The Soldier's target Entity.
targetCount - Variable in class model.Tower
The maximum amount of targets the Tower can attack at once.
targets - Variable in class model.Tower
The targets of the Tower in an ArrayList.
targetsPerAttack - Variable in class model.Tower
The amount of targets the Tower can attack at once.
Terrain - Class in model
Implementation of Terrain class.
Terrain(Types) - Constructor for class model.Terrain
Constructs a new Terrain instance without entities.
Terrain(Types, ArrayList<Entity>) - Constructor for class model.Terrain
Constructs a new Terrain instance without entities.
terrainFactory(Types, ArrayList<Entity>) - Static method in enum class model.Types
Factory method for creating a new Terrain instance.
terrains - Variable in class model.Soldier
An ArrayList which contains which tiles the Solider can cross.
text - Variable in enum class model.RoundState
The text of the state.
text - Variable in enum class model.Types
String value of Enum
tileVersion - Variable in class model.Terrain
The version of the tile.
togglePathVisualization() - Method in class model.GameState
Toggles if path visualization is enabled.
toggleScale() - Method in class view.GameFieldRenderer
Toggles the scale.
toggleTextures() - Method in class view.GameFieldRenderer
Toggles the textures.
toString() - Method in class persistence.DBRecord
Returns the inner state of the record as a String.
Tower - Class in model
Implementation of the Tower Building type.
Tower(Point) - Constructor for class model.Tower
Constructs a new Tower instance.
Tower(Point, Sides) - Constructor for class model.Tower
Constructs a new Tower instance.
TRAINING - Enum constant in enum class model.RoundState
The game is in the first state.
transform(Types) - Method in class model.Tower
Transforms the Tower's subclass to a new Tower subclass.
transformTower(Tower, Types) - Method in class model.Player
Transforms the selected Tower to the given type, refunds a part of the building cost.
type - Variable in class model.Entity
The type of Entity.
type - Variable in class model.Terrain
The type of the tile.
type - Variable in class view.GameField
The selection type.
Types - Enum Class in model
The Game types which are used in the game and rendered in the game

U

updateButtonText() - Method in class view.ControlPanel
Updates the buttons text in the panel.
updateMapName() - Method in class view.MainMenu
Changes the Map to be loaded.
updateName() - Method in class view.MainMenu
Updates the players' name
updateUIState() - Method in class view.GameField
Updates the UIState.
upgrade() - Method in class model.Barracks
Upgrades the Barrack instance.
upgrade() - Method in class model.Building
Upgrades the Building instance, implementation depends on Building type.
upgrade() - Method in class model.Castle
Upgrades the Building instance, Castles cannot be upgraded
upgrade() - Method in class model.Tower
Upgrades the Tower.
upgradeBuilding(Building) - Method in class model.Player
Upgrades the selected Building, removes the upgrade cost from the player's gold.
upgradeCost - Variable in class model.Building
Returns the building's upgrade cost.

V

value - Variable in class model.Entity
The cost of the Entity.
valueOf(String) - Static method in enum class model.RoundState
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class model.Sides
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class model.Types
Returns the enum constant of this class with the specified name.
values() - Static method in enum class model.RoundState
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class model.Sides
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class model.Types
Returns an array containing the constants of this enum class, in the order they are declared.
view - package view
 
visualizationEnd - Variable in class model.Soldier
The end of visualization highlighting.
visualizationStart - Variable in class model.Soldier
The start of visualization highlighting.

W

WAYPOINT - Enum constant in enum class model.Sides
If we search the path to a waypoint.
wayPoints - Variable in class model.Soldier
The soldier's waypoints.

X

xLength - Variable in class view.GameFieldRenderer
The height of the panel.

Y

yLength - Variable in class view.GameFieldRenderer
The width of the panel.
A B C D E F G H I J K L M N O P R S T U V W X Y 
All Classes and Interfaces|All Packages|Serialized Form