Commit b5e4af9a authored by Carl Gützkow's avatar Carl Gützkow
Browse files

refactor: changed package structure to seperate models and filehandlers

parent b65e89a4
Pipeline #183871 passed with stages
in 47 seconds
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Thu May 19 20:48:26 CEST 2022 -->
<!-- Generated by javadoc (17) on Thu May 19 21:03:13 CEST 2022 -->
<title>All Classes and Interfaces</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
......@@ -66,11 +66,11 @@ loadScripts(document, 'script');</script>
<div class="block">Class that extends Application
from javafx.</div>
</div>
<div class="col-first odd-row-color all-classes-table all-classes-table-tab2"><a href="edu.ntnu.idatt2001.carljgu.client/edu/ntnu/idatt2001/carljgu/army/Army.html" title="class in edu.ntnu.idatt2001.carljgu.army">Army</a></div>
<div class="col-first odd-row-color all-classes-table all-classes-table-tab2"><a href="edu.ntnu.idatt2001.carljgu.client/edu/ntnu/idatt2001/carljgu/battle/Army.html" title="class in edu.ntnu.idatt2001.carljgu.battle">Army</a></div>
<div class="col-last odd-row-color all-classes-table all-classes-table-tab2">
<div class="block">public class Army.</div>
</div>
<div class="col-first even-row-color all-classes-table all-classes-table-tab2"><a href="edu.ntnu.idatt2001.carljgu.client/edu/ntnu/idatt2001/carljgu/army/ArmyFileHandler.html" title="class in edu.ntnu.idatt2001.carljgu.army">ArmyFileHandler</a></div>
<div class="col-first even-row-color all-classes-table all-classes-table-tab2"><a href="edu.ntnu.idatt2001.carljgu.client/edu/ntnu/idatt2001/carljgu/filehandling/ArmyFileHandler.html" title="class in edu.ntnu.idatt2001.carljgu.filehandling">ArmyFileHandler</a></div>
<div class="col-last even-row-color all-classes-table all-classes-table-tab2">
<div class="block">Handles writing, reading and importing
armies to and from a file.</div>
......@@ -79,16 +79,16 @@ loadScripts(document, 'script');</script>
<div class="col-last odd-row-color all-classes-table all-classes-table-tab2">
<div class="block">Class Battle that simulates a battle between two armies.</div>
</div>
<div class="col-first even-row-color all-classes-table all-classes-table-tab2"><a href="edu.ntnu.idatt2001.carljgu.client/edu/ntnu/idatt2001/carljgu/client/BattleController.html" title="class in edu.ntnu.idatt2001.carljgu.client">BattleController</a></div>
<div class="col-first even-row-color all-classes-table all-classes-table-tab2"><a href="edu.ntnu.idatt2001.carljgu.client/edu/ntnu/idatt2001/carljgu/client/controllers/BattleController.html" title="class in edu.ntnu.idatt2001.carljgu.client.controllers">BattleController</a></div>
<div class="col-last even-row-color all-classes-table all-classes-table-tab2">
<div class="block">A controller class which
handles events in the fxml file battle-armies.fxml.</div>
</div>
<div class="col-first odd-row-color all-classes-table all-classes-table-tab2"><a href="edu.ntnu.idatt2001.carljgu.client/edu/ntnu/idatt2001/carljgu/units/specialized/CavalryUnit.html" title="class in edu.ntnu.idatt2001.carljgu.units.specialized">CavalryUnit</a></div>
<div class="col-first odd-row-color all-classes-table all-classes-table-tab2"><a href="edu.ntnu.idatt2001.carljgu.client/edu/ntnu/idatt2001/carljgu/battle/units/specialized/CavalryUnit.html" title="class in edu.ntnu.idatt2001.carljgu.battle.units.specialized">CavalryUnit</a></div>
<div class="col-last odd-row-color all-classes-table all-classes-table-tab2">
<div class="block">Class CavalryUnit that inherits from Unit.</div>
</div>
<div class="col-first even-row-color all-classes-table all-classes-table-tab2"><a href="edu.ntnu.idatt2001.carljgu.client/edu/ntnu/idatt2001/carljgu/units/specialized/CommanderUnit.html" title="class in edu.ntnu.idatt2001.carljgu.units.specialized">CommanderUnit</a></div>
<div class="col-first even-row-color all-classes-table all-classes-table-tab2"><a href="edu.ntnu.idatt2001.carljgu.client/edu/ntnu/idatt2001/carljgu/battle/units/specialized/CommanderUnit.html" title="class in edu.ntnu.idatt2001.carljgu.battle.units.specialized">CommanderUnit</a></div>
<div class="col-last even-row-color all-classes-table all-classes-table-tab2">
<div class="block">Class CommanderUnit that inherits from CavalryUnit.</div>
</div>
......@@ -102,17 +102,17 @@ loadScripts(document, 'script');</script>
<div class="block">A builder class which simplifies the process of
building a DialogBox object.</div>
</div>
<div class="col-first odd-row-color all-classes-table all-classes-table-tab2"><a href="edu.ntnu.idatt2001.carljgu.client/edu/ntnu/idatt2001/carljgu/client/EditArmyController.html" title="class in edu.ntnu.idatt2001.carljgu.client">EditArmyController</a></div>
<div class="col-first odd-row-color all-classes-table all-classes-table-tab2"><a href="edu.ntnu.idatt2001.carljgu.client/edu/ntnu/idatt2001/carljgu/client/controllers/EditArmyController.html" title="class in edu.ntnu.idatt2001.carljgu.client.controllers">EditArmyController</a></div>
<div class="col-last odd-row-color all-classes-table all-classes-table-tab2">
<div class="block">A controller class which
handles events in the fxml file edit-army.fxml.</div>
</div>
<div class="col-first even-row-color all-classes-table all-classes-table-tab5"><a href="edu.ntnu.idatt2001.carljgu.client/edu/ntnu/idatt2001/carljgu/FileExtensionException.html" title="class in edu.ntnu.idatt2001.carljgu">FileExtensionException</a></div>
<div class="col-first even-row-color all-classes-table all-classes-table-tab5"><a href="edu.ntnu.idatt2001.carljgu.client/edu/ntnu/idatt2001/carljgu/filehandling/FileExtensionException.html" title="class in edu.ntnu.idatt2001.carljgu.filehandling">FileExtensionException</a></div>
<div class="col-last even-row-color all-classes-table all-classes-table-tab5">
<div class="block">Thrown if an extension of a file is invalid
The exception thrown needs to have a message</div>
</div>
<div class="col-first odd-row-color all-classes-table all-classes-table-tab2"><a href="edu.ntnu.idatt2001.carljgu.client/edu/ntnu/idatt2001/carljgu/units/specialized/InfantryUnit.html" title="class in edu.ntnu.idatt2001.carljgu.units.specialized">InfantryUnit</a></div>
<div class="col-first odd-row-color all-classes-table all-classes-table-tab2"><a href="edu.ntnu.idatt2001.carljgu.client/edu/ntnu/idatt2001/carljgu/battle/units/specialized/InfantryUnit.html" title="class in edu.ntnu.idatt2001.carljgu.battle.units.specialized">InfantryUnit</a></div>
<div class="col-last odd-row-color all-classes-table all-classes-table-tab2">
<div class="block">Class InfantryUnit that inherits from Unit.</div>
</div>
......@@ -121,7 +121,7 @@ loadScripts(document, 'script');</script>
<div class="block">The main class that is run when the application
is called upon.</div>
</div>
<div class="col-first odd-row-color all-classes-table all-classes-table-tab2"><a href="edu.ntnu.idatt2001.carljgu.client/edu/ntnu/idatt2001/carljgu/units/specialized/RangedUnit.html" title="class in edu.ntnu.idatt2001.carljgu.units.specialized">RangedUnit</a></div>
<div class="col-first odd-row-color all-classes-table all-classes-table-tab2"><a href="edu.ntnu.idatt2001.carljgu.client/edu/ntnu/idatt2001/carljgu/battle/units/specialized/RangedUnit.html" title="class in edu.ntnu.idatt2001.carljgu.battle.units.specialized">RangedUnit</a></div>
<div class="col-last odd-row-color all-classes-table all-classes-table-tab2">
<div class="block">Class RangedUnit that inherits from Unit.</div>
</div>
......@@ -134,15 +134,15 @@ loadScripts(document, 'script');</script>
<div class="block">An enum that represents the different terrains
that the battles can occur on.</div>
</div>
<div class="col-first even-row-color all-classes-table all-classes-table-tab2"><a href="edu.ntnu.idatt2001.carljgu.client/edu/ntnu/idatt2001/carljgu/units/Unit.html" title="class in edu.ntnu.idatt2001.carljgu.units">Unit</a></div>
<div class="col-first even-row-color all-classes-table all-classes-table-tab2"><a href="edu.ntnu.idatt2001.carljgu.client/edu/ntnu/idatt2001/carljgu/battle/units/Unit.html" title="class in edu.ntnu.idatt2001.carljgu.battle.units">Unit</a></div>
<div class="col-last even-row-color all-classes-table all-classes-table-tab2">
<div class="block">The abstract class Unit.</div>
</div>
<div class="col-first odd-row-color all-classes-table all-classes-table-tab2"><a href="edu.ntnu.idatt2001.carljgu.client/edu/ntnu/idatt2001/carljgu/units/UnitFactory.html" title="class in edu.ntnu.idatt2001.carljgu.units">UnitFactory</a></div>
<div class="col-first odd-row-color all-classes-table all-classes-table-tab2"><a href="edu.ntnu.idatt2001.carljgu.client/edu/ntnu/idatt2001/carljgu/battle/units/UnitFactory.html" title="class in edu.ntnu.idatt2001.carljgu.battle.units">UnitFactory</a></div>
<div class="col-last odd-row-color all-classes-table all-classes-table-tab2">
<div class="block">A class to simply and elegantly create units.</div>
</div>
<div class="col-first even-row-color all-classes-table all-classes-table-tab3"><a href="edu.ntnu.idatt2001.carljgu.client/edu/ntnu/idatt2001/carljgu/units/UnitType.html" title="enum class in edu.ntnu.idatt2001.carljgu.units">UnitType</a></div>
<div class="col-first even-row-color all-classes-table all-classes-table-tab3"><a href="edu.ntnu.idatt2001.carljgu.client/edu/ntnu/idatt2001/carljgu/battle/units/UnitType.html" title="enum class in edu.ntnu.idatt2001.carljgu.battle.units">UnitType</a></div>
<div class="col-last even-row-color all-classes-table all-classes-table-tab3">
<div class="block">An enum that represents the different unit types
that an army can contain.</div>
......
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Thu May 19 20:48:26 CEST 2022 -->
<!-- Generated by javadoc (17) on Thu May 19 21:03:13 CEST 2022 -->
<title>All Packages</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
......@@ -55,19 +55,19 @@ loadScripts(document, 'script');</script>
<div class="summary-table two-column-summary">
<div class="table-header col-first">Package</div>
<div class="table-header col-last">Description</div>
<div class="col-first even-row-color"><a href="edu.ntnu.idatt2001.carljgu.client/edu/ntnu/idatt2001/carljgu/package-summary.html">edu.ntnu.idatt2001.carljgu</a></div>
<div class="col-first even-row-color"><a href="edu.ntnu.idatt2001.carljgu.client/edu/ntnu/idatt2001/carljgu/battle/package-summary.html">edu.ntnu.idatt2001.carljgu.battle</a></div>
<div class="col-last even-row-color">&nbsp;</div>
<div class="col-first odd-row-color"><a href="edu.ntnu.idatt2001.carljgu.client/edu/ntnu/idatt2001/carljgu/army/package-summary.html">edu.ntnu.idatt2001.carljgu.army</a></div>
<div class="col-first odd-row-color"><a href="edu.ntnu.idatt2001.carljgu.client/edu/ntnu/idatt2001/carljgu/battle/units/package-summary.html">edu.ntnu.idatt2001.carljgu.battle.units</a></div>
<div class="col-last odd-row-color">&nbsp;</div>
<div class="col-first even-row-color"><a href="edu.ntnu.idatt2001.carljgu.client/edu/ntnu/idatt2001/carljgu/battle/package-summary.html">edu.ntnu.idatt2001.carljgu.battle</a></div>
<div class="col-first even-row-color"><a href="edu.ntnu.idatt2001.carljgu.client/edu/ntnu/idatt2001/carljgu/battle/units/specialized/package-summary.html">edu.ntnu.idatt2001.carljgu.battle.units.specialized</a></div>
<div class="col-last even-row-color">&nbsp;</div>
<div class="col-first odd-row-color"><a href="edu.ntnu.idatt2001.carljgu.client/edu/ntnu/idatt2001/carljgu/client/package-summary.html">edu.ntnu.idatt2001.carljgu.client</a></div>
<div class="col-last odd-row-color">&nbsp;</div>
<div class="col-first even-row-color"><a href="edu.ntnu.idatt2001.carljgu.client/edu/ntnu/idatt2001/carljgu/client/dialogs/package-summary.html">edu.ntnu.idatt2001.carljgu.client.dialogs</a></div>
<div class="col-first even-row-color"><a href="edu.ntnu.idatt2001.carljgu.client/edu/ntnu/idatt2001/carljgu/client/controllers/package-summary.html">edu.ntnu.idatt2001.carljgu.client.controllers</a></div>
<div class="col-last even-row-color">&nbsp;</div>
<div class="col-first odd-row-color"><a href="edu.ntnu.idatt2001.carljgu.client/edu/ntnu/idatt2001/carljgu/units/package-summary.html">edu.ntnu.idatt2001.carljgu.units</a></div>
<div class="col-first odd-row-color"><a href="edu.ntnu.idatt2001.carljgu.client/edu/ntnu/idatt2001/carljgu/client/dialogs/package-summary.html">edu.ntnu.idatt2001.carljgu.client.dialogs</a></div>
<div class="col-last odd-row-color">&nbsp;</div>
<div class="col-first even-row-color"><a href="edu.ntnu.idatt2001.carljgu.client/edu/ntnu/idatt2001/carljgu/units/specialized/package-summary.html">edu.ntnu.idatt2001.carljgu.units.specialized</a></div>
<div class="col-first even-row-color"><a href="edu.ntnu.idatt2001.carljgu.client/edu/ntnu/idatt2001/carljgu/filehandling/package-summary.html">edu.ntnu.idatt2001.carljgu.filehandling</a></div>
<div class="col-last even-row-color">&nbsp;</div>
</div>
</main>
......
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Thu May 19 20:48:26 CEST 2022 -->
<!-- Generated by javadoc (17) on Thu May 19 21:03:13 CEST 2022 -->
<title>Constant Field Values</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
......
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Thu May 19 20:48:26 CEST 2022 -->
<!-- Generated by javadoc (17) on Thu May 19 21:03:13 CEST 2022 -->
<title>Deprecated List</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
......
......@@ -74,7 +74,7 @@ loadScripts(document, 'script');</script>
<h1 title="Class ArmyFileHandler" class="title">Class ArmyFileHandler</h1>
</div>
<div class="inheritance" title="Inheritance Tree"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">java.lang.Object</a>
<div class="inheritance">edu.ntnu.idatt2001.carljgu.army.ArmyFileHandler</div>
<div class="inheritance">edu.ntnu.idatt2001.carljgu.filehandling.ArmyFileHandler</div>
</div>
<section class="class-description" id="class-description">
<hr>
......
......@@ -74,7 +74,7 @@ loadScripts(document, 'script');</script>
<div class="inheritance"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Exception.html" title="class or interface in java.lang" class="external-link">java.lang.Exception</a>
<div class="inheritance"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/RuntimeException.html" title="class or interface in java.lang" class="external-link">java.lang.RuntimeException</a>
<div class="inheritance"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">java.lang.IllegalArgumentException</a>
<div class="inheritance">edu.ntnu.idatt2001.carljgu.FileExtensionException</div>
<div class="inheritance">edu.ntnu.idatt2001.carljgu.filehandling.FileExtensionException</div>
</div>
</div>
</div>
......
......@@ -74,7 +74,7 @@ loadScripts(document, 'script');</script>
<h1 title="Class Army" class="title">Class Army</h1>
</div>
<div class="inheritance" title="Inheritance Tree"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">java.lang.Object</a>
<div class="inheritance">edu.ntnu.idatt2001.carljgu.army.Army</div>
<div class="inheritance">edu.ntnu.idatt2001.carljgu.battle.Army</div>
</div>
<section class="class-description" id="class-description">
<hr>
......
......@@ -74,7 +74,7 @@ loadScripts(document, 'script');</script>
<h1 title="Class ArmyFileHandler" class="title">Class ArmyFileHandler</h1>
</div>
<div class="inheritance" title="Inheritance Tree"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">java.lang.Object</a>
<div class="inheritance">edu.ntnu.idatt2001.carljgu.army.ArmyFileHandler</div>
<div class="inheritance">edu.ntnu.idatt2001.carljgu.filehandling.ArmyFileHandler</div>
</div>
<section class="class-description" id="class-description">
<hr>
......
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Thu May 19 20:48:26 CEST 2022 -->
<!-- Generated by javadoc (17) on Thu May 19 21:03:13 CEST 2022 -->
<title>Battle</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
......@@ -98,8 +98,8 @@ loadScripts(document, 'script');</script>
<div class="summary-table two-column-summary">
<div class="table-header col-first">Constructor</div>
<div class="table-header col-last">Description</div>
<div class="col-constructor-name even-row-color"><code><a href="#%3Cinit%3E(edu.ntnu.idatt2001.carljgu.army.Army,edu.ntnu.idatt2001.carljgu.army.Army,edu.ntnu.idatt2001.carljgu.battle.Terrain)" class="member-name-link">Battle</a><wbr>(<a href="../army/Army.html" title="class in edu.ntnu.idatt2001.carljgu.army">Army</a>&nbsp;armyOne,
<a href="../army/Army.html" title="class in edu.ntnu.idatt2001.carljgu.army">Army</a>&nbsp;armyTwo,
<div class="col-constructor-name even-row-color"><code><a href="#%3Cinit%3E(edu.ntnu.idatt2001.carljgu.battle.Army,edu.ntnu.idatt2001.carljgu.battle.Army,edu.ntnu.idatt2001.carljgu.battle.Terrain)" class="member-name-link">Battle</a><wbr>(<a href="Army.html" title="class in edu.ntnu.idatt2001.carljgu.battle">Army</a>&nbsp;armyOne,
<a href="Army.html" title="class in edu.ntnu.idatt2001.carljgu.battle">Army</a>&nbsp;armyTwo,
<a href="Terrain.html" title="enum class in edu.ntnu.idatt2001.carljgu.battle">Terrain</a>&nbsp;terrain)</code></div>
<div class="col-last even-row-color">
<div class="block">Instantiates a new Battle.</div>
......@@ -119,11 +119,11 @@ loadScripts(document, 'script');</script>
<div class="table-header col-second">Method</div>
<div class="table-header col-last">Description</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#attackStringRepresentation(int,edu.ntnu.idatt2001.carljgu.units.Unit,edu.ntnu.idatt2001.carljgu.units.Unit,edu.ntnu.idatt2001.carljgu.army.Army,edu.ntnu.idatt2001.carljgu.army.Army)" class="member-name-link">attackStringRepresentation</a><wbr>(int&nbsp;damageDealt,
<a href="../units/Unit.html" title="class in edu.ntnu.idatt2001.carljgu.units">Unit</a>&nbsp;attacker,
<a href="../units/Unit.html" title="class in edu.ntnu.idatt2001.carljgu.units">Unit</a>&nbsp;defender,
<a href="../army/Army.html" title="class in edu.ntnu.idatt2001.carljgu.army">Army</a>&nbsp;attackingArmy,
<a href="../army/Army.html" title="class in edu.ntnu.idatt2001.carljgu.army">Army</a>&nbsp;defendingArmy)</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#attackStringRepresentation(int,edu.ntnu.idatt2001.carljgu.battle.units.Unit,edu.ntnu.idatt2001.carljgu.battle.units.Unit,edu.ntnu.idatt2001.carljgu.battle.Army,edu.ntnu.idatt2001.carljgu.battle.Army)" class="member-name-link">attackStringRepresentation</a><wbr>(int&nbsp;damageDealt,
<a href="units/Unit.html" title="class in edu.ntnu.idatt2001.carljgu.battle.units">Unit</a>&nbsp;attacker,
<a href="units/Unit.html" title="class in edu.ntnu.idatt2001.carljgu.battle.units">Unit</a>&nbsp;defender,
<a href="Army.html" title="class in edu.ntnu.idatt2001.carljgu.battle">Army</a>&nbsp;attackingArmy,
<a href="Army.html" title="class in edu.ntnu.idatt2001.carljgu.battle">Army</a>&nbsp;defendingArmy)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Information displayed is the
name of the attacking and defending army,
......@@ -144,13 +144,13 @@ loadScripts(document, 'script');</script>
<div class="block">Gets the terrain where
the battle occurs.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="../army/Army.html" title="class in edu.ntnu.idatt2001.carljgu.army">Army</a></code></div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="Army.html" title="class in edu.ntnu.idatt2001.carljgu.battle">Army</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getWinner()" class="member-name-link">getWinner</a>()</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Gets the winner of the army
or a null object.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="../army/Army.html" title="class in edu.ntnu.idatt2001.carljgu.army">Army</a></code></div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="Army.html" title="class in edu.ntnu.idatt2001.carljgu.battle">Army</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#simulate()" class="member-name-link">simulate</a>()</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Simulate a battle.</div>
......@@ -178,10 +178,10 @@ loadScripts(document, 'script');</script>
<h2>Constructor Details</h2>
<ul class="member-list">
<li>
<section class="detail" id="&lt;init&gt;(edu.ntnu.idatt2001.carljgu.army.Army,edu.ntnu.idatt2001.carljgu.army.Army,edu.ntnu.idatt2001.carljgu.battle.Terrain)">
<section class="detail" id="&lt;init&gt;(edu.ntnu.idatt2001.carljgu.battle.Army,edu.ntnu.idatt2001.carljgu.battle.Army,edu.ntnu.idatt2001.carljgu.battle.Terrain)">
<h3>Battle</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="element-name">Battle</span><wbr><span class="parameters">(<a href="../army/Army.html" title="class in edu.ntnu.idatt2001.carljgu.army">Army</a>&nbsp;armyOne,
<a href="../army/Army.html" title="class in edu.ntnu.idatt2001.carljgu.army">Army</a>&nbsp;armyTwo,
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="element-name">Battle</span><wbr><span class="parameters">(<a href="Army.html" title="class in edu.ntnu.idatt2001.carljgu.battle">Army</a>&nbsp;armyOne,
<a href="Army.html" title="class in edu.ntnu.idatt2001.carljgu.battle">Army</a>&nbsp;armyTwo,
<a href="Terrain.html" title="enum class in edu.ntnu.idatt2001.carljgu.battle">Terrain</a>&nbsp;terrain)</span>
throws <span class="exceptions"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a>,
<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/NullPointerException.html" title="class or interface in java.lang" class="external-link">NullPointerException</a></span></div>
......@@ -208,7 +208,7 @@ loadScripts(document, 'script');</script>
<li>
<section class="detail" id="getWinner()">
<h3>getWinner</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="../army/Army.html" title="class in edu.ntnu.idatt2001.carljgu.army">Army</a></span>&nbsp;<span class="element-name">getWinner</span>()</div>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="Army.html" title="class in edu.ntnu.idatt2001.carljgu.battle">Army</a></span>&nbsp;<span class="element-name">getWinner</span>()</div>
<div class="block">Gets the winner of the army
or a null object.</div>
<dl class="notes">
......@@ -245,7 +245,7 @@ loadScripts(document, 'script');</script>
<li>
<section class="detail" id="simulate()">
<h3>simulate</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="../army/Army.html" title="class in edu.ntnu.idatt2001.carljgu.army">Army</a></span>&nbsp;<span class="element-name">simulate</span>()</div>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="Army.html" title="class in edu.ntnu.idatt2001.carljgu.battle">Army</a></span>&nbsp;<span class="element-name">simulate</span>()</div>
<div class="block">Simulate a battle.
The attacking army is chosen at random.
One random unit from the attacking army attacks
......@@ -261,13 +261,13 @@ loadScripts(document, 'script');</script>
</section>
</li>
<li>
<section class="detail" id="attackStringRepresentation(int,edu.ntnu.idatt2001.carljgu.units.Unit,edu.ntnu.idatt2001.carljgu.units.Unit,edu.ntnu.idatt2001.carljgu.army.Army,edu.ntnu.idatt2001.carljgu.army.Army)">
<section class="detail" id="attackStringRepresentation(int,edu.ntnu.idatt2001.carljgu.battle.units.Unit,edu.ntnu.idatt2001.carljgu.battle.units.Unit,edu.ntnu.idatt2001.carljgu.battle.Army,edu.ntnu.idatt2001.carljgu.battle.Army)">
<h3>attackStringRepresentation</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span>&nbsp;<span class="element-name">attackStringRepresentation</span><wbr><span class="parameters">(int&nbsp;damageDealt,
<a href="../units/Unit.html" title="class in edu.ntnu.idatt2001.carljgu.units">Unit</a>&nbsp;attacker,
<a href="../units/Unit.html" title="class in edu.ntnu.idatt2001.carljgu.units">Unit</a>&nbsp;defender,
<a href="../army/Army.html" title="class in edu.ntnu.idatt2001.carljgu.army">Army</a>&nbsp;attackingArmy,
<a href="../army/Army.html" title="class in edu.ntnu.idatt2001.carljgu.army">Army</a>&nbsp;defendingArmy)</span></div>
<a href="units/Unit.html" title="class in edu.ntnu.idatt2001.carljgu.battle.units">Unit</a>&nbsp;attacker,
<a href="units/Unit.html" title="class in edu.ntnu.idatt2001.carljgu.battle.units">Unit</a>&nbsp;defender,
<a href="Army.html" title="class in edu.ntnu.idatt2001.carljgu.battle">Army</a>&nbsp;attackingArmy,
<a href="Army.html" title="class in edu.ntnu.idatt2001.carljgu.battle">Army</a>&nbsp;defendingArmy)</span></div>
<div class="block">Information displayed is the
name of the attacking and defending army,
unit information like name and class
......
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Thu May 19 20:48:26 CEST 2022 -->
<!-- Generated by javadoc (17) on Thu May 19 21:03:13 CEST 2022 -->
<title>SimulationAttack</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
......@@ -105,10 +105,10 @@ loadScripts(document, 'script');</script>
<div class="summary-table two-column-summary">
<div class="table-header col-first">Constructor</div>
<div class="table-header col-last">Description</div>
<div class="col-constructor-name even-row-color"><code><a href="#%3Cinit%3E(edu.ntnu.idatt2001.carljgu.army.Army,edu.ntnu.idatt2001.carljgu.units.Unit,edu.ntnu.idatt2001.carljgu.army.Army,edu.ntnu.idatt2001.carljgu.units.Unit,edu.ntnu.idatt2001.carljgu.battle.Terrain)" class="member-name-link">SimulationAttack</a><wbr>(<a href="../army/Army.html" title="class in edu.ntnu.idatt2001.carljgu.army">Army</a>&nbsp;attackingArmy,
<a href="../units/Unit.html" title="class in edu.ntnu.idatt2001.carljgu.units">Unit</a>&nbsp;attacker,
<a href="../army/Army.html" title="class in edu.ntnu.idatt2001.carljgu.army">Army</a>&nbsp;defendingArmy,
<a href="../units/Unit.html" title="class in edu.ntnu.idatt2001.carljgu.units">Unit</a>&nbsp;defender,
<div class="col-constructor-name even-row-color"><code><a href="#%3Cinit%3E(edu.ntnu.idatt2001.carljgu.battle.Army,edu.ntnu.idatt2001.carljgu.battle.units.Unit,edu.ntnu.idatt2001.carljgu.battle.Army,edu.ntnu.idatt2001.carljgu.battle.units.Unit,edu.ntnu.idatt2001.carljgu.battle.Terrain)" class="member-name-link">SimulationAttack</a><wbr>(<a href="Army.html" title="class in edu.ntnu.idatt2001.carljgu.battle">Army</a>&nbsp;attackingArmy,
<a href="units/Unit.html" title="class in edu.ntnu.idatt2001.carljgu.battle.units">Unit</a>&nbsp;attacker,
<a href="Army.html" title="class in edu.ntnu.idatt2001.carljgu.battle">Army</a>&nbsp;defendingArmy,
<a href="units/Unit.html" title="class in edu.ntnu.idatt2001.carljgu.battle.units">Unit</a>&nbsp;defender,
<a href="Terrain.html" title="enum class in edu.ntnu.idatt2001.carljgu.battle">Terrain</a>&nbsp;terrain)</code></div>
<div class="col-last even-row-color">
<div class="block"><span class="deprecated-label">Deprecated.</span></div>
......@@ -128,13 +128,13 @@ loadScripts(document, 'script');</script>
<div class="table-header col-first">Modifier and Type</div>
<div class="table-header col-second">Method</div>
<div class="table-header col-last">Description</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4 method-summary-table-tab6"><code><a href="../units/Unit.html" title="class in edu.ntnu.idatt2001.carljgu.units">Unit</a></code></div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4 method-summary-table-tab6"><code><a href="units/Unit.html" title="class in edu.ntnu.idatt2001.carljgu.battle.units">Unit</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4 method-summary-table-tab6"><code><a href="#getAttacker()" class="member-name-link">getAttacker</a>()</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4 method-summary-table-tab6">
<div class="block"><span class="deprecated-label">Deprecated.</span></div>
<div class="block">Gets the attacker.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4 method-summary-table-tab6"><code><a href="../army/Army.html" title="class in edu.ntnu.idatt2001.carljgu.army">Army</a></code></div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4 method-summary-table-tab6"><code><a href="Army.html" title="class in edu.ntnu.idatt2001.carljgu.battle">Army</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4 method-summary-table-tab6"><code><a href="#getAttackingArmy()" class="member-name-link">getAttackingArmy</a>()</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4 method-summary-table-tab6">
<div class="block"><span class="deprecated-label">Deprecated.</span></div>
......@@ -148,13 +148,13 @@ loadScripts(document, 'script');</script>
<div class="block">Gets the damage done by
the attacker to the defender.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4 method-summary-table-tab6"><code><a href="../units/Unit.html" title="class in edu.ntnu.idatt2001.carljgu.units">Unit</a></code></div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4 method-summary-table-tab6"><code><a href="units/Unit.html" title="class in edu.ntnu.idatt2001.carljgu.battle.units">Unit</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4 method-summary-table-tab6"><code><a href="#getDefender()" class="member-name-link">getDefender</a>()</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4 method-summary-table-tab6">
<div class="block"><span class="deprecated-label">Deprecated.</span></div>
<div class="block">Gets the defender.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4 method-summary-table-tab6"><code><a href="../army/Army.html" title="class in edu.ntnu.idatt2001.carljgu.army">Army</a></code></div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4 method-summary-table-tab6"><code><a href="Army.html" title="class in edu.ntnu.idatt2001.carljgu.battle">Army</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4 method-summary-table-tab6"><code><a href="#getDefendingArmy()" class="member-name-link">getDefendingArmy</a>()</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4 method-summary-table-tab6">
<div class="block"><span class="deprecated-label">Deprecated.</span></div>
......@@ -194,12 +194,12 @@ loadScripts(document, 'script');</script>
<h2>Constructor Details</h2>
<ul class="member-list">
<li>
<section class="detail" id="&lt;init&gt;(edu.ntnu.idatt2001.carljgu.army.Army,edu.ntnu.idatt2001.carljgu.units.Unit,edu.ntnu.idatt2001.carljgu.army.Army,edu.ntnu.idatt2001.carljgu.units.Unit,edu.ntnu.idatt2001.carljgu.battle.Terrain)">
<section class="detail" id="&lt;init&gt;(edu.ntnu.idatt2001.carljgu.battle.Army,edu.ntnu.idatt2001.carljgu.battle.units.Unit,edu.ntnu.idatt2001.carljgu.battle.Army,edu.ntnu.idatt2001.carljgu.battle.units.Unit,edu.ntnu.idatt2001.carljgu.battle.Terrain)">
<h3>SimulationAttack</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="element-name">SimulationAttack</span><wbr><span class="parameters">(<a href="../army/Army.html" title="class in edu.ntnu.idatt2001.carljgu.army">Army</a>&nbsp;attackingArmy,
<a href="../units/Unit.html" title="class in edu.ntnu.idatt2001.carljgu.units">Unit</a>&nbsp;attacker,
<a href="../army/Army.html" title="class in edu.ntnu.idatt2001.carljgu.army">Army</a>&nbsp;defendingArmy,
<a href="../units/Unit.html" title="class in edu.ntnu.idatt2001.carljgu.units">Unit</a>&nbsp;defender,
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="element-name">SimulationAttack</span><wbr><span class="parameters">(<a href="Army.html" title="class in edu.ntnu.idatt2001.carljgu.battle">Army</a>&nbsp;attackingArmy,
<a href="units/Unit.html" title="class in edu.ntnu.idatt2001.carljgu.battle.units">Unit</a>&nbsp;attacker,
<a href="Army.html" title="class in edu.ntnu.idatt2001.carljgu.battle">Army</a>&nbsp;defendingArmy,
<a href="units/Unit.html" title="class in edu.ntnu.idatt2001.carljgu.battle.units">Unit</a>&nbsp;defender,
<a href="Terrain.html" title="enum class in edu.ntnu.idatt2001.carljgu.battle">Terrain</a>&nbsp;terrain)</span>
throws <span class="exceptions"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a></span></div>
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span></div>
......@@ -234,7 +234,7 @@ loadScripts(document, 'script');</script>
<li>
<section class="detail" id="getAttackingArmy()">
<h3>getAttackingArmy</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="../army/Army.html" title="class in edu.ntnu.idatt2001.carljgu.army">Army</a></span>&nbsp;<span class="element-name">getAttackingArmy</span>()</div>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="Army.html" title="class in edu.ntnu.idatt2001.carljgu.battle">Army</a></span>&nbsp;<span class="element-name">getAttackingArmy</span>()</div>
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span></div>
<div class="block">Gets the attacking army with the
attacking unit.</div>
......@@ -248,7 +248,7 @@ loadScripts(document, 'script');</script>
<li>
<section class="detail" id="getAttacker()">
<h3>getAttacker</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="../units/Unit.html" title="class in edu.ntnu.idatt2001.carljgu.units">Unit</a></span>&nbsp;<span class="element-name">getAttacker</span>()</div>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="units/Unit.html" title="class in edu.ntnu.idatt2001.carljgu.battle.units">Unit</a></span>&nbsp;<span class="element-name">getAttacker</span>()</div>
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span></div>
<div class="block">Gets the attacker.</div>
<dl class="notes">
......@@ -260,7 +260,7 @@ loadScripts(document, 'script');</script>
<li>
<section class="detail" id="getDefendingArmy()">
<h3>getDefendingArmy</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="../army/Army.html" title="class in edu.ntnu.idatt2001.carljgu.army">Army</a></span>&nbsp;<span class="element-name">getDefendingArmy</span>()</div>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="Army.html" title="class in edu.ntnu.idatt2001.carljgu.battle">Army</a></span>&nbsp;<span class="element-name">getDefendingArmy</span>()</div>
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span></div>
<div class="block">Gets the defending army with the
defending unit.</div>
......@@ -274,7 +274,7 @@ loadScripts(document, 'script');</script>
<li>
<section class="detail" id="getDefender()">
<h3>getDefender</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="../units/Unit.html" title="class in edu.ntnu.idatt2001.carljgu.units">Unit</a></span>&nbsp;<span class="element-name">getDefender</span>()</div>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type"><a href="units/Unit.html" title="class in edu.ntnu.idatt2001.carljgu.battle.units">Unit</a></span>&nbsp;<span class="element-name">getDefender</span>()</div>
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span></div>
<div class="block">Gets the defender.</div>
<dl class="notes">
......
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Thu May 19 20:48:26 CEST 2022 -->
<!-- Generated by javadoc (17) on Thu May 19 21:03:13 CEST 2022 -->
<title>Terrain</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
......
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Thu May 19 20:48:26 CEST 2022 -->
<!-- Generated by javadoc (17) on Thu May 19 21:03:13 CEST 2022 -->
<title>edu.ntnu.idatt2001.carljgu.battle</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
......@@ -74,14 +74,8 @@ loadScripts(document, 'script');</script>
<div class="summary-table two-column-summary">
<div class="table-header col-first">Package</div>
<div class="table-header col-last">Description</div>
<div class="col-first even-row-color"><a href="../package-summary.html">edu.ntnu.idatt2001.carljgu</a></div>
<div class="col-first even-row-color"><a href="units/package-summary.html">edu.ntnu.idatt2001.carljgu.battle.units</a></div>
<div class="col-last even-row-color">&nbsp;</div>
<div class="col-first odd-row-color"><a href="../army/package-summary.html">edu.ntnu.idatt2001.carljgu.army</a></div>
<div class="col-last odd-row-color">&nbsp;</div>
<div class="col-first even-row-color"><a href="../client/package-summary.html">edu.ntnu.idatt2001.carljgu.client</a></div>
<div class="col-last even-row-color">&nbsp;</div>
<div class="col-first odd-row-color"><a href="../units/package-summary.html">edu.ntnu.idatt2001.carljgu.units</a></div>
<div class="col-last odd-row-color">&nbsp;</div>
</div>
</div>
</li>
......@@ -92,16 +86,20 @@ loadScripts(document, 'script');</script>
<div class="summary-table two-column-summary" aria-labelledby="class-summary-tab0">
<div class="table-header col-first">Class</div>
<div class="table-header col-last">Description</div>
<div class="col-first even-row-color class-summary class-summary-tab2"><a href="Battle.html" title="class in edu.ntnu.idatt2001.carljgu.battle">Battle</a></div>
<div class="col-first even-row-color class-summary class-summary-tab2"><a href="Army.html" title="class in edu.ntnu.idatt2001.carljgu.battle">Army</a></div>
<div class="col-last even-row-color class-summary class-summary-tab2">
<div class="block">public class Army.</div>
</div>
<div class="col-first odd-row-color class-summary class-summary-tab2"><a href="Battle.html" title="class in edu.ntnu.idatt2001.carljgu.battle">Battle</a></div>
<div class="col-last odd-row-color class-summary class-summary-tab2">
<div class="block">Class Battle that simulates a battle between two armies.</div>
</div>
<div class="col-first odd-row-color class-summary class-summary-tab2"><a href="SimulationAttack.html" title="class in edu.ntnu.idatt2001.carljgu.battle">SimulationAttack</a></div>
<div class="col-last odd-row-color class-summary class-summary-tab2">Deprecated.
<div class="col-first even-row-color class-summary class-summary-tab2"><a href="SimulationAttack.html" title="class in edu.ntnu.idatt2001.carljgu.battle">SimulationAttack</a></div>
<div class="col-last even-row-color class-summary class-summary-tab2">Deprecated.
<div class="deprecation-comment">Provided no extra functionality and made the program harder to read.</div>
</div>
<div class="col-first even-row-color class-summary class-summary-tab3"><a href="Terrain.html" title="enum class in edu.ntnu.idatt2001.carljgu.battle">Terrain</a></div>
<div class="col-last even-row-color class-summary class-summary-tab3">
<div class="col-first odd-row-color class-summary class-summary-tab3"><a href="Terrain.html" title="enum class in edu.ntnu.idatt2001.carljgu.battle">Terrain</a></div>
<div class="col-last odd-row-color class-summary class-summary-tab3">
<div class="block">An enum that represents the different terrains
that the battles can occur on.</div>
</div>
......
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Thu May 19 20:48:26 CEST 2022 -->
<!-- Generated by javadoc (17) on Thu May 19 21:03:13 CEST 2022 -->
<title>edu.ntnu.idatt2001.carljgu.battle Class Hierarchy</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
......@@ -60,6 +60,7 @@ loadScripts(document, 'script');</script>
<ul>
<li class="circle">java.lang.<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" class="type-name-link external-link" title="class or interface in java.lang">Object</a>
<ul>
<li class="circle">edu.ntnu.idatt2001.carljgu.battle.<a href="Army.html" class="type-name-link" title="class in edu.ntnu.idatt2001.carljgu.battle">Army</a></li>
<li class="circle">edu.ntnu.idatt2001.carljgu.battle.<a href="Battle.html" class="type-name-link" title="class in edu.ntnu.idatt2001.carljgu.battle">Battle</a></li>
<li class="circle">edu.ntnu.idatt2001.carljgu.battle.<a href="SimulationAttack.html" class="type-name-link" title="class in edu.ntnu.idatt2001.carljgu.battle">SimulationAttack</a></li>
</ul>
......
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) on Thu May 19 21:03:13 CEST 2022 -->
<title>UnitFactory</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2022-05-19">
<meta name="description" content="declaration: module: edu.ntnu.idatt2001.carljgu.client, package: edu.ntnu.idatt2001.carljgu.battle.units, class: UnitFactory">
<meta name="generator" content="javadoc/ClassWriterImpl">
<link rel="stylesheet" type="text/css" href="../../../../../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../../../../script-dir/jquery-ui.min.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../../../../jquery-ui.overrides.css" title="Style">
<script type="text/javascript" src="../../../../../../../script.js"></script>
<script type="text/javascript" src="../../../../../../../script-dir/jquery-3.5.1.min.js"></script>
<script type="text/javascript" src="../../../../../../../script-dir/jquery-ui.min.js"></script>
</head>
<body class="class-declaration-page">
<script type="text/javascript">var evenRowColor = "even-row-color";
var oddRowColor = "odd-row-color";
var tableTab = "table-tab";
var activeTableTab = "active-table-tab";
var pathtoroot = "../../../../../../../";
loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<div class="flex-box">
<header role="banner" class="flex-header">
<nav role="navigation">
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="top-nav" id="navbar-top">
<div class="skip-nav"><a href="#skip-navbar-top" title="Skip navigation links">Skip navigation links</a></div>
<ul id="navbar-top-firstrow" class="nav-list" title="Navigation">
<li><a href="../../../../../../module-summary.html">Module</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="nav-bar-cell1-rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../../index-files/index-1.html">Index</a></li>
<li><a href="../../../../../../../help-doc.html#class">Help</a></li>
</ul>
</div>
<div class="sub-nav">
<div>
<ul class="sub-nav-list">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor-summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method-summary">Method</a></li>
</ul>
<ul class="sub-nav-list">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor-detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method-detail">Method</a></li>
</ul>
</div>
<div class="nav-list-search"><label for="search-input">SEARCH:</label>
<input type="text" id="search-input" value="search" disabled="disabled">
<input type="reset" id="reset-button" value="reset" disabled="disabled">
</div>
</div>
<!-- ========= END OF TOP NAVBAR ========= -->