Wargames is a simple battle simulator in Java, made for the course TDAT2001.
  • Java 95.8%
  • CSS 3.7%
  • Batchfile 0.5%
Find a file
Arunan Gnanasekaran 0e0984ce33 Merge branch 'dev' into 'master'
Final delivery

See merge request arunang/wargames!2
2022-05-24 04:45:25 +02:00
src Final delivery 2022-05-24 04:45:24 +02:00
.gitignore Final delivery 2022-05-24 04:45:24 +02:00
create_installer.bat Final delivery 2022-05-24 04:45:24 +02:00
pom.xml Final delivery 2022-05-24 04:45:24 +02:00
readme.md Make UnitFactory static, fix tests on assertThrown and refactor all code and add wireframe for GUI 2022-03-31 20:57:24 +02:00

What is Wargames?

Wargames is a simple battle simulator in Java. In a Battle two armies will fight against each other. An army consists of units. Units are special troops that can have special abilities.

The project was created as an obligatory submission in the subject IDATT2001 on computer engineering at NTNU.

To developers

FSH - FileHandlingSystem

Classes with "FSH" in the name shows that the class is a "filehandling system class". This means that it is responsible for reading and writing to files, and managing files.

ArmyFSH

The ArmyFSH stores and writes armies that are stored in memory. Units are stored in a csv file. The csv file always starts with the name of the army. The file name should also be the name of the army.

The Units are stored in the following fashion:
unitType,unitName,health,count

Where:

  • unitType - type of Unit
  • unitName - name of the Unit
  • health - amount of healthPoints the unit has
  • count - Amount of the unit in the Army

The count is there for saving space. Rather than having multiples of lines representing the same Unit, the count will save unnecessary data duplication.

UnitFactory

Unit Factory creates units from strings. This is usually done hand in hand when parsing files. If new types of Units are added, they should also be added in the factory, if the Unit is wished to be used by the Factory.

JavaFX

Todo

System requirements

  • Apache maven
  • Java 16