A B C D E F G H I K L M O P R S T U V W 
All Classes All Packages

A

ADD - breitband.GUI.util.Asset
 
ADD_HOVER - breitband.GUI.util.Asset
 
addContract(Contract) - Method in class breitband.GUI.elements.GContractList
Adds a contract
addContract(Contract) - Method in class breitband.GUI.ui.PlayerInfo
Adds a contract to the contract list
addDirectConnection(City) - Method in class breitband.game.board.City
adds another city to vector containing all direct connections (directConnections)
Asset - Enum in breitband.GUI.util
All graphical assets.
atMaxCapacity() - Method in class breitband.game.board.City
test if the max capacity has been reached
AVI_1 - breitband.GUI.util.Asset
 
AVI_2 - breitband.GUI.util.Asset
 
AVI_3 - breitband.GUI.util.Asset
 
AVI_4 - breitband.GUI.util.Asset
 
AVI_5 - breitband.GUI.util.Asset
 
AVI_6 - breitband.GUI.util.Asset
 
AVI_7 - breitband.GUI.util.Asset
 
AVI_8 - breitband.GUI.util.Asset
 
AVI_AI - breitband.GUI.util.Asset
 
AVI_Cheater - breitband.GUI.util.Asset
 

B

BACKGROUND - breitband.GUI.util.Asset
 
BGM_GAME_OVER - breitband.util.SoundFile
Background music of the game over screen.
BGM_MAIN - breitband.util.SoundFile
Background music of the game.
BGM_WE_KNOW_WHAT_YOU_DID - breitband.util.SoundFile
Background music of the "Cheated Detected" screen.
Board - Class in breitband.game.board
Class for the board logic.
Board(Region[], Map<String, Contract>, CableConfig[], int) - Constructor for class breitband.game.board.Board
Constructs a new board with given parameters.
BoardTest - Class in test.gameTest
Class for testing the board.
BoardTest() - Constructor for class test.gameTest.BoardTest
 
Border - Class in breitband.game.board
Class for polygons which have a method to check for lines intersecting with border
Border(int[], int[], int, String) - Constructor for class breitband.game.board.Border
constructs a new polygon with x-, y- coordinates and the number of points
breitband - package breitband
Base package of the Breitband game.
breitband.game.board - package breitband.game.board
Provides the board logic of the game.
breitband.game.players - package breitband.game.players
Provides the player logic of the game.
breitband.GUI - package breitband.GUI
Provides the GUI of the game.
breitband.GUI.elements - package breitband.GUI.elements
All main elements that make up the GUI.
breitband.GUI.ui - package breitband.GUI.ui
All main components that make up the GUI.
breitband.GUI.util - package breitband.GUI.util
Utility classes for the GUI.
breitband.util - package breitband.util
Utility classes that are used in the game.
BUILDING_PHASE - breitband.GUI.GameState
Game state when a player is building connections between cities (3rd phase)

C

CABLE_BG - breitband.GUI.util.Asset
 
CABLE_BG_COPPER - breitband.GUI.util.Asset
 
CABLE_BG_DOVE - breitband.GUI.util.Asset
 
CABLE_BG_FIBER - breitband.GUI.util.Asset
 
CABLE_BG_MAIL - breitband.GUI.util.Asset
 
CABLE_SELECTED_BG - breitband.GUI.util.Asset
 
CABLE_SKIP - breitband.GUI.util.Asset
 
CableConfig - Class in breitband.game.board
Class for Cable(-types) (similar to a struct in C)
CableConfig(String, int, int, int, boolean, String, String) - Constructor for class breitband.game.board.CableConfig
Constructs a new Cable (-type) with a type, a distance per cable, maximal distance possible, a value, a fontAwesome and an emoji
CableRoute - Class in breitband.game.board
Class for Routes between Cities (similar to a struct in C)
CableRoute(CableConfig, City, City) - Constructor for class breitband.game.board.CableRoute
Constructs a cable-route between to cities with a certain cable-type
CableSelector - Class in breitband.GUI.ui
A component that allows the user to select a cable, or skip
CableSelector(SAGPanel, CableConfig[]) - Constructor for class breitband.GUI.ui.CableSelector
Creates a new CableSelector
CableStore - Class in breitband.GUI.ui
A vertical list of all cables that can be picked up
CableStore(SAGPanel, Map<String, CableConfig>, int) - Constructor for class breitband.GUI.ui.CableStore
Creates a new CableStore
calculateCenter(Border, float) - Static method in class breitband.GUI.util.PolygonOptimizer
Walks over every point at a constant distance, adds them together and calculates
CHEATER_BG - breitband.GUI.util.Asset
 
cheaterDetected() - Method in class breitband.GUI.GameWindow
To be called when someone cheated.
CheatingAIPlayer - Class in breitband.game.players
Class for cheatingAIPlayer that cheats 50% of the time and acts like randomAI 50% of time
CheatingAIPlayer(int, String, Reader, ImmutableList<String>, int) - Constructor for class breitband.game.players.CheatingAIPlayer
Constructs a new cheating AI with and id, a name, a reader, available contracts, and number of players
City - Class in breitband.game.board
Class containing all information regarding cities (such as location, direct connections, etc.) with some functionalities (such as distance between to cities) This class implements the Comparable interface so cities can get sorted by their x-coordinate
City(int, int, String, int) - Constructor for class breitband.game.board.City
Constructs a city at the given coordinates, with a name and maximum capacity for connections
CITY - breitband.GUI.util.Asset
 
CITY_HIGHLIGHTED - breitband.GUI.util.Asset
 
CITY_SELECTED - breitband.GUI.util.Asset
 
CityContract - Class in breitband.game.board
Class containing all information about contracts between two cities
CityContract(String, int, City, City) - Constructor for class breitband.game.board.CityContract
constructs a contract between two cities with an id, and a value
cityOnRoute(City, City, Board) - Static method in class breitband.game.players.SPlayer
Checks if there is a city on the route
clamp(T, T, T) - Static method in class breitband.util.Utils
Clamps a comparable value in a specified range.
clear() - Method in class breitband.GUI.ui.Tooltip
Clear all on-screen tooltips
clearCityHighlights() - Method in class breitband.GUI.ui.World
Clear all city highlighting
clearRegionHighlights() - Method in class breitband.GUI.ui.World
Clear all region highlighting
CLICK - breitband.util.SoundFile
For basic successful UI interactions.
clickedEvent(MouseButtonEvent, GElement) - Method in class breitband.GUI.elements.GButton
 
COLLECTION_PHASE - breitband.GUI.GameState
Game state when a player is buying new cables (2nd phase)
compareTo(City) - Method in class breitband.game.board.City
Method needed for the implementation of the comparable interface.
CONFETTI - breitband.GUI.util.Asset
 
Config - Class in breitband.util
A config that is created by parsing and validating XML config files according to the Breitband requirements.
Config(Reader) - Constructor for class breitband.util.Config
Creates a new config by reading and validating a config file.
ConfigReaderException - Exception in breitband.util
Thrown when an error occurs in the Config.
ConfigReaderException(String) - Constructor for exception breitband.util.ConfigReaderException
Constructs a new XMLParserException with an error message
ConfigReaderException(String, int) - Constructor for exception breitband.util.ConfigReaderException
Constructs a new ConfigReaderException with an error message and a line where the error occurred
ConfigTest - Class in test
This test attempts to load every config in the resources/configs directory.
ConfigTest() - Constructor for class test.ConfigTest
 
CONFIRM - breitband.GUI.util.Asset
 
CONFIRM_HOVER - breitband.GUI.util.Asset
 
CONSTRUCT - breitband.util.SoundFile
For constructing a cable.
Contract - Class in breitband.game.board
Class containing all information and methods relevant for all contracts regardless of type
Contract(String, int) - Constructor for class breitband.game.board.Contract
constructs a contract with an id and a value
CONTRACT_PHASE - breitband.GUI.GameState
Game state when a player is choosing a contract (1st phase)
CONTRACT_SKIP - breitband.GUI.util.Asset
 
CONTRACT_STORE_BG - breitband.GUI.util.Asset
 
contractExists(String) - Method in class breitband.game.players.SPlayer
checks whether a contract actually exists
contractIsFulfilled(Contract) - Method in class breitband.game.board.Board
Checks if a specific city- or region-contract is fulfilled.
ContractPool - Class in breitband.util
Class for modelling the contract pool
ContractPool(HashMap<String, Contract>, int) - Constructor for class breitband.util.ContractPool
Constructs a new Contract pool with contracts and subset size
ContractStore - Class in breitband.GUI.ui
A scrollable list of contracts
ContractStore(SAGPanel) - Constructor for class breitband.GUI.ui.ContractStore
Creates a new ContractStore

D

deepCopyHashMap(HashMap<K, V>) - Static method in class breitband.util.Utils
Creates and returns a deep copy of a hash map.
DEFAULT - breitband.GUI.GameState
Game state whenever a Human is not providing inputs
DEFAULT_MAP_SIZE - Static variable in class breitband.GUI.ui.World
 
distanceNotPossibleWithAvailableResources(City, City, CableConfig, int) - Static method in class breitband.game.players.SPlayer
Method to check if distance is possible with the cables currently available to player (Inventory+picked upCables)
distancePossibleWithType(City, City, CableConfig) - Static method in class breitband.game.players.SPlayer
checks if distance is possible with this specific cable type

E

EMPTY - breitband.util.SoundFile
For UI interactions that are canceled.
enterEvent(MouseMotionEvent, GElement) - Method in class breitband.GUI.elements.GButton
 
equals(Object) - Method in class breitband.game.board.City
Override for equals method to fit the logic behind cities,
cities are equal if they have the same name and coordinates
equals(Object) - Method in class breitband.game.board.CityContract
Override for the equals() method of java.lang.object to match the logic behind cityContracts.
equals(Object) - Method in class breitband.game.board.RegionContract
Checks if a RegionContract and any object are equal.
ERROR - breitband.util.SoundFile
For UI interactions that result in an error.
exitEvent(MouseMotionEvent, GElement) - Method in class breitband.GUI.elements.GButton
 

F

firstPoly - Static variable in class breitband.GUI.elements.GRegion
Whether this polygon is the first.
FONT_FAMILY - Static variable in class breitband.GUI.util.Styles
The font family used by all UI text
FONT_SIZE_BASE - Static variable in class breitband.GUI.util.Styles
Base font size.
FONT_SIZE_LARGE - Static variable in class breitband.GUI.util.Styles
Large font size.
FONT_SIZE_SMALL - Static variable in class breitband.GUI.util.Styles
Small font size.
FONT_SIZE_TINY - Static variable in class breitband.GUI.util.Styles
Tiny font size

G

GAME_OVER_BG - breitband.GUI.util.Asset
 
gameOver(ImmutableList<Integer>) - Method in class breitband.GUI.GameWindow
Shows a game over screen.
GameState - Enum in breitband.GUI
States for managing in which phase of a turn the player is
GameWindow - Class in breitband.GUI
The GUI for the game
GameWindow(String[], Color[], PlayerType[], float) - Constructor for class breitband.GUI.GameWindow
Constructor to create a frame with a loading screen.
GAsset - Class in breitband.GUI.elements
A GSVG that displays an asset from the /assets/ directory
GAsset() - Constructor for class breitband.GUI.elements.GAsset
 
GAsset(Asset) - Constructor for class breitband.GUI.elements.GAsset
Creates a new GAsset using the provided Asset
GAsset(Asset, Color) - Constructor for class breitband.GUI.elements.GAsset
Creates a new GAsset using the provided Asset.
GButton - Class in breitband.GUI.elements
A GGroup that can handle mouse events.
GButton() - Constructor for class breitband.GUI.elements.GButton
Creates a new GButton
GCable - Class in breitband.GUI.elements
A class used for drawing cables as lines with icons
GCable(float, float, float, float, CableConfig, Color, String, int) - Constructor for class breitband.GUI.elements.GCable
Cable constructor, draws a line with markers
GCableInfo - Class in breitband.GUI.elements
Displays info about a cable type.
GCableInfo(CableConfig, boolean) - Constructor for class breitband.GUI.elements.GCableInfo
Creates a new cable infobox.
GCableInventory - Class in breitband.GUI.elements
The cable inventory of a player
GCableInventory(Collection<CableConfig>) - Constructor for class breitband.GUI.elements.GCableInventory
Creates a new GCableInventory with the chosen cable config
GCity - Class in breitband.GUI.elements
Class for rendering cities on the map
GCity(City) - Constructor for class breitband.GUI.elements.GCity
Construct a new GCity object
GContractList - Class in breitband.GUI.elements
Displays a list of contracts
GContractList(Collection<Contract>) - Constructor for class breitband.GUI.elements.GContractList
Creates a new ContractList
generateHQPolygon(Border) - Static method in class breitband.GUI.util.PolygonOptimizer
Generate a full quality GPolygon, these most likely run rather slow
generateSimplifiedPolygon(Border, LevelOfDetail) - Static method in class breitband.GUI.util.PolygonOptimizer
Generate a simplified GPolygon, these should make the renderer run faster.
getActualConnections() - Method in class breitband.game.board.City
getter for actualConnections
getArea() - Method in class breitband.GUI.elements.GRegion
Region area getter
getBoard() - Method in class breitband.game.players.SPlayer
getter for board
getCableConfig() - Method in class breitband.game.board.Board
Getter for the whole cableConfig.
getCableConfig() - Method in class breitband.GUI.elements.GCable
 
getCableConfigs() - Method in class breitband.util.Config
Returns all cables that were found in the config file
getCID() - Method in class breitband.game.board.Contract
getter for cID
getCities() - Method in class breitband.game.board.Board
Getter for all cities.
getCities() - Method in class breitband.game.board.Region
getter for cities
getCitiesInRange(City, float) - Method in class breitband.game.board.Board
Getter for all cities in range of one specific City.
getCitiesInRange(City, float, int) - Method in class breitband.game.board.Board
Getter for all cities in range of one specific City limited by the border parameter.
getCity() - Method in class breitband.GUI.elements.GCity
City object getter
getCityA() - Method in class breitband.game.board.CableRoute
getter for cityA
getCityA() - Method in class breitband.game.board.CityContract
getter for cityA
getCityB() - Method in class breitband.game.board.CableRoute
getter for cityB
getCityB() - Method in class breitband.game.board.CityContract
getter for CityB
getCityByName(String) - Method in class breitband.game.board.Board
Getter for a specific city.
getCityByName(String) - Method in class breitband.game.board.Region
getter for a city in this region by name
getContractByName(String) - Method in class breitband.game.board.Board
Getter for a specific available contract.
getContractPool() - Method in class breitband.util.Config
Returns a HashMap with all contracts that were found in the config file
getContracts() - Method in class breitband.game.board.Board
Getter for the available contracts.
getContracts() - Method in class breitband.util.ContractPool
Gets the contracts in the contract pool.
getContractsDoneByPlayer(int) - Method in class breitband.game.board.Board
Getter for the finished contracts of a specific player.
getCopyright() - Method in class breitband.util.MapCredits
Gets the name of the copyright holder.
getCopyrightLink() - Method in class breitband.util.MapCredits
Returns the link to the map's license.
getCountryCode() - Method in class breitband.util.Config
Gets the configured country code
getCountryName() - Method in class breitband.util.Config
Gets the configured country name
getCrossBorders() - Method in class breitband.game.board.CableConfig
getter for canCrossBorders
getCrossCables() - Method in class breitband.game.board.CableConfig
getter for canCrossCables
getCurrentPlayer() - Method in class breitband.game.board.Board
Getter for current player.
getData() - Method in enum breitband.GUI.util.Asset
Returns the SVG data of the asset
getDescription() - Method in class breitband.util.Config
Gets the configured description
getDirectConnections() - Method in class breitband.game.board.Board
Getter for all build direct Connections.
getDistance() - Method in class breitband.game.board.CableRoute
getter for the distance
getDistanceBetweenCities(City) - Method in class breitband.game.board.City
calculates the distance between this city and a given city
getDistancePerCable() - Method in class breitband.game.board.CableConfig
getter for distancePerCable
getEmoji() - Method in class breitband.game.board.CableConfig
getter for emoji
getEndingLength() - Static method in class breitband.game.board.CableConfig
getter for endingLength
getEndScoreByID(int) - Method in class breitband.game.board.Board
Getter for the endgame score of one specific player.
getEndScores() - Method in class breitband.game.board.Board
Getter for the endgame scores of all players.
getFontAwesome() - Method in class breitband.game.board.CableConfig
getter for fontAwesome
getGroupOfCity(City) - Method in class breitband.game.board.Board
Getter for the group of a specific city.
getHash() - Method in class breitband.game.board.Contract
getter for hash
getHeight() - Method in class breitband.GUI.elements.GCableInventory
 
getHeight() - Method in class breitband.GUI.elements.GContractList
Getter for the height of the list
getLicense() - Method in class breitband.util.MapCredits
Gets the full name of the license.
getLicenseLink() - Method in class breitband.util.MapCredits
Gets the URL of the full text of the license.
getLicenseShort() - Method in class breitband.util.MapCredits
Gets the short form of the license name.
getLicenseVersion() - Method in class breitband.util.MapCredits
Gets the version of the license.
getMapCredits() - Method in class breitband.util.Config
Gets the configured map credits
getMaxCableCost() - Method in class breitband.game.board.Board
Getter for the max cable cost over all cable-types.
getMaxCableDistanceOfAll() - Method in class breitband.game.board.Board
Getter for the max distance over all cable-types.
getMaxConnections() - Method in class breitband.game.board.City
getter for maxConnections
getMaxDistance() - Method in class breitband.game.board.CableConfig
getter for maxDistance
getName() - Method in class breitband.game.board.City
getter for name
getName() - Method in class breitband.game.board.Region
getter for name
getName() - Method in class breitband.game.players.SPlayer
getter for name
getName() - Method in class breitband.GUI.elements.GCity
City name getter
getName() - Method in class breitband.GUI.elements.GRegion
Region name getter
getNum() - Method in class breitband.game.board.CableRoute
getter for num
getOwner() - Method in class breitband.GUI.elements.GCable
 
getPath() - Method in enum breitband.GUI.util.Asset
Returns the path to the asset
getPlayer() - Method in class breitband.game.board.Contract
getter for playerID
getPlayerCables() - Method in class breitband.game.board.Board
Getter for all amounts of cables of the current player.
getPlayerCables(int) - Method in class breitband.game.board.Board
Gets the cable inventory of a player by their ID
getPlayerCables(String) - Method in class breitband.game.board.Board
Getter for the amount of cables of one specific cable-type of the current player.
getPlayerCablesById(String, int) - Method in class breitband.game.board.Board
Getter for the amount of cables of one specific cable-type of a specific player.
getPlayerColor(int) - Method in class breitband.GUI.GameWindow
Get a player's color by index
getPlayerContract(String) - Method in class breitband.game.board.Board
Getter for a specific Contract of the player.
getPlayerContracts() - Method in class breitband.game.board.Board
Getter for the contracts of the current player.
getPlayerContractsByPlayer(int) - Method in class breitband.game.board.Board
Getter for the player contracts of a specific player.
getPlayerId() - Method in class breitband.game.players.SPlayer
getter for playerID
getPlayerName(int) - Method in class breitband.GUI.GameWindow
Get a player's name by index
getPlayerScores() - Method in class breitband.game.board.Board
Getter for all playerScores.
getPoints() - Method in class breitband.game.board.Border
getter for points
getPolygons() - Method in class breitband.game.board.Region
getter for Polygons
getQuality() - Method in enum breitband.GUI.util.LevelOfDetail
Getter for this detail-level's quality/step-size
getRegion() - Method in class breitband.game.board.RegionContract
getter for Region
getRegionOfCity(String) - Method in class breitband.game.board.Board
Getter for the region of a specific city.
getRegions() - Method in class breitband.game.board.Board
Getter for regions.
getRegions() - Method in class breitband.util.Config
Returns a Vector with all regions that were found in the config file
getScore(boolean) - Method in class breitband.game.players.SPlayer
getter for Score
getScoreByID(int) - Method in class breitband.game.board.Board
Getter for the score of a player by the id of the player.
getSubsetSize() - Method in class breitband.util.ContractPool
Gets the size of the contract pool's subset
getTurn() - Method in class breitband.game.board.Board
Getter for the current turn.
getType() - Method in class breitband.game.board.CableConfig
getter for type
getType() - Method in class breitband.game.board.CableRoute
getter for cableType
getVal() - Method in class breitband.game.board.CableRoute
getter for value
getValue() - Method in class breitband.game.board.CableConfig
getter for value
getValue() - Method in class breitband.game.board.Contract
getter for Value
getVersion() - Static method in class breitband.util.Config
Gets the configured config version
getX() - Method in class breitband.game.board.City
getter for xPos
getY() - Method in class breitband.game.board.City
getter for yPos
GPlayer - Class in breitband.GUI.elements
Happy little guys that show up in the "Game Over" screen.
GPlayer(String, Color, int, int) - Constructor for class breitband.GUI.elements.GPlayer
Constructs a new GPlayer.
GRegion - Class in breitband.GUI.elements
A class for displaying regions on a map.
GRegion(Region, float) - Constructor for class breitband.GUI.elements.GRegion
Create a Region and it's polygons at several levels of detail.
GScrollView - Class in breitband.GUI.elements
A scrollable GGroup.
GScrollView(GGroup, GElement) - Constructor for class breitband.GUI.elements.GScrollView
Creates a new GScrollView

H

hasAvailableContracts() - Method in class breitband.game.board.Board
Checks if any available contracts exist.
hasContract(int) - Method in class breitband.game.board.Board
checks if a specific player has a contract
hasDirectConnections(City) - Method in class breitband.game.board.City
tests for direct connection between this city and another given city
hashCode() - Method in class breitband.game.board.CityContract
override for hashCode() of java.lang.object
hashCode() - Method in class breitband.game.board.RegionContract
override for the hashCode() method of java.lang.Object
hasLoaded() - Method in class breitband.GUI.GameWindow
Returns true only if the GUI has finished loading
height - Variable in class breitband.GUI.elements.GCableInventory
 
HEIGHT - Static variable in class breitband.GUI.elements.GCableInfo
 
hide() - Method in class breitband.GUI.ui.CableSelector
Hide the selector by pushing it offscreen
hide() - Method in class breitband.GUI.ui.CableStore
Hides the store by pushing it offscreen
hide() - Method in class breitband.GUI.ui.ContractStore
Shows contract store by pushing it offscreen
hide() - Method in class breitband.GUI.ui.PlayerTooltip
Hides the tooltip
highlightCities(String) - Method in class breitband.GUI.ui.World
Highlights one city
highlightCities(String, String) - Method in class breitband.GUI.ui.World
Highlights two cities
highlightCitiesWeak(Vector<City>, boolean) - Method in class breitband.GUI.ui.World
Highlights an array of cities dimly, used for showing cities in range
highlightRegion(String) - Method in class breitband.GUI.ui.World
Highlight the given region.
HumanPlayer - Class in breitband.game.players
Class for Human players
HumanPlayer(int, String, Reader, ImmutableList<String>, int, PlayerGUIAccess) - Constructor for class breitband.game.players.HumanPlayer
constructs a new human player with an id, a name, a XMLReader, available contracts, and the number of players

I

ICON - Static variable in enum breitband.GUI.util.Asset
The icon for the entire game.
ICON_RATIO - Static variable in class breitband.GUI.elements.GCable
The ratio of the icon's size to the width of the cable
illegalBorderCrossing(City, City, CableConfig, Region, Region) - Static method in class breitband.game.players.SPlayer
Method to check illegal border Crossings
illegalCableCrossings(CableConfig, City, City, Board) - Static method in class breitband.game.players.SPlayer
Method for checking the new Cable crossing any old cables
IllegalTurnException - Exception in breitband.game.players
class exception to be thrown when an illegal turn occurs
IllegalTurnException(String) - Constructor for exception breitband.game.players.IllegalTurnException
constructs a new illegalTurnException with an error message
init(Reader, ImmutableList<String>, int, int) - Method in class breitband.game.players.SPlayer
initialize method parsing the XML file and creating board from the config
initLabel(float, float, float) - Method in class breitband.GUI.elements.GRegion
Initialize the label with the region's name as text
inSameRegion(Region, Region) - Static method in class breitband.game.players.SPlayer
Checks if to regions are the same, intersect (i.e.
intersects(Line2D) - Method in class breitband.game.board.Border
tests if a line intersects with polygon
intersects(Point2D) - Method in class breitband.game.board.Border
Tests if a point intersects the border's polygon
InvalidBoardAccessException - Exception in breitband.game.board
Class for errors due to invalid Board access.
InvalidBoardAccessException(String) - Constructor for exception breitband.game.board.InvalidBoardAccessException
constructs a new InvalidBoardAccessException with an error message
InvalidBoardAccessException(String, Throwable) - Constructor for exception breitband.game.board.InvalidBoardAccessException
constructs a new InvalidBoardAccessException passing on the root error and an error message
InvalidGameResultException - Exception in breitband.game.players
Class for errors which occur when the end-result is invalid
InvalidGameResultException(String) - Constructor for exception breitband.game.players.InvalidGameResultException
constructs a new InvalidGameResultException with an error message
InvalidGameResultException(String, Throwable) - Constructor for exception breitband.game.players.InvalidGameResultException
constructs a new InvalidGameResultException passing on the root error and an error message
isDone() - Method in class breitband.game.board.Contract
"getter" for done
isFulfilledCity(CityContract) - Method in class breitband.game.board.Board
Checks if a specific city-contract is fulfilled.
isFulfilledRegion(RegionContract) - Method in class breitband.game.board.Board
Checks if a specific region-contract is fulfilled.
isLastRound() - Method in class breitband.game.board.Board
checks if it is the last round of the game.

K

keyPressed(KeyEvent) - Method in class breitband.GUI.ui.World
Register key presses for navigation
keyReleased(KeyEvent) - Method in class breitband.GUI.ui.World
 
keyTyped(KeyEvent) - Method in class breitband.GUI.ui.World
 

L

LAST_ROUND - breitband.util.SoundFile
For when the last round commences.
lastRound() - Method in class breitband.GUI.GameWindow
Displays a pop-up message indicating that the last round has started
LEVEL_1 - breitband.GUI.util.LevelOfDetail
 
LEVEL_2 - breitband.GUI.util.LevelOfDetail
 
LEVEL_3 - breitband.GUI.util.LevelOfDetail
 
LEVEL_4 - breitband.GUI.util.LevelOfDetail
 
LEVEL_5 - breitband.GUI.util.LevelOfDetail
 
LEVEL_6 - breitband.GUI.util.LevelOfDetail
 
LevelOfDetail - Enum in breitband.GUI.util
The level of detail that a polygon should be processed with.
LicenseInfo - Class in breitband.GUI.ui
Visually displays the license information for the map data and provides a clickable link to the full license.
LicenseInfo(SAGPanel) - Constructor for class breitband.GUI.ui.LicenseInfo
Creates a new LicenseInfo
LOADING - breitband.GUI.util.Asset
 
loop() - Method in enum breitband.util.SoundFile
Loops the SoundFile infinitely.

M

main(String[]) - Static method in class breitband.Main
Starts the game.
main(String[]) - Static method in class test.ConfigTest
 
main(String[]) - Static method in class test.gameTest.BoardTest
The main method
main(String[]) - Static method in class test.gameTest.RandomAiTest
Firstly this method makes all essentials for the board.
main(String[]) - Static method in class test.SetupBenchmark
 
main(String[]) - Static method in class test.SetupTest
 
Main - Class in breitband
The main class of the game.
Main() - Constructor for class breitband.Main
 
MapCredits - Class in breitband.util
The credits for a map.
MapCredits(String, String, String, String, String, String) - Constructor for class breitband.util.MapCredits
Constructs a new MapCredits instance with detailed information about the map's copyright and license.
maxX - Static variable in class breitband.GUI.elements.GRegion
Bounds of the entire map.
maxY - Static variable in class breitband.GUI.elements.GRegion
Bounds of the entire map.
minX - Static variable in class breitband.GUI.elements.GRegion
Bounds of the entire map.
minY - Static variable in class breitband.GUI.elements.GRegion
Bounds of the entire map.
movedEvent(MouseMotionEvent, GElement) - Method in class breitband.GUI.elements.GButton
 
moveScreen(float, float) - Method in class breitband.GUI.ui.World
Move every city and polygon by a specific amount

O

onCityClick(Consumer<GCity>) - Method in class breitband.GUI.ui.World
This event is triggered when a city is clicked
onClick(BiConsumer<MouseButtonEvent, GElement>) - Method in class breitband.GUI.elements.GButton
This action is performed when the element is clicked.
onEnter(BiConsumer<MouseMotionEvent, GElement>) - Method in class breitband.GUI.elements.GButton
This action is performed when the cursor enters the element.
onEnter(Consumer<Contract>) - Method in class breitband.GUI.elements.GContractList
This event is triggered when a user's cursor enters a contract
onEnter(Consumer<Contract>) - Method in class breitband.GUI.ui.ContractStore
This event is triggered when a user's cursor enters a contract
onEnter(Consumer<GCity>) - Method in class breitband.GUI.elements.GCity
Method for defining enterAction in lambdas
onEnter(Consumer<Integer>) - Method in class breitband.GUI.ui.PlayerList
 
onEnterContract(Consumer<Contract>) - Method in class breitband.GUI.ui.PlayerInfo
This event is triggered when a user's cursor enters a contract from the contract list
onExit(BiConsumer<MouseMotionEvent, GElement>) - Method in class breitband.GUI.elements.GButton
This action is performed when the cursor exits the element.
onExit(Consumer<Contract>) - Method in class breitband.GUI.elements.GContractList
This event is triggered when a user's cursor leaves a contract
onExit(Consumer<Contract>) - Method in class breitband.GUI.ui.ContractStore
This event is triggered when a user's cursor leaves a contract
onExit(Consumer<Integer>) - Method in class breitband.GUI.ui.PlayerList
 
onExitContract(Consumer<Contract>) - Method in class breitband.GUI.ui.PlayerInfo
This event is triggered when a user's cursor leaves a contract from the contract list
onMove(BiConsumer<MouseMotionEvent, GElement>) - Method in class breitband.GUI.elements.GButton
This action is performed when the cursor moves over the element.
onPress(BiConsumer<MouseButtonEvent, GElement>) - Method in class breitband.GUI.elements.GButton
This action is performed when the element is pressed.
onPurchase(Consumer<HashMap<String, Integer>>) - Method in class breitband.GUI.ui.CableStore
This action is performed when a purchase is made
onRelease(BiConsumer<MouseButtonEvent, GElement>) - Method in class breitband.GUI.elements.GButton
This action is performed when the element is released.
onScroll(BiConsumer<MouseWheelEvent, GElement>) - Method in class breitband.GUI.elements.GButton
This action is performed when the cursor scrolls on the element.
onSelect(Consumer<Contract>) - Method in class breitband.GUI.ui.ContractStore
This event is triggered when a contract is selected
onSelect(Consumer<GCity>) - Method in class breitband.GUI.elements.GCity
Method for defining selectAction in lambdas
onSelect(Predicate<CableConfig>) - Method in class breitband.GUI.ui.CableSelector
This event is triggered when the user selects a cable
onSkip(Runnable) - Method in class breitband.GUI.ui.CableSelector
This event is triggered when the user skips, instead of choosing a cable
onSkip(Runnable) - Method in class breitband.GUI.ui.ContractStore
This event is triggered when a user skips and doesn't select a contract
OPEN - breitband.util.SoundFile
For UI interactions where a menu or pop-up is opened.
ORIGINAL - breitband.GUI.util.LevelOfDetail
Process the polygon with frequency analysis, but leave out the second iteration where most points get deleted.

P

palette - Static variable in class breitband.GUI.util.Styles
The color palette used to color in regions.
pickedUpCables(int) - Method in class breitband.game.players.RandomAIPlayer
generates a random Map of Cables given a certain amount of money.
placeCable(City, City, CableConfig, Color, String, int) - Method in class breitband.GUI.ui.World
Create a cable to be placed in the map
play() - Method in enum breitband.util.SoundFile
Plays the SoundFile.
PLAYER_1ST_PLACE - breitband.GUI.util.Asset
 
PLAYER_2ND_PLACE - breitband.GUI.util.Asset
 
PLAYER_3RD_PLACE - breitband.GUI.util.Asset
 
PLAYER_LOSER - breitband.GUI.util.Asset
 
PLAYER_SAD - breitband.GUI.util.Asset
 
PLAYER_SELECTOR - breitband.GUI.util.Asset
 
PlayerInfo - Class in breitband.GUI.ui
Displays info about the player; Their contracts Their inventory state
PlayerInfo(SAGPanel, Collection<CableConfig>) - Constructor for class breitband.GUI.ui.PlayerInfo
Builds a new info layer into the panel
PlayerList - Class in breitband.GUI.ui
The list of all current players.
PlayerList(SAGPanel, String[], Color[], PlayerType[]) - Constructor for class breitband.GUI.ui.PlayerList
Creates a new PlayerList
PlayerTooltip - Class in breitband.GUI.ui
Displays information about a player.
PlayerTooltip(SAGPanel, Collection<CableConfig>) - Constructor for class breitband.GUI.ui.PlayerTooltip
Creates a new PlayerTooltip
PODIUM - breitband.GUI.util.Asset
 
PolygonOptimizer - Class in breitband.GUI.util
Class for optimizing the polygons used in the GUI.
PolygonOptimizer() - Constructor for class breitband.GUI.util.PolygonOptimizer
 
pressEvent(MouseButtonEvent, GElement) - Method in class breitband.GUI.elements.GButton
 

R

RandomAIPlayer - Class in breitband.game.players
This class provides an Ai-player which makes random moves.
RandomAIPlayer(int, String, Board, int) - Constructor for class breitband.game.players.RandomAIPlayer
This is a constructor for debugging purposes, used without a parser.
RandomAIPlayer(int, String, Reader, ImmutableList<String>, int) - Constructor for class breitband.game.players.RandomAIPlayer
constructs a new Random Ai player with default percentages.
RandomAIPlayer(int, String, Reader, ImmutableList<String>, int, int, int) - Constructor for class breitband.game.players.RandomAIPlayer
constructs a new Random Ai player with percentages as parameters.
RandomAiTest - Class in test.gameTest
Class for testing the random Ai
RandomAiTest() - Constructor for class test.gameTest.RandomAiTest
 
randomCable() - Method in class breitband.game.players.RandomAIPlayer
generates a random cable-typ.
randomCity() - Method in class breitband.game.players.RandomAIPlayer
generates a random city of the country.
randomContract() - Method in class breitband.game.players.RandomAIPlayer
Generates a random Contract.
randomDecision(int) - Method in class breitband.game.players.CheatingAIPlayer
Method to make seemingly random decisions at a certain percentage
Region - Class in breitband.game.board
Class containing all information regarding regions (acts like a struct)
Region(HashMap<String, City>, String, Border[]) - Constructor for class breitband.game.board.Region
Constructs a region with cities, a name and borders
REGION_FONT_SIZE - Static variable in class breitband.GUI.ui.World
 
REGION_LINE_SIZE - Static variable in class breitband.GUI.elements.GRegion
Size of the region's outline relative to screen space
RegionContract - Class in breitband.game.board
class containing all information regarding only region-contracts
RegionContract(String, int, Region) - Constructor for class breitband.game.board.RegionContract
Constructs a contract with an id, a value and the region
REJECT - breitband.util.SoundFile
For unsuccessful UI interactions.
releaseEvent(MouseButtonEvent, GElement) - Method in class breitband.GUI.elements.GButton
 
REMOVE - breitband.GUI.util.Asset
 
REMOVE_HOVER - breitband.GUI.util.Asset
 
removeRangeCircles() - Method in class breitband.GUI.ui.World
Method for removing/resetting the range circles by deleting each circle
request() - Method in class breitband.game.players.CheatingAIPlayer
Overrides request method of RandomAIPlayer randomly deciding (with a 50% chance) to cheat or use the super.request() also deciding the way of cheating randomly the idea is to make the cheating percentage rise continuously in order to give the later cheating attempts a chance of happening (since the game will terminate after every cheating attempt)
request() - Method in class breitband.game.players.HumanPlayer
this method returns the move made by a humanPlayer, by calling the request Method from GUI (see also GameWindow.requestMoveFromCurrentHumanPlayer()),
updating its own board and then returning the move given by GUI
request() - Method in class breitband.game.players.RandomAIPlayer
Generates a random legal move.
request() - Method in class breitband.game.players.SPlayer
abstract class for request (will be implemented in child classes)
requestMoveFromCurrentHumanPlayer() - Method in class breitband.GUI.GameWindow
Method called by human players to start taking GUI inputs
reset() - Method in class breitband.GUI.elements.GScrollView
Resets the scroll offset of the inner content
resetScreenTransform() - Method in class breitband.GUI.ui.World
Method for setting the screen scaling and position to the default state where the entire map is visible and centered
routePossible(City, City, Region, Region, CableConfig, Board, int) - Static method in class breitband.game.players.SPlayer
checks if the route is possible by using combining all checking methods

S

scaleAllScreen(float, float) - Method in class breitband.GUI.elements.GRegion
Scales all polygon outlines and text size to screen space
scaleFont(float) - Method in class breitband.GUI.elements.GRegion
Scale font to screenSize, needs to be called when the screen zooms in/out
scaleScreen(float) - Method in class breitband.GUI.ui.World
Scale all layers by a certain factor
scaleToScreen(float) - Method in class breitband.GUI.elements.GCable
Scale the width and icons to be screenSpace
scaleToScreen(float, float) - Method in class breitband.GUI.elements.GCity
Scale the city icon and labels to be screen space.
SCREEN_SPACE_WIDTH - Static variable in class breitband.GUI.elements.GCable
Width of the cable in screen space
scrollEvent(MouseWheelEvent) - Method in class breitband.GUI.elements.GScrollView
Moves the inner content; This will be triggered when a MouseWheelEvent occurs
scrollEvent(MouseWheelEvent, GElement) - Method in class breitband.GUI.elements.GButton
 
send(String) - Method in class breitband.GUI.ui.ToastNotifier
Sends a notification that is displayed for 3 seconds and then gets removed
send(String, float, float) - Method in class breitband.GUI.ui.Tooltip
Create a new tooltip on screen.
send(String, float, float, GText.TextAnchor) - Method in class breitband.GUI.ui.Tooltip
Create a new tooltip on screen.
SENDING_MOVE - breitband.GUI.GameState
Game state when a player has finished their turn and the move is being constructed
setActualConnections() - Method in class breitband.game.board.City
setter for actual Connections (since only one connection can be made at a time it only increments)
setAsset(Asset) - Method in class breitband.GUI.elements.GAsset
Swaps the asset with some other one
setAsset(Asset, Color) - Method in class breitband.GUI.elements.GAsset
Swaps the asset with some other one.
setBoard(Board) - Method in class breitband.GUI.GameWindow
Sets the windows' Board and initializes it.
setCableAmounts(HashMap<String, Integer>) - Method in class breitband.GUI.elements.GCableInventory
Set the amounts of each cable type that are in the current player's inventory
setCableAmounts(HashMap<String, Integer>) - Method in class breitband.GUI.ui.PlayerInfo
Sets the amount of cables that are shown in the inventory
setContracts(Contract[]) - Method in class breitband.GUI.ui.ContractStore
Sets the available contracts by replacing the old list with a new one
setContracts(Collection<Contract>) - Method in class breitband.GUI.elements.GContractList
Sets the contracts of the list
setContracts(Collection<Contract>) - Method in class breitband.GUI.ui.PlayerInfo
Sets the contracts of the contract list
setCredits(MapCredits) - Method in class breitband.GUI.GameWindow
Set OSM credits
setCrossCables(Vector<CableConfig>) - Method in class breitband.game.board.CableConfig
Setter für Crosscables, needs to be called at least once since crossCables cannot be initialized in constructor,
because the other cables need to also be initialized
setCurrentPlayer(int) - Method in class breitband.GUI.ui.PlayerList
Sets the current player index
setDone() - Method in class breitband.game.board.Contract
setter for done (takes no input as a contract should only be set from not done to done)
setEndingLength(int) - Static method in class breitband.game.board.CableConfig
this method is only to be used once in the beginning when parsing the config
setHighlighted(boolean) - Method in class breitband.GUI.elements.GCity
 
setHighlightedWeak(boolean) - Method in class breitband.GUI.elements.GCity
 
setInfo(MapCredits) - Method in class breitband.GUI.ui.LicenseInfo
Sets the license information that will be displayed
setMainVolume(float) - Static method in enum breitband.util.SoundFile
Sets the volume that all SoundFile instances will be played at.
setPlayer(int) - Method in class breitband.game.board.Contract
setter for playerID
setScores(int[]) - Method in class breitband.GUI.ui.PlayerList
Sets the scores of all players in the list
SetupBenchmark - Class in test
This test benchmarks the setup of a game, up to the creation of all players, and prints the results in a table.
SetupBenchmark() - Constructor for class test.SetupBenchmark
 
SetupTest - Class in test
Tests the setup, up to the creation of the players, using a specified config.
SetupTest() - Constructor for class test.SetupTest
 
setVolume(float) - Method in enum breitband.util.SoundFile
Sets the volume that the SoundFile will be played at.
show() - Method in class breitband.GUI.ui.CableSelector
Show the selector by pushing it onscreen
show() - Method in class breitband.GUI.ui.CableStore
Shows the store by pushing it onscreen
show() - Method in class breitband.GUI.ui.ContractStore
Shows contract store by pushing it onscreen
show(String, List<Contract>, HashMap<String, Integer>) - Method in class breitband.GUI.ui.PlayerTooltip
Shows the tooltip
showName(boolean) - Method in class breitband.GUI.elements.GCity
Show the city's name This method does nothing if the screen is zoomed in to the point where the name is always visible
showRangeCircles(float, float, int, float, float) - Method in class breitband.GUI.ui.World
Method for creating circles around a city depicting the range at which you can build
shuffle() - Method in class breitband.util.ContractPool
Shuffles the contract pool and returns a subset of all contract IDs.
SKIP_WIDTH - Static variable in class breitband.GUI.elements.GCableInfo
 
SoundFile - Enum in breitband.util
A sound file that is loaded once and can be played multiple times consecutively using the SoundFile.play() method.
SPlayer - Class in breitband.game.players
Class containing all the information and methods needed for players regardless of type
SPlayer(int, String, Reader, ImmutableList<String>, int) - Constructor for class breitband.game.players.SPlayer
Constructs a new SPlayer with and id, a name, an XML, available contracts and the number of players
stop() - Method in enum breitband.util.SoundFile
Stops the SoundFile.
Styles - Class in breitband.GUI.util
All styles that the GUI uses.
Styles() - Constructor for class breitband.GUI.util.Styles
 
SURFACE_100 - Static variable in class breitband.GUI.util.Styles
Main UI blue-gray color; Shade 100.
SURFACE_200 - Static variable in class breitband.GUI.util.Styles
Main UI blue-gray color; Shade 200
SURFACE_300 - Static variable in class breitband.GUI.util.Styles
Main UI blue-gray color; Shade 300
SURFACE_400 - Static variable in class breitband.GUI.util.Styles
Main UI blue-gray color; Shade 400.
SURFACE_50 - Static variable in class breitband.GUI.util.Styles
Main UI blue-gray color; Shade 50
SURFACE_500 - Static variable in class breitband.GUI.util.Styles
Main UI blue-gray color; Shade 500
SURFACE_600 - Static variable in class breitband.GUI.util.Styles
Main UI blue-gray color; Shade 600
SURFACE_700 - Static variable in class breitband.GUI.util.Styles
Main UI blue-gray color; Shade 700
SURFACE_800 - Static variable in class breitband.GUI.util.Styles
Main UI blue-gray color; Shade 800.
SURFACE_900 - Static variable in class breitband.GUI.util.Styles
Main UI blue-gray color; Shade 900.
SURFACE_950 - Static variable in class breitband.GUI.util.Styles
Main UI blue-gray color; Shade 950.

T

targetCities - Variable in class breitband.GUI.GameWindow
CityA at 0 and CityB at 1
test - package test
Test classes for the game.
test.gameTest - package test.gameTest
Basic tests for the board and player logic.
toastNotifier - Static variable in class breitband.GUI.GameWindow
The global toast notifier system.
ToastNotifier - Class in breitband.GUI.ui
A container for a toast notification.
ToastNotifier(SAGPanel) - Constructor for class breitband.GUI.ui.ToastNotifier
Creates a new ToastNotifier and attaches it to the provided panel
tooltip - Static variable in class breitband.GUI.GameWindow
 
Tooltip - Class in breitband.GUI.ui
A class for showing tooltips on screen.
Tooltip(SAGPanel) - Constructor for class breitband.GUI.ui.Tooltip
Constructor which creates the layer and anchors it to the top left
toString() - Method in class breitband.game.board.Board
debug method which prints out some information about the current status of the board.
toString() - Method in class breitband.util.Config
Returns a string representation of the config, for debugging purposes.
toString() - Method in class breitband.util.MapCredits
Formats the map credits as a string.
trimEnd(StringBuilder) - Static method in class breitband.util.Utils
Trims trailing whitespaces off text.
truncate(StringBuilder, int) - Static method in class breitband.util.Utils
Truncates text by cutting it off and adding an ellipsis to the end if necessary.
truncate(String, int) - Static method in class breitband.util.Utils
Truncates text by cutting it off and adding an ellipsis to the end if necessary.

U

UNPROCESSED - breitband.GUI.util.LevelOfDetail
Do no processing on the polygon.
update(Move) - Method in class breitband.game.players.SPlayer
update class verifies move of other player
updateBoard(Move) - Method in class breitband.game.board.Board
Processes a move and changes the board accordingly.
updateGUIBoard(Move) - Method in class breitband.GUI.GameWindow
Method called at the end of every turn to keep the GUI's board updated
Utils - Class in breitband.util
Various utilities
Utils() - Constructor for class breitband.util.Utils
 

V

valueOf(String) - Static method in enum breitband.GUI.GameState
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum breitband.GUI.util.Asset
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum breitband.GUI.util.LevelOfDetail
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum breitband.util.SoundFile
Returns the enum constant of this type with the specified name.
values() - Static method in enum breitband.GUI.GameState
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum breitband.GUI.util.Asset
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum breitband.GUI.util.LevelOfDetail
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum breitband.util.SoundFile
Returns an array containing the constants of this enum type, in the order they are declared.
verifyGame(ImmutableList<Integer>) - Method in class breitband.game.players.SPlayer
method to only be used in the very end once which verifies if the endscore is synchronized

W

waitForInputs() - Method in class breitband.GUI.GameWindow
Method for notifying waitForMove() so it wakes up Called once all information necessary for the Move has been gathered
waitForMove() - Method in class breitband.GUI.GameWindow
Method called by the gui when a move is requested
WIDTH - Static variable in class breitband.GUI.elements.GCableInfo
 
WIDTH - Static variable in class breitband.GUI.elements.GCableInventory
 
WIDTH - Static variable in class breitband.GUI.elements.GContractList
 
World - Class in breitband.GUI.ui
The world map, containing all regions, cities and cables.
World(SAGPanel, Region[]) - Constructor for class breitband.GUI.ui.World
Create, move and scale regions and city to be centered on the map
A B C D E F G H I K L M O P R S T U V W 
All Classes All Packages