A single player turn-based empire building game. A player initially chooses one historical city to start his empire with. The goal is to conquer the whole world by taking control over every other city under a certain amount of turns. In order to achieve this goal, the player have the option of building various types of building in any city he has control over and also build armies in order to conquer other cities.
- OOP concepts (Inheritance - Polymorphism - Abstraction - Encapsulation ).
- Exception Handling.
- GUI
- For anyone who wants to learn about OOP, MVC, Swing.
- For anyone who might find this game fun π.
- For my future employer who will accept my resume when seeing this wonderful clean code game :"D.
src/
βββ buildings
β βββ ArcheryRange.java
β βββ Barracks.java
β βββ Building.java
β βββ EconomicBuilding.java
β βββ Market.java
β βββ ..............
βββ controllers
β βββ Controller.java
βββ engine
β βββ City.java
β βββ Distance.java
β βββ Game.java
β βββ Player.java
β βββ ............
βββ exceptions
β βββ ArmyException.java
β βββ BuildingException.java
β βββ FriendlyCityException.java
β βββ FriendlyFireException.java
β βββ .......................
βββ units
β βββ Archer.java
β βββ Army.java
β βββ Infantry.java
β βββ Status.java
β βββ ................
βββ utlis
β βββ ReadingCSVFile.java
βββ views
βββ button
β βββ CityButton.java
β βββ StyledButton.java
β βββ UnitButton.java
βββ MyInputVerifier.java
βββ panel
β βββ ArmyPanel.java
β βββ CardsPanel.java
β βββ MilitaryBuildingPanel.java
β βββ PlayerPanel.java
β βββ .....................
βββ RXCardLayout.java
βββ view
βββ BattleView.java
βββ CityView.java
βββ EndGameView.java
βββ StartView.java
βββ ..............
the game consists of 3 views beside the start view
-
World Map View
responsible for viewing the cities of the game , armies of the player and thier status.
-
City View
responsible for showing different buildings for each city where the player could build , upgrade and recruit units ti build his/her army.
-
Battle View
responsible for battles between army of the player and opponent cities where player could manage the battle manually or choose to auto resolve it.