Package breitband.game.board
Provides the board logic of the game.
The main board logic is situated in the Board-class
.
The board logic uses an object-oriented style. A lot of information and functions are outsourced to utility-classes.
(Even if you could take this further).
-
Class Summary Class Description Board Class for the board logic.Border Class for polygons which have a method to check for lines intersecting with borderCableConfig Class for Cable(-types) (similar to a struct in C)CableRoute Class for Routes between Cities (similar to a struct in C)City 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-coordinateCityContract Class containing all information about contracts between two citiesContract Class containing all information and methods relevant for all contracts regardless of typeRegion Class containing all information regarding regions (acts like a struct)RegionContract class containing all information regarding only region-contracts -
Exception Summary Exception Description InvalidBoardAccessException Class for errors due to invalid Board access.