Moved everything into logic classes
This commit is contained in:
405
.idea/workspace.xml
generated
405
.idea/workspace.xml
generated
@@ -3,7 +3,28 @@
|
|||||||
<component name="ChangeListManager">
|
<component name="ChangeListManager">
|
||||||
<list default="true" id="3114a2b9-4919-4fdf-8fd9-d03b60109ce4" name="Default Changelist" comment="Fixed a bunch of errors where">
|
<list default="true" id="3114a2b9-4919-4fdf-8fd9-d03b60109ce4" name="Default Changelist" comment="Fixed a bunch of errors where">
|
||||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/src/saves/playerSave.txt" beforeDir="false" afterPath="$PROJECT_DIR$/src/saves/playerSave.txt" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/src/BankGUI.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/gui/BankGUI.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/BankText.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/text/BankText.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/FileSaving.java" beforeDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/FileSaving.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/logic/FileSaving.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/GameEndGUI.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/gui/GameEndGUI.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/LoanSharkGUI.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/gui/LoanSharkGUI.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/MainGUI.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/gui/MainGUI.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/Player.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/logic/Player.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/PlayerTest.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/tests/PlayerTest.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/RandomEventGUI.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/gui/RandomEventGUI.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/ShipWarfareGUI.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/gui/ShipWarfareGUI.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/ShipWarfareLogic.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/logic/ShipWarfareLogic.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/ShipWarfareText.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/text/ShipWarfareText.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/StartGUI.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/gui/StartGUI.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/TaipanShopGUI.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/gui/TaipanShopGUI.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/TaipanShopLogic.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/logic/TaipanShopLogic.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/TaipanShopText.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/text/TaipanShopText.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/TravelGUI.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/gui/TravelGUI.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/TravelText.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/text/TravelText.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/WarehouseGUI.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/gui/WarehouseGUI.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/WarehouseText.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/text/WarehouseText.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/loanSharkText.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/text/loanSharkText.java" afterDir="false" />
|
||||||
</list>
|
</list>
|
||||||
<option name="SHOW_DIALOG" value="false" />
|
<option name="SHOW_DIALOG" value="false" />
|
||||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||||
@@ -13,34 +34,21 @@
|
|||||||
<component name="FileEditorManager">
|
<component name="FileEditorManager">
|
||||||
<leaf>
|
<leaf>
|
||||||
<file pinned="false" current-in-tab="false">
|
<file pinned="false" current-in-tab="false">
|
||||||
<entry file="file://$PROJECT_DIR$/src/ShipWarfareLogic.java">
|
<entry file="file://$PROJECT_DIR$/src/gui/ShipWarfareGUI.java">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state relative-caret-position="153">
|
<state relative-caret-position="357">
|
||||||
<caret line="9" column="13" selection-start-line="9" selection-start-column="13" selection-end-line="9" selection-end-column="13" />
|
<caret line="21" column="53" selection-start-line="21" selection-start-column="53" selection-end-line="21" selection-end-column="53" />
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
</file>
|
</file>
|
||||||
<file pinned="false" current-in-tab="false">
|
<file pinned="false" current-in-tab="false">
|
||||||
<entry file="file://$PROJECT_DIR$/src/ShipWarfareGUI.java">
|
<entry file="file://$PROJECT_DIR$/src/gui/TravelGUI.java">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state relative-caret-position="425">
|
<state relative-caret-position="969">
|
||||||
<caret line="70" column="26" selection-start-line="70" selection-start-column="26" selection-end-line="70" selection-end-column="26" />
|
<caret line="83" column="56" lean-forward="true" selection-start-line="83" selection-start-column="56" selection-end-line="83" selection-end-column="56" />
|
||||||
<folding>
|
<folding>
|
||||||
<element signature="imports" expanded="true" />
|
<element signature="imports" expanded="true" />
|
||||||
</folding>
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
</file>
|
|
||||||
<file pinned="false" current-in-tab="false">
|
|
||||||
<entry file="file://$PROJECT_DIR$/src/TravelGUI.java">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="624">
|
|
||||||
<caret line="104" column="17" lean-forward="true" selection-start-line="104" selection-start-column="17" selection-end-line="104" selection-end-column="17" />
|
|
||||||
<folding>
|
|
||||||
<element signature="n#!!doc" expanded="true" />
|
|
||||||
<element signature="imports" expanded="true" />
|
|
||||||
<element signature="method#shipStatusString#0;class#TravelGUI#0" />
|
<element signature="method#shipStatusString#0;class#TravelGUI#0" />
|
||||||
</folding>
|
</folding>
|
||||||
</state>
|
</state>
|
||||||
@@ -48,43 +56,79 @@
|
|||||||
</entry>
|
</entry>
|
||||||
</file>
|
</file>
|
||||||
<file pinned="false" current-in-tab="false">
|
<file pinned="false" current-in-tab="false">
|
||||||
<entry file="file://$PROJECT_DIR$/src/TaipanShopGUI.java">
|
<entry file="file://$PROJECT_DIR$/src/text/BankText.java">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state relative-caret-position="7175">
|
<state relative-caret-position="68">
|
||||||
<caret line="720" lean-forward="true" selection-start-line="720" selection-end-line="720" />
|
<caret line="4" column="32" selection-start-line="4" selection-start-column="32" selection-end-line="4" selection-end-column="32" />
|
||||||
<folding>
|
|
||||||
<element signature="n#!!doc" expanded="true" />
|
|
||||||
</folding>
|
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
</file>
|
</file>
|
||||||
<file pinned="false" current-in-tab="false">
|
<file pinned="false" current-in-tab="false">
|
||||||
<entry file="file://$PROJECT_DIR$/src/TaipanShopLogic.java">
|
<entry file="file://$PROJECT_DIR$/src/text/loanSharkText.java">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state relative-caret-position="391">
|
<state relative-caret-position="68">
|
||||||
<caret line="23" column="56" selection-start-line="23" selection-start-column="56" selection-end-line="23" selection-end-column="56" />
|
<caret line="4" column="38" lean-forward="true" selection-start-line="4" selection-start-column="38" selection-end-line="4" selection-end-column="38" />
|
||||||
<folding>
|
|
||||||
<element signature="n#!!doc" expanded="true" />
|
|
||||||
</folding>
|
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
</file>
|
</file>
|
||||||
<file pinned="false" current-in-tab="false">
|
<file pinned="false" current-in-tab="false">
|
||||||
<entry file="file://$PROJECT_DIR$/src/TravelText.java">
|
<entry file="file://$PROJECT_DIR$/src/text/ShipWarfareText.java">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state relative-caret-position="153">
|
<state relative-caret-position="238">
|
||||||
<caret line="9" lean-forward="true" selection-start-line="9" selection-end-line="9" />
|
<caret line="19" column="13" selection-start-line="19" selection-start-column="13" selection-end-line="19" selection-end-column="13" />
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
</file>
|
</file>
|
||||||
<file pinned="false" current-in-tab="true">
|
<file pinned="false" current-in-tab="true">
|
||||||
<entry file="file://$PROJECT_DIR$/src/ShipWarfareText.java">
|
<entry file="file://$PROJECT_DIR$/src/text/TaipanShopText.java">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state relative-caret-position="544">
|
<state relative-caret-position="595">
|
||||||
<caret line="63" lean-forward="true" selection-start-line="63" selection-end-line="63" />
|
<caret line="35" column="25" lean-forward="true" selection-start-line="35" selection-start-column="25" selection-end-line="35" selection-end-column="25" />
|
||||||
|
<folding>
|
||||||
|
<element signature="imports" expanded="true" />
|
||||||
|
</folding>
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
</file>
|
||||||
|
<file pinned="false" current-in-tab="false">
|
||||||
|
<entry file="file://$PROJECT_DIR$/src/text/WarehouseText.java">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="68">
|
||||||
|
<caret line="4" column="38" lean-forward="true" selection-start-line="4" selection-start-column="38" selection-end-line="4" selection-end-column="38" />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
</file>
|
||||||
|
<file pinned="false" current-in-tab="false">
|
||||||
|
<entry file="file://$PROJECT_DIR$/src/gui/StartGUI.java">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="3808">
|
||||||
|
<caret line="224" column="26" selection-start-line="224" selection-start-column="26" selection-end-line="224" selection-end-column="26" />
|
||||||
|
<folding>
|
||||||
|
<element signature="imports" expanded="true" />
|
||||||
|
</folding>
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
</file>
|
||||||
|
<file pinned="false" current-in-tab="false">
|
||||||
|
<entry file="file://$PROJECT_DIR$/src/gui/TaipanShopGUI.java">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="527">
|
||||||
|
<caret line="244" column="16" selection-start-line="244" selection-start-column="16" selection-end-line="244" selection-end-column="16" />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
</file>
|
||||||
|
<file pinned="false" current-in-tab="false">
|
||||||
|
<entry file="file://$PROJECT_DIR$/src/gui/RandomEventGUI.java">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="187">
|
||||||
|
<caret line="20" column="40" lean-forward="true" selection-start-line="20" selection-start-column="40" selection-end-line="20" selection-end-column="40" />
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
@@ -107,7 +151,9 @@
|
|||||||
<find>stage</find>
|
<find>stage</find>
|
||||||
<find>defaultTextOut</find>
|
<find>defaultTextOut</find>
|
||||||
<find>player</find>
|
<find>player</find>
|
||||||
|
<find>printLn</find>
|
||||||
<find>WarehouseText</find>
|
<find>WarehouseText</find>
|
||||||
|
<find>Sha</find>
|
||||||
</findStrings>
|
</findStrings>
|
||||||
<replaceStrings>
|
<replaceStrings>
|
||||||
<replace>player</replace>
|
<replace>player</replace>
|
||||||
@@ -126,16 +172,31 @@
|
|||||||
<component name="IdeDocumentHistory">
|
<component name="IdeDocumentHistory">
|
||||||
<option name="CHANGED_PATHS">
|
<option name="CHANGED_PATHS">
|
||||||
<list>
|
<list>
|
||||||
<option value="$PROJECT_DIR$/src/TravelText.java" />
|
|
||||||
<option value="$PROJECT_DIR$/src/WarehouseText.java" />
|
<option value="$PROJECT_DIR$/src/WarehouseText.java" />
|
||||||
<option value="$PROJECT_DIR$/src/BankText.java" />
|
<option value="$PROJECT_DIR$/src/BankText.java" />
|
||||||
<option value="$PROJECT_DIR$/src/loanSharkText.java" />
|
<option value="$PROJECT_DIR$/src/loanSharkText.java" />
|
||||||
<option value="$PROJECT_DIR$/src/text/BankText.java" />
|
|
||||||
<option value="$PROJECT_DIR$/src/TaipanShopText.java" />
|
|
||||||
<option value="$PROJECT_DIR$/src/TaipanShopGUI.java" />
|
<option value="$PROJECT_DIR$/src/TaipanShopGUI.java" />
|
||||||
<option value="$PROJECT_DIR$/src/ShipWarfareGUI.java" />
|
<option value="$PROJECT_DIR$/src/ShipWarfareGUI.java" />
|
||||||
<option value="$PROJECT_DIR$/src/ShipWarfareText.java" />
|
|
||||||
<option value="$PROJECT_DIR$/src/TravelGUI.java" />
|
<option value="$PROJECT_DIR$/src/TravelGUI.java" />
|
||||||
|
<option value="$PROJECT_DIR$/src/TravelText.java" />
|
||||||
|
<option value="$PROJECT_DIR$/src/TaipanShopText.java" />
|
||||||
|
<option value="$PROJECT_DIR$/src/ShipWarfareText.java" />
|
||||||
|
<option value="$PROJECT_DIR$/src/text/TravelText.java" />
|
||||||
|
<option value="$PROJECT_DIR$/src/tests/PlayerTest.java" />
|
||||||
|
<option value="$PROJECT_DIR$/src/gui/BankGUI.java" />
|
||||||
|
<option value="$PROJECT_DIR$/src/gui/GameEndGUI.java" />
|
||||||
|
<option value="$PROJECT_DIR$/src/gui/TravelGUI.java" />
|
||||||
|
<option value="$PROJECT_DIR$/src/gui/WarehouseGUI.java" />
|
||||||
|
<option value="$PROJECT_DIR$/src/gui/LoanSharkGUI.java" />
|
||||||
|
<option value="$PROJECT_DIR$/src/gui/RandomEventGUI.java" />
|
||||||
|
<option value="$PROJECT_DIR$/src/gui/StartGUI.java" />
|
||||||
|
<option value="$PROJECT_DIR$/src/gui/TaipanShopGUI.java" />
|
||||||
|
<option value="$PROJECT_DIR$/src/gui/ShipWarfareGUI.java" />
|
||||||
|
<option value="$PROJECT_DIR$/src/text/BankText.java" />
|
||||||
|
<option value="$PROJECT_DIR$/src/text/loanSharkText.java" />
|
||||||
|
<option value="$PROJECT_DIR$/src/text/ShipWarfareText.java" />
|
||||||
|
<option value="$PROJECT_DIR$/src/text/WarehouseText.java" />
|
||||||
|
<option value="$PROJECT_DIR$/src/text/TaipanShopText.java" />
|
||||||
</list>
|
</list>
|
||||||
</option>
|
</option>
|
||||||
</component>
|
</component>
|
||||||
@@ -164,6 +225,42 @@
|
|||||||
<item name="TaipanClone2" type="462c0819:PsiDirectoryNode" />
|
<item name="TaipanClone2" type="462c0819:PsiDirectoryNode" />
|
||||||
<item name="src" type="462c0819:PsiDirectoryNode" />
|
<item name="src" type="462c0819:PsiDirectoryNode" />
|
||||||
</path>
|
</path>
|
||||||
|
<path>
|
||||||
|
<item name="TaipanClone2" type="b2602c69:ProjectViewProjectNode" />
|
||||||
|
<item name="TaipanClone2" type="462c0819:PsiDirectoryNode" />
|
||||||
|
<item name="src" type="462c0819:PsiDirectoryNode" />
|
||||||
|
<item name="gui" type="462c0819:PsiDirectoryNode" />
|
||||||
|
</path>
|
||||||
|
<path>
|
||||||
|
<item name="TaipanClone2" type="b2602c69:ProjectViewProjectNode" />
|
||||||
|
<item name="TaipanClone2" type="462c0819:PsiDirectoryNode" />
|
||||||
|
<item name="src" type="462c0819:PsiDirectoryNode" />
|
||||||
|
<item name="images" type="462c0819:PsiDirectoryNode" />
|
||||||
|
</path>
|
||||||
|
<path>
|
||||||
|
<item name="TaipanClone2" type="b2602c69:ProjectViewProjectNode" />
|
||||||
|
<item name="TaipanClone2" type="462c0819:PsiDirectoryNode" />
|
||||||
|
<item name="src" type="462c0819:PsiDirectoryNode" />
|
||||||
|
<item name="logic" type="462c0819:PsiDirectoryNode" />
|
||||||
|
</path>
|
||||||
|
<path>
|
||||||
|
<item name="TaipanClone2" type="b2602c69:ProjectViewProjectNode" />
|
||||||
|
<item name="TaipanClone2" type="462c0819:PsiDirectoryNode" />
|
||||||
|
<item name="src" type="462c0819:PsiDirectoryNode" />
|
||||||
|
<item name="saves" type="462c0819:PsiDirectoryNode" />
|
||||||
|
</path>
|
||||||
|
<path>
|
||||||
|
<item name="TaipanClone2" type="b2602c69:ProjectViewProjectNode" />
|
||||||
|
<item name="TaipanClone2" type="462c0819:PsiDirectoryNode" />
|
||||||
|
<item name="src" type="462c0819:PsiDirectoryNode" />
|
||||||
|
<item name="tests" type="462c0819:PsiDirectoryNode" />
|
||||||
|
</path>
|
||||||
|
<path>
|
||||||
|
<item name="TaipanClone2" type="b2602c69:ProjectViewProjectNode" />
|
||||||
|
<item name="TaipanClone2" type="462c0819:PsiDirectoryNode" />
|
||||||
|
<item name="src" type="462c0819:PsiDirectoryNode" />
|
||||||
|
<item name="text" type="462c0819:PsiDirectoryNode" />
|
||||||
|
</path>
|
||||||
</expand>
|
</expand>
|
||||||
<select />
|
<select />
|
||||||
</subPane>
|
</subPane>
|
||||||
@@ -172,7 +269,7 @@
|
|||||||
</panes>
|
</panes>
|
||||||
</component>
|
</component>
|
||||||
<component name="PropertiesComponent">
|
<component name="PropertiesComponent">
|
||||||
<property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1554663465257" />
|
<property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1554669400857" />
|
||||||
<property name="extract.method.default.visibility" value="private" />
|
<property name="extract.method.default.visibility" value="private" />
|
||||||
<property name="last_opened_file_path" value="$PROJECT_DIR$/src/junit-4.12.jar!/" />
|
<property name="last_opened_file_path" value="$PROJECT_DIR$/src/junit-4.12.jar!/" />
|
||||||
<property name="nodejs_package_manager_path" value="npm" />
|
<property name="nodejs_package_manager_path" value="npm" />
|
||||||
@@ -199,21 +296,21 @@
|
|||||||
</component>
|
</component>
|
||||||
<component name="RunManager" selected="Application.MainGUI">
|
<component name="RunManager" selected="Application.MainGUI">
|
||||||
<configuration name="MainGUI" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
|
<configuration name="MainGUI" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
|
||||||
<option name="MAIN_CLASS_NAME" value="MainGUI" />
|
<option name="MAIN_CLASS_NAME" value="gui.MainGUI" />
|
||||||
<module name="TaipanClone" />
|
<module name="TaipanClone" />
|
||||||
<method v="2">
|
<method v="2">
|
||||||
<option name="Make" enabled="true" />
|
<option name="Make" enabled="true" />
|
||||||
</method>
|
</method>
|
||||||
</configuration>
|
</configuration>
|
||||||
<configuration name="ShipWarfareGUI" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
|
<configuration name="ShipWarfareGUI" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
|
||||||
<option name="MAIN_CLASS_NAME" value="ShipWarfareGUI" />
|
<option name="MAIN_CLASS_NAME" value="gui.ShipWarfareGUI" />
|
||||||
<module name="TaipanClone" />
|
<module name="TaipanClone" />
|
||||||
<method v="2">
|
<method v="2">
|
||||||
<option name="Make" enabled="true" />
|
<option name="Make" enabled="true" />
|
||||||
</method>
|
</method>
|
||||||
</configuration>
|
</configuration>
|
||||||
<configuration name="ShipWarfareText" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
|
<configuration name="ShipWarfareText" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
|
||||||
<option name="MAIN_CLASS_NAME" value="ShipWarfareText" />
|
<option name="MAIN_CLASS_NAME" value="text.ShipWarfareText" />
|
||||||
<module name="TaipanClone" />
|
<module name="TaipanClone" />
|
||||||
<method v="2">
|
<method v="2">
|
||||||
<option name="Make" enabled="true" />
|
<option name="Make" enabled="true" />
|
||||||
@@ -242,8 +339,8 @@
|
|||||||
</list>
|
</list>
|
||||||
<recent_temporary>
|
<recent_temporary>
|
||||||
<list>
|
<list>
|
||||||
<item itemvalue="Application.MainGUI" />
|
|
||||||
<item itemvalue="Application.ShipWarfareText" />
|
<item itemvalue="Application.ShipWarfareText" />
|
||||||
|
<item itemvalue="Application.MainGUI" />
|
||||||
<item itemvalue="Application.ShipWarfareGUI" />
|
<item itemvalue="Application.ShipWarfareGUI" />
|
||||||
<item itemvalue="Application.main" />
|
<item itemvalue="Application.main" />
|
||||||
<item itemvalue="Application.TaipanShop" />
|
<item itemvalue="Application.TaipanShop" />
|
||||||
@@ -320,12 +417,12 @@
|
|||||||
<option name="project" value="LOCAL" />
|
<option name="project" value="LOCAL" />
|
||||||
<updated>1554663152314</updated>
|
<updated>1554663152314</updated>
|
||||||
</task>
|
</task>
|
||||||
<task id="LOCAL-00004" summary="Created Player class">
|
<task id="LOCAL-00004" summary="Fixed the severe lack of TaipanShopText">
|
||||||
<created>1550541406597</created>
|
<created>1554663541186</created>
|
||||||
<option name="number" value="00004" />
|
<option name="number" value="00004" />
|
||||||
<option name="presentableId" value="LOCAL-00004" />
|
<option name="presentableId" value="LOCAL-00004" />
|
||||||
<option name="project" value="LOCAL" />
|
<option name="project" value="LOCAL" />
|
||||||
<updated>1550541406597</updated>
|
<updated>1554663541186</updated>
|
||||||
</task>
|
</task>
|
||||||
<task id="LOCAL-00005" summary="Fixed the setters to be greater than 0">
|
<task id="LOCAL-00005" summary="Fixed the setters to be greater than 0">
|
||||||
<created>1550541751914</created>
|
<created>1550541751914</created>
|
||||||
@@ -642,11 +739,11 @@
|
|||||||
<option name="project" value="LOCAL" />
|
<option name="project" value="LOCAL" />
|
||||||
<updated>1553494120570</updated>
|
<updated>1553494120570</updated>
|
||||||
</task>
|
</task>
|
||||||
<option name="localTasksCounter" value="4" />
|
<option name="localTasksCounter" value="5" />
|
||||||
<servers />
|
<servers />
|
||||||
</component>
|
</component>
|
||||||
<component name="TimeTrackingManager">
|
<component name="TimeTrackingManager">
|
||||||
<option name="totallyTimeSpent" value="8326000" />
|
<option name="totallyTimeSpent" value="12883000" />
|
||||||
</component>
|
</component>
|
||||||
<component name="TodoView">
|
<component name="TodoView">
|
||||||
<todo-panel id="selected-file">
|
<todo-panel id="selected-file">
|
||||||
@@ -682,7 +779,7 @@
|
|||||||
<window_info anchor="bottom" id="Database Changes" order="11" />
|
<window_info anchor="bottom" id="Database Changes" order="11" />
|
||||||
<window_info anchor="bottom" id="Terminal" order="12" weight="0.32922733" />
|
<window_info anchor="bottom" id="Terminal" order="12" weight="0.32922733" />
|
||||||
<window_info anchor="bottom" id="Event Log" order="13" sideWeight="0.50125945" side_tool="true" weight="0.37058824" />
|
<window_info anchor="bottom" id="Event Log" order="13" sideWeight="0.50125945" side_tool="true" weight="0.37058824" />
|
||||||
<window_info anchor="bottom" id="Messages" order="14" sideWeight="0.49938875" weight="0.18141097" />
|
<window_info active="true" anchor="bottom" id="Messages" order="14" sideWeight="0.49938875" visible="true" weight="0.18141097" />
|
||||||
<window_info anchor="bottom" id="Duplicate detector" order="15" weight="0.32922733" />
|
<window_info anchor="bottom" id="Duplicate detector" order="15" weight="0.32922733" />
|
||||||
<window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
|
<window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
|
||||||
<window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
|
<window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
|
||||||
@@ -773,7 +870,6 @@
|
|||||||
<ignored-roots>
|
<ignored-roots>
|
||||||
<path value="$PROJECT_DIR$" />
|
<path value="$PROJECT_DIR$" />
|
||||||
</ignored-roots>
|
</ignored-roots>
|
||||||
<MESSAGE value="Fined minor bugs in shipwarfareGUI including the "gun frustration" variable" />
|
|
||||||
<MESSAGE value="Just checking" />
|
<MESSAGE value="Just checking" />
|
||||||
<MESSAGE value="A lot of errors but easily fixable SHipwarfareGUI" />
|
<MESSAGE value="A lot of errors but easily fixable SHipwarfareGUI" />
|
||||||
<MESSAGE value="Completed SHipWarfareGUI" />
|
<MESSAGE value="Completed SHipWarfareGUI" />
|
||||||
@@ -798,34 +894,18 @@
|
|||||||
<MESSAGE value="Fixed duplication between Shop and Travel" />
|
<MESSAGE value="Fixed duplication between Shop and Travel" />
|
||||||
<MESSAGE value="Updated shipwarfare text to the modern era" />
|
<MESSAGE value="Updated shipwarfare text to the modern era" />
|
||||||
<MESSAGE value="Finished the merger with Dedupe and the main branch. Travel and Taipan shop shouldn't have any code sharing anymore" />
|
<MESSAGE value="Finished the merger with Dedupe and the main branch. Travel and Taipan shop shouldn't have any code sharing anymore" />
|
||||||
<option name="LAST_COMMIT_MESSAGE" value="Finished the merger with Dedupe and the main branch. Travel and Taipan shop shouldn't have any code sharing anymore" />
|
<MESSAGE value="Fixed the severe lack of TaipanShopText" />
|
||||||
|
<option name="LAST_COMMIT_MESSAGE" value="Fixed the severe lack of TaipanShopText" />
|
||||||
</component>
|
</component>
|
||||||
<component name="editorHistoryManager">
|
<component name="editorHistoryManager">
|
||||||
<entry file="file://$PROJECT_DIR$/src/FileSaving.java">
|
<entry file="file://$PROJECT_DIR$/src/logic/FileSaving.java">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state relative-caret-position="-34">
|
<state relative-caret-position="-34">
|
||||||
<caret line="3" column="12" selection-start-line="3" selection-start-column="12" selection-end-line="3" selection-end-column="12" />
|
<caret line="3" column="12" selection-start-line="3" selection-start-column="12" selection-end-line="3" selection-end-column="12" />
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/src/PlayerTest.java">
|
<entry file="file://$PROJECT_DIR$/src/gui/MainGUI.java">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="320">
|
|
||||||
<caret line="23" column="14" selection-start-line="23" selection-start-column="14" selection-end-line="23" selection-end-column="14" />
|
|
||||||
<folding>
|
|
||||||
<element signature="imports" expanded="true" />
|
|
||||||
</folding>
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/src/WarehouseText.java">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="51">
|
|
||||||
<caret line="3" column="31" selection-start-line="3" selection-start-column="31" selection-end-line="3" selection-end-column="31" />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/src/MainGUI.java">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state relative-caret-position="204">
|
<state relative-caret-position="204">
|
||||||
<caret line="13" column="14" selection-start-line="13" selection-start-column="14" selection-end-line="13" selection-end-column="14" />
|
<caret line="13" column="14" selection-start-line="13" selection-start-column="14" selection-end-line="13" selection-end-column="14" />
|
||||||
@@ -835,83 +915,162 @@
|
|||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/src/BankText.java">
|
|
||||||
<provider selected="true" editor-type-id="text-editor" />
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/src/loanSharkText.java">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="119">
|
|
||||||
<caret line="7" column="5" lean-forward="true" selection-start-line="7" selection-start-column="5" selection-end-line="7" selection-end-column="5" />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/src/styleguide.css">
|
<entry file="file://$PROJECT_DIR$/src/styleguide.css">
|
||||||
<provider selected="true" editor-type-id="text-editor" />
|
<provider selected="true" editor-type-id="text-editor" />
|
||||||
</entry>
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/src/TaipanShopText.java" />
|
<entry file="file://$PROJECT_DIR$/src/logic/ShipWarfareLogic.java">
|
||||||
<entry file="file://$PROJECT_DIR$/src/ShipWarfareLogic.java">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state relative-caret-position="153">
|
<state relative-caret-position="187">
|
||||||
<caret line="9" column="13" selection-start-line="9" selection-start-column="13" selection-end-line="9" selection-end-column="13" />
|
<caret line="11" column="13" selection-start-line="11" selection-start-column="13" selection-end-line="11" selection-end-column="13" />
|
||||||
|
<folding>
|
||||||
|
<element signature="e#1218#1219#0" expanded="true" />
|
||||||
|
<element signature="e#1251#1252#0" expanded="true" />
|
||||||
|
</folding>
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/src/ShipWarfareGUI.java">
|
<entry file="file://$PROJECT_DIR$/src/logic/TaipanShopLogic.java">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state relative-caret-position="425">
|
<state relative-caret-position="391">
|
||||||
<caret line="70" column="26" selection-start-line="70" selection-start-column="26" selection-end-line="70" selection-end-column="26" />
|
<caret line="23" column="56" selection-start-line="23" selection-start-column="56" selection-end-line="23" selection-end-column="56" />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/src/text/TravelText.java">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="17">
|
||||||
|
<caret line="1" column="19" selection-start-line="1" selection-start-column="19" selection-end-line="1" selection-end-column="19" />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/src/logic/Player.java">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="153">
|
||||||
|
<caret line="11" column="13" selection-start-line="11" selection-start-column="13" selection-end-line="11" selection-end-column="13" />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/src/tests/PlayerTest.java">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="408">
|
||||||
|
<caret line="25" column="29" selection-start-line="25" selection-start-column="29" selection-end-line="25" selection-end-column="29" />
|
||||||
<folding>
|
<folding>
|
||||||
<element signature="imports" expanded="true" />
|
<element signature="imports" expanded="true" />
|
||||||
</folding>
|
</folding>
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/src/TravelGUI.java">
|
<entry file="file://$PROJECT_DIR$/src/gui/BankGUI.java">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state relative-caret-position="624">
|
<state relative-caret-position="357">
|
||||||
<caret line="104" column="17" lean-forward="true" selection-start-line="104" selection-start-column="17" selection-end-line="104" selection-end-column="17" />
|
<caret line="156" column="61" selection-start-line="156" selection-start-column="61" selection-end-line="156" selection-end-column="61" />
|
||||||
|
<folding>
|
||||||
|
<element signature="imports" expanded="true" />
|
||||||
|
</folding>
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/src/gui/WarehouseGUI.java">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="170">
|
||||||
|
<caret line="18" column="37" selection-start-line="18" selection-start-column="37" selection-end-line="18" selection-end-column="37" />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/src/gui/GameEndGUI.java">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="170">
|
||||||
|
<caret line="17" column="35" selection-start-line="17" selection-start-column="35" selection-end-line="17" selection-end-column="35" />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/src/gui/LoanSharkGUI.java">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="170">
|
||||||
|
<caret line="22" column="38" lean-forward="true" selection-start-line="22" selection-start-column="38" selection-end-line="22" selection-end-column="38" />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/src/gui/RandomEventGUI.java">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="187">
|
||||||
|
<caret line="20" column="40" lean-forward="true" selection-start-line="20" selection-start-column="40" selection-end-line="20" selection-end-column="40" />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/src/gui/StartGUI.java">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="3808">
|
||||||
|
<caret line="224" column="26" selection-start-line="224" selection-start-column="26" selection-end-line="224" selection-end-column="26" />
|
||||||
|
<folding>
|
||||||
|
<element signature="imports" expanded="true" />
|
||||||
|
</folding>
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/src/gui/TaipanShopGUI.java">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="527">
|
||||||
|
<caret line="244" column="16" selection-start-line="244" selection-start-column="16" selection-end-line="244" selection-end-column="16" />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/src/gui/ShipWarfareGUI.java">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="357">
|
||||||
|
<caret line="21" column="53" selection-start-line="21" selection-start-column="53" selection-end-line="21" selection-end-column="53" />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/src/gui/TravelGUI.java">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="969">
|
||||||
|
<caret line="83" column="56" lean-forward="true" selection-start-line="83" selection-start-column="56" selection-end-line="83" selection-end-column="56" />
|
||||||
<folding>
|
<folding>
|
||||||
<element signature="n#!!doc" expanded="true" />
|
|
||||||
<element signature="imports" expanded="true" />
|
<element signature="imports" expanded="true" />
|
||||||
<element signature="method#shipStatusString#0;class#TravelGUI#0" />
|
<element signature="method#shipStatusString#0;class#TravelGUI#0" />
|
||||||
</folding>
|
</folding>
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/src/TaipanShopGUI.java">
|
<entry file="file://$PROJECT_DIR$/src/text/BankText.java">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state relative-caret-position="7175">
|
<state relative-caret-position="68">
|
||||||
<caret line="720" lean-forward="true" selection-start-line="720" selection-end-line="720" />
|
<caret line="4" column="32" selection-start-line="4" selection-start-column="32" selection-end-line="4" selection-end-column="32" />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/src/text/loanSharkText.java">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="68">
|
||||||
|
<caret line="4" column="38" lean-forward="true" selection-start-line="4" selection-start-column="38" selection-end-line="4" selection-end-column="38" />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/src/text/ShipWarfareText.java">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="238">
|
||||||
|
<caret line="19" column="13" selection-start-line="19" selection-start-column="13" selection-end-line="19" selection-end-column="13" />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/src/text/WarehouseText.java">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="68">
|
||||||
|
<caret line="4" column="38" lean-forward="true" selection-start-line="4" selection-start-column="38" selection-end-line="4" selection-end-column="38" />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/src/text/TaipanShopText.java">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="595">
|
||||||
|
<caret line="35" column="25" lean-forward="true" selection-start-line="35" selection-start-column="25" selection-end-line="35" selection-end-column="25" />
|
||||||
<folding>
|
<folding>
|
||||||
<element signature="n#!!doc" expanded="true" />
|
<element signature="imports" expanded="true" />
|
||||||
</folding>
|
</folding>
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/src/TaipanShopLogic.java">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="391">
|
|
||||||
<caret line="23" column="56" selection-start-line="23" selection-start-column="56" selection-end-line="23" selection-end-column="56" />
|
|
||||||
<folding>
|
|
||||||
<element signature="n#!!doc" expanded="true" />
|
|
||||||
</folding>
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/src/TravelText.java">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="153">
|
|
||||||
<caret line="9" lean-forward="true" selection-start-line="9" selection-end-line="9" />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/src/ShipWarfareText.java">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="544">
|
|
||||||
<caret line="63" lean-forward="true" selection-start-line="63" selection-end-line="63" />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
</component>
|
</component>
|
||||||
<component name="masterDetails">
|
<component name="masterDetails">
|
||||||
<states>
|
<states>
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
package gui;
|
||||||
|
|
||||||
import javafx.event.ActionEvent;
|
import javafx.event.ActionEvent;
|
||||||
import javafx.event.EventHandler;
|
import javafx.event.EventHandler;
|
||||||
import javafx.geometry.Insets;
|
import javafx.geometry.Insets;
|
||||||
@@ -10,8 +12,9 @@ import javafx.scene.layout.BorderPane;
|
|||||||
import javafx.scene.layout.HBox;
|
import javafx.scene.layout.HBox;
|
||||||
import javafx.scene.layout.VBox;
|
import javafx.scene.layout.VBox;
|
||||||
import javafx.stage.Stage;
|
import javafx.stage.Stage;
|
||||||
|
import logic.Player;
|
||||||
|
|
||||||
public class BankGUI extends Player{
|
public class BankGUI extends Player {
|
||||||
/**
|
/**
|
||||||
* 2019-03-10
|
* 2019-03-10
|
||||||
* Authors: Siddhant Dewani
|
* Authors: Siddhant Dewani
|
||||||
@@ -66,7 +69,7 @@ public class BankGUI extends Player{
|
|||||||
hbx1.getChildren().add(b1);
|
hbx1.getChildren().add(b1);
|
||||||
hbx1.getChildren().add(b2);
|
hbx1.getChildren().add(b2);
|
||||||
hbx1.getChildren().add(b3);
|
hbx1.getChildren().add(b3);
|
||||||
hbx1.setPadding(new Insets(0,0,20,0));
|
hbx1.setPadding(new Insets(0, 0, 20, 0));
|
||||||
brdr1.setBottom(hbx1);
|
brdr1.setBottom(hbx1);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -87,7 +90,7 @@ public class BankGUI extends Player{
|
|||||||
vbx1.getChildren().add(l2);
|
vbx1.getChildren().add(l2);
|
||||||
vbx1.getChildren().add(l4);
|
vbx1.getChildren().add(l4);
|
||||||
vbx1.getChildren().add(l5);
|
vbx1.getChildren().add(l5);
|
||||||
vbx1.setPadding(new Insets(20,0,0,0));
|
vbx1.setPadding(new Insets(20, 0, 0, 0));
|
||||||
brdr1.setTop(vbx1);
|
brdr1.setTop(vbx1);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -95,28 +98,25 @@ public class BankGUI extends Player{
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
b1.setOnAction(new EventHandler<ActionEvent>() {
|
b1.setOnAction(new EventHandler<ActionEvent>() {
|
||||||
@Override
|
@Override
|
||||||
public void handle(ActionEvent event) {
|
public void handle(ActionEvent event) {
|
||||||
try {
|
try {
|
||||||
int withdraw = Integer.parseInt(txtField1.getText());
|
int withdraw = Integer.parseInt(txtField1.getText());
|
||||||
if(withdraw < 0){
|
if (withdraw < 0) {
|
||||||
l5.setText("Come on " + getName() + ", are you trying to fool me?\nNo negative numbers please!");
|
l5.setText("Come on " + getName() + ", are you trying to fool me?\nNo negative numbers please!");
|
||||||
}
|
} else if (withdraw <= getBank()) {
|
||||||
else if (withdraw <= getBank()) {
|
setMoney(withdraw + getMoney());
|
||||||
setMoney(withdraw + getMoney());
|
setBank(getBank() - withdraw);
|
||||||
setBank(getBank() - withdraw);
|
} else {
|
||||||
}
|
l5.setText("Sorry, you can not withdraw that much.");
|
||||||
else {
|
|
||||||
l5.setText("Sorry, you can not withdraw that much.");
|
|
||||||
}
|
|
||||||
l2.setText("Balance: " + getBank());
|
|
||||||
l4.setText("Cash: " + getMoney());
|
|
||||||
}
|
|
||||||
catch (Exception e) {
|
|
||||||
l5.setText("Please enter a valid response.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
l2.setText("Balance: " + getBank());
|
||||||
|
l4.setText("Cash: " + getMoney());
|
||||||
|
} catch (Exception e) {
|
||||||
|
l5.setText("Please enter a valid response.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -125,28 +125,26 @@ public class BankGUI extends Player{
|
|||||||
*/
|
*/
|
||||||
// Set the event handler when the withdraw button is clicked
|
// Set the event handler when the withdraw button is clicked
|
||||||
b2.setOnAction(new EventHandler<ActionEvent>() {
|
b2.setOnAction(new EventHandler<ActionEvent>() {
|
||||||
@Override
|
@Override
|
||||||
public void handle(ActionEvent event) {
|
public void handle(ActionEvent event) {
|
||||||
try {
|
try {
|
||||||
int deposit = Integer.parseInt(txtField1.getText());
|
int deposit = Integer.parseInt(txtField1.getText());
|
||||||
if(deposit < 0){
|
if (deposit < 0) {
|
||||||
l5.setText("Nice try! You can not enter negative numbers.");
|
l5.setText("Nice try! You can not enter negative numbers.");
|
||||||
}
|
} else if (deposit <= getMoney()) {
|
||||||
else if (deposit <= getMoney()) {
|
setBank(deposit + getBank());
|
||||||
setBank(deposit + getBank());
|
setMoney(getMoney() - deposit);
|
||||||
setMoney(getMoney() - deposit);
|
} else {
|
||||||
} else {
|
l5.setText("Sorry, you can not deposit that much.");
|
||||||
l5.setText("Sorry, you can not deposit that much.");
|
|
||||||
}
|
|
||||||
l2.setText("Balance: " + getBank());
|
|
||||||
l4.setText("Cash: " + getMoney());
|
|
||||||
|
|
||||||
}
|
|
||||||
catch (Exception e) {
|
|
||||||
l5.setText("Please enter a valid response.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
l2.setText("Balance: " + getBank());
|
||||||
|
l4.setText("Cash: " + getMoney());
|
||||||
|
|
||||||
|
} catch (Exception e) {
|
||||||
|
l5.setText("Please enter a valid response.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -154,13 +152,13 @@ public class BankGUI extends Player{
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
b3.setOnAction(new EventHandler<ActionEvent>() {
|
b3.setOnAction(new EventHandler<ActionEvent>() {
|
||||||
@Override
|
@Override
|
||||||
public void handle(ActionEvent event) {
|
public void handle(ActionEvent event) {
|
||||||
TaipanShopGUI shopGUI = new TaipanShopGUI(getPlayer());
|
TaipanShopGUI shopGUI = new TaipanShopGUI(getPlayer());
|
||||||
shopGUI.initializeShop(primaryStage);
|
shopGUI.initializeShop(primaryStage);
|
||||||
primaryStage.show();
|
primaryStage.show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
@@ -1,3 +1,5 @@
|
|||||||
|
package gui;
|
||||||
|
|
||||||
import javafx.geometry.Insets;
|
import javafx.geometry.Insets;
|
||||||
import javafx.scene.Scene;
|
import javafx.scene.Scene;
|
||||||
import javafx.scene.control.Label;
|
import javafx.scene.control.Label;
|
||||||
@@ -5,6 +7,7 @@ import javafx.scene.layout.BorderPane;
|
|||||||
import javafx.scene.layout.VBox;
|
import javafx.scene.layout.VBox;
|
||||||
import javafx.scene.text.Font;
|
import javafx.scene.text.Font;
|
||||||
import javafx.stage.Stage;
|
import javafx.stage.Stage;
|
||||||
|
import logic.Player;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 2019-03-10
|
* 2019-03-10
|
||||||
@@ -12,7 +15,7 @@ import javafx.stage.Stage;
|
|||||||
* GameEndGUI class, Initializes and displays the graphical interface for when you lose
|
* GameEndGUI class, Initializes and displays the graphical interface for when you lose
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class GameEndGUI extends Player{
|
public class GameEndGUI extends Player {
|
||||||
|
|
||||||
private Label title;
|
private Label title;
|
||||||
private VBox vBox;
|
private VBox vBox;
|
||||||
@@ -1,3 +1,5 @@
|
|||||||
|
package gui;
|
||||||
|
|
||||||
import javafx.event.ActionEvent;
|
import javafx.event.ActionEvent;
|
||||||
import javafx.event.EventHandler;
|
import javafx.event.EventHandler;
|
||||||
import javafx.geometry.Insets;
|
import javafx.geometry.Insets;
|
||||||
@@ -10,6 +12,7 @@ import javafx.scene.layout.BorderPane;
|
|||||||
import javafx.scene.layout.HBox;
|
import javafx.scene.layout.HBox;
|
||||||
import javafx.scene.layout.VBox;
|
import javafx.scene.layout.VBox;
|
||||||
import javafx.stage.Stage;
|
import javafx.stage.Stage;
|
||||||
|
import logic.Player;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 2019-03-10
|
* 2019-03-10
|
||||||
@@ -1,3 +1,5 @@
|
|||||||
|
package gui;
|
||||||
|
|
||||||
import javafx.application.Application;
|
import javafx.application.Application;
|
||||||
import javafx.stage.Stage;
|
import javafx.stage.Stage;
|
||||||
|
|
||||||
@@ -1,3 +1,5 @@
|
|||||||
|
package gui;
|
||||||
|
|
||||||
import javafx.scene.Scene;
|
import javafx.scene.Scene;
|
||||||
import javafx.scene.control.Button;
|
import javafx.scene.control.Button;
|
||||||
import javafx.scene.control.Label;
|
import javafx.scene.control.Label;
|
||||||
@@ -5,6 +7,7 @@ import javafx.scene.layout.BorderPane;
|
|||||||
import javafx.scene.layout.HBox;
|
import javafx.scene.layout.HBox;
|
||||||
import javafx.scene.layout.VBox;
|
import javafx.scene.layout.VBox;
|
||||||
import javafx.stage.Stage;
|
import javafx.stage.Stage;
|
||||||
|
import logic.Player;
|
||||||
|
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
@@ -15,7 +18,7 @@ import java.util.Random;
|
|||||||
* liu yen asking for money and to purchase a gun.
|
* liu yen asking for money and to purchase a gun.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public class RandomEventGUI extends Player{
|
public class RandomEventGUI extends Player {
|
||||||
|
|
||||||
private HBox hBox;
|
private HBox hBox;
|
||||||
private Button yesButton;
|
private Button yesButton;
|
||||||
@@ -1,3 +1,5 @@
|
|||||||
|
package gui;
|
||||||
|
|
||||||
import javafx.animation.*;
|
import javafx.animation.*;
|
||||||
import javafx.event.ActionEvent;
|
import javafx.event.ActionEvent;
|
||||||
import javafx.event.EventHandler;
|
import javafx.event.EventHandler;
|
||||||
@@ -14,10 +16,14 @@ import javafx.scene.layout.VBox;
|
|||||||
import javafx.scene.shape.Circle;
|
import javafx.scene.shape.Circle;
|
||||||
import javafx.stage.Stage;
|
import javafx.stage.Stage;
|
||||||
import javafx.util.Duration;
|
import javafx.util.Duration;
|
||||||
|
|
||||||
import java.io.FileInputStream;
|
import java.io.FileInputStream;
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
|
//Importing the logic classes required for this class
|
||||||
|
import logic.Player;
|
||||||
|
import logic.ShipWarfareLogic;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 2019-03-10 (Edited on 2019-03-23)
|
* 2019-03-10 (Edited on 2019-03-23)
|
||||||
* Author: Haris Muhammad
|
* Author: Haris Muhammad
|
||||||
@@ -1,3 +1,5 @@
|
|||||||
|
package gui;
|
||||||
|
|
||||||
import javafx.event.ActionEvent;
|
import javafx.event.ActionEvent;
|
||||||
import javafx.event.EventHandler;
|
import javafx.event.EventHandler;
|
||||||
import javafx.geometry.Pos;
|
import javafx.geometry.Pos;
|
||||||
@@ -8,6 +10,8 @@ import javafx.scene.layout.HBox;
|
|||||||
import javafx.scene.layout.VBox;
|
import javafx.scene.layout.VBox;
|
||||||
import javafx.scene.text.Font;
|
import javafx.scene.text.Font;
|
||||||
import javafx.stage.Stage;
|
import javafx.stage.Stage;
|
||||||
|
import logic.Player;
|
||||||
|
import logic.FileSaving;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 2019-03-10
|
* 2019-03-10
|
||||||
@@ -17,7 +21,7 @@ import javafx.stage.Stage;
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
public class StartGUI extends Player{
|
public class StartGUI extends Player {
|
||||||
|
|
||||||
private BorderPane borderPane = new BorderPane();
|
private BorderPane borderPane = new BorderPane();
|
||||||
private HBox hBox = new HBox();
|
private HBox hBox = new HBox();
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
/**
|
package gui; /**
|
||||||
* TaipanShopGUI deals with setting the stage for shop.
|
* TaipanShopGUI deals with setting the stage for shop.
|
||||||
*
|
*
|
||||||
* Author: Vikram Bawa
|
* Author: Vikram Bawa
|
||||||
@@ -19,8 +19,11 @@ import javafx.scene.shape.Rectangle;
|
|||||||
import javafx.scene.shape.StrokeType;
|
import javafx.scene.shape.StrokeType;
|
||||||
import javafx.scene.text.Font;
|
import javafx.scene.text.Font;
|
||||||
import javafx.stage.Stage;
|
import javafx.stage.Stage;
|
||||||
|
import logic.FileSaving;
|
||||||
|
import logic.Player;
|
||||||
|
import logic.TaipanShopLogic;
|
||||||
|
|
||||||
public class TaipanShopGUI extends Player{
|
public class TaipanShopGUI extends Player {
|
||||||
private Label firm = new Label();
|
private Label firm = new Label();
|
||||||
private Label wItemsText = new Label();
|
private Label wItemsText = new Label();
|
||||||
private Label wItemSpaceText = new Label();
|
private Label wItemSpaceText = new Label();
|
||||||
@@ -51,7 +54,7 @@ public class TaipanShopGUI extends Player{
|
|||||||
*
|
*
|
||||||
* @param player is a Player object that will be copied and the player instance variable is set to the copy.
|
* @param player is a Player object that will be copied and the player instance variable is set to the copy.
|
||||||
*/
|
*/
|
||||||
public TaipanShopGUI(Player player) {
|
public TaipanShopGUI(logic.Player player) {
|
||||||
Player playerDummy = new Player(player);
|
Player playerDummy = new Player(player);
|
||||||
setPlayer(playerDummy);
|
setPlayer(playerDummy);
|
||||||
}
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
/**
|
package gui; /**
|
||||||
* TravelGUI is the class in which takes the player from location to location
|
* TravelGUI is the class in which takes the player from location to location
|
||||||
*
|
*
|
||||||
* Author: Harkamal Randhawa
|
* Author: Harkamal Randhawa
|
||||||
@@ -9,19 +9,14 @@ import javafx.scene.control.Button;
|
|||||||
import javafx.scene.control.TextField;
|
import javafx.scene.control.TextField;
|
||||||
import javafx.scene.input.KeyCode;
|
import javafx.scene.input.KeyCode;
|
||||||
import javafx.scene.layout.*;
|
import javafx.scene.layout.*;
|
||||||
import javafx.scene.paint.Color;
|
|
||||||
import javafx.scene.shape.StrokeType;
|
|
||||||
import javafx.stage.Stage;
|
import javafx.stage.Stage;
|
||||||
import javafx.geometry.Insets;
|
|
||||||
import javafx.scene.control.Label;
|
import javafx.scene.control.Label;
|
||||||
import javafx.scene.shape.Rectangle;
|
|
||||||
import javafx.scene.text.Font;
|
import javafx.scene.text.Font;
|
||||||
|
import logic.Player;
|
||||||
|
|
||||||
import java.io.File;
|
|
||||||
import java.io.FileNotFoundException;
|
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
public class TravelGUI extends Player{
|
public class TravelGUI extends Player {
|
||||||
private TaipanShopGUI shop;
|
private TaipanShopGUI shop;
|
||||||
private Label firm = new Label();
|
private Label firm = new Label();
|
||||||
private Label wItemsText = new Label();
|
private Label wItemsText = new Label();
|
||||||
@@ -1,3 +1,5 @@
|
|||||||
|
package gui;
|
||||||
|
|
||||||
import javafx.geometry.Insets;
|
import javafx.geometry.Insets;
|
||||||
import javafx.scene.Scene;
|
import javafx.scene.Scene;
|
||||||
import javafx.scene.control.*;
|
import javafx.scene.control.*;
|
||||||
@@ -6,6 +8,7 @@ import javafx.scene.layout.HBox;
|
|||||||
import javafx.scene.layout.VBox;
|
import javafx.scene.layout.VBox;
|
||||||
import javafx.scene.text.Font;
|
import javafx.scene.text.Font;
|
||||||
import javafx.stage.Stage;
|
import javafx.stage.Stage;
|
||||||
|
import logic.Player;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 2019-03-19
|
* 2019-03-19
|
||||||
@@ -13,7 +16,7 @@ import javafx.stage.Stage;
|
|||||||
* WarehouseGUI allows the user to store goods in a warehouse in order to have more hold on the ship
|
* WarehouseGUI allows the user to store goods in a warehouse in order to have more hold on the ship
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public class WarehouseGUI extends Player{
|
public class WarehouseGUI extends Player {
|
||||||
//Create the labels, buttons and textfields required
|
//Create the labels, buttons and textfields required
|
||||||
private HBox hBox;
|
private HBox hBox;
|
||||||
private VBox vBox;
|
private VBox vBox;
|
||||||
@@ -1,3 +1,5 @@
|
|||||||
|
package logic;
|
||||||
|
|
||||||
import java.io.*;
|
import java.io.*;
|
||||||
/**
|
/**
|
||||||
* 2019-03-10 (Edited on 2019-03-19)
|
* 2019-03-10 (Edited on 2019-03-19)
|
||||||
@@ -1,3 +1,5 @@
|
|||||||
|
package logic;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -1,3 +1,5 @@
|
|||||||
|
package logic;
|
||||||
|
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
/**
|
package logic; /**
|
||||||
* TaipanShopLogic deals with the computations necessary for the shop such as randomizing prices.
|
* TaipanShopLogic deals with the computations necessary for the shop such as randomizing prices.
|
||||||
*
|
*
|
||||||
* Author: Vikram Bawa
|
* Author: Vikram Bawa
|
||||||
@@ -1,6 +1,9 @@
|
|||||||
|
package tests;
|
||||||
|
|
||||||
import static org.junit.Assert.*;
|
import static org.junit.Assert.*;
|
||||||
|
|
||||||
|
import logic.Player;
|
||||||
|
import org.junit.Assert;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import java.io.*;
|
import java.io.*;
|
||||||
|
|
||||||
@@ -21,7 +24,7 @@ public class PlayerTest {
|
|||||||
@Test
|
@Test
|
||||||
public void getCargoSpace() {
|
public void getCargoSpace() {
|
||||||
Player player = new Player();
|
Player player = new Player();
|
||||||
assertEquals("The instance variable for the object does not line up with the rest of the class", 60, player.getCargoSpace());
|
Assert.assertEquals("The instance variable for the object does not line up with the rest of the class", 60, player.getCargoSpace());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -31,7 +34,7 @@ public class PlayerTest {
|
|||||||
public void setCargoSpace() {
|
public void setCargoSpace() {
|
||||||
Player player = new Player();
|
Player player = new Player();
|
||||||
player.setCargoSpace(10);
|
player.setCargoSpace(10);
|
||||||
assertEquals("The instance variable for the object does not line up with the rest of the class", 10, player.getCargoSpace());
|
Assert.assertEquals("The instance variable for the object does not line up with the rest of the class", 10, player.getCargoSpace());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -40,7 +43,7 @@ public class PlayerTest {
|
|||||||
@Test
|
@Test
|
||||||
public void getAttackingShips() {
|
public void getAttackingShips() {
|
||||||
Player player = new Player();
|
Player player = new Player();
|
||||||
assertEquals("The instance variable for the object does not line up with the rest of the class", true, player.getAttackingShips());
|
Assert.assertEquals("The instance variable for the object does not line up with the rest of the class", true, player.getAttackingShips());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -50,7 +53,7 @@ public class PlayerTest {
|
|||||||
public void setAttackingShips() {
|
public void setAttackingShips() {
|
||||||
Player player = new Player();
|
Player player = new Player();
|
||||||
player.setAttackingShips(false);
|
player.setAttackingShips(false);
|
||||||
assertEquals("The instance variable for the object does not line up with the rest of the class", false, player.getAttackingShips());
|
Assert.assertEquals("The instance variable for the object does not line up with the rest of the class", false, player.getAttackingShips());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -59,7 +62,7 @@ public class PlayerTest {
|
|||||||
@Test
|
@Test
|
||||||
public void getRetire() {
|
public void getRetire() {
|
||||||
Player player = new Player();
|
Player player = new Player();
|
||||||
assertEquals("The instance variable for the object does not line up with the rest of the class", false, player.getRetire());
|
Assert.assertEquals("The instance variable for the object does not line up with the rest of the class", false, player.getRetire());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -69,7 +72,7 @@ public class PlayerTest {
|
|||||||
public void setRetire() {
|
public void setRetire() {
|
||||||
Player player = new Player();
|
Player player = new Player();
|
||||||
player.setRetire(true);
|
player.setRetire(true);
|
||||||
assertEquals("The instance variable for the object does not line up with the rest of the class", true, player.getRetire());
|
Assert.assertEquals("The instance variable for the object does not line up with the rest of the class", true, player.getRetire());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -78,7 +81,7 @@ public class PlayerTest {
|
|||||||
@Test
|
@Test
|
||||||
public void getName() {
|
public void getName() {
|
||||||
Player player = new Player();
|
Player player = new Player();
|
||||||
assertEquals("The instance variable for the object does not line up with the rest of the class", "Taipan", player.getName());
|
Assert.assertEquals("The instance variable for the object does not line up with the rest of the class", "Taipan", player.getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -88,7 +91,7 @@ public class PlayerTest {
|
|||||||
public void setName() {
|
public void setName() {
|
||||||
Player player = new Player();
|
Player player = new Player();
|
||||||
player.setName("a");
|
player.setName("a");
|
||||||
assertEquals("The instance variable for the object does not line up with the rest of the class", "a", player.getName());
|
Assert.assertEquals("The instance variable for the object does not line up with the rest of the class", "a", player.getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -97,7 +100,7 @@ public class PlayerTest {
|
|||||||
@Test
|
@Test
|
||||||
public void getHP() {
|
public void getHP() {
|
||||||
Player player = new Player();
|
Player player = new Player();
|
||||||
assertEquals("The instance variable for the object does not line up with the rest of the class", 100, player.getHP());
|
Assert.assertEquals("The instance variable for the object does not line up with the rest of the class", 100, player.getHP());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -107,7 +110,7 @@ public class PlayerTest {
|
|||||||
public void setHP() {
|
public void setHP() {
|
||||||
Player player = new Player();
|
Player player = new Player();
|
||||||
player.setHP(1);
|
player.setHP(1);
|
||||||
assertEquals("The instance variable for the object does not line up with the rest of the class", 1, player.getHP());
|
Assert.assertEquals("The instance variable for the object does not line up with the rest of the class", 1, player.getHP());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -116,7 +119,7 @@ public class PlayerTest {
|
|||||||
@Test
|
@Test
|
||||||
public void getBank() {
|
public void getBank() {
|
||||||
Player player = new Player();
|
Player player = new Player();
|
||||||
assertEquals("The instance variable for the object does not line up with the rest of the class", 0, player.getBank());
|
Assert.assertEquals("The instance variable for the object does not line up with the rest of the class", 0, player.getBank());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -126,7 +129,7 @@ public class PlayerTest {
|
|||||||
public void setBank() {
|
public void setBank() {
|
||||||
Player player = new Player();
|
Player player = new Player();
|
||||||
player.setBank(1);
|
player.setBank(1);
|
||||||
assertEquals("The instance variable for the object does not line up with the rest of the class", 1, player.getBank());
|
Assert.assertEquals("The instance variable for the object does not line up with the rest of the class", 1, player.getBank());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -135,7 +138,7 @@ public class PlayerTest {
|
|||||||
@Test
|
@Test
|
||||||
public void getMoney() {
|
public void getMoney() {
|
||||||
Player player = new Player();
|
Player player = new Player();
|
||||||
assertEquals("The instance variable for the object does not line up with the rest of the class", 0, player.getMoney());
|
Assert.assertEquals("The instance variable for the object does not line up with the rest of the class", 0, player.getMoney());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -145,7 +148,7 @@ public class PlayerTest {
|
|||||||
public void setMoney() {
|
public void setMoney() {
|
||||||
Player player = new Player();
|
Player player = new Player();
|
||||||
player.setMoney(1);
|
player.setMoney(1);
|
||||||
assertEquals("The instance variable for the object does not line up with the rest of the class", 1, player.getMoney());
|
Assert.assertEquals("The instance variable for the object does not line up with the rest of the class", 1, player.getMoney());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -154,7 +157,7 @@ public class PlayerTest {
|
|||||||
@Test
|
@Test
|
||||||
public void getOpiumHeld() {
|
public void getOpiumHeld() {
|
||||||
Player player = new Player();
|
Player player = new Player();
|
||||||
assertEquals("The instance variable for the object does not line up with the rest of the class", 0, player.getOpiumHeld());
|
Assert.assertEquals("The instance variable for the object does not line up with the rest of the class", 0, player.getOpiumHeld());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -164,7 +167,7 @@ public class PlayerTest {
|
|||||||
public void setOpiumHeld() {
|
public void setOpiumHeld() {
|
||||||
Player player = new Player();
|
Player player = new Player();
|
||||||
player.setOpiumHeld(1);
|
player.setOpiumHeld(1);
|
||||||
assertEquals("The instance variable for the object does not line up with the rest of the class", 1, player.getOpiumHeld());
|
Assert.assertEquals("The instance variable for the object does not line up with the rest of the class", 1, player.getOpiumHeld());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -173,7 +176,7 @@ public class PlayerTest {
|
|||||||
@Test
|
@Test
|
||||||
public void getSilkHeld() {
|
public void getSilkHeld() {
|
||||||
Player player = new Player();
|
Player player = new Player();
|
||||||
assertEquals("The instance variable for the object does not line up with the rest of the class", 0, player.getSilkHeld());
|
Assert.assertEquals("The instance variable for the object does not line up with the rest of the class", 0, player.getSilkHeld());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -183,7 +186,7 @@ public class PlayerTest {
|
|||||||
public void setSilkHeld() {
|
public void setSilkHeld() {
|
||||||
Player player = new Player();
|
Player player = new Player();
|
||||||
player.setSilkHeld(1);
|
player.setSilkHeld(1);
|
||||||
assertEquals("The instance variable for the object does not line up with the rest of the class", 1, player.getSilkHeld());
|
Assert.assertEquals("The instance variable for the object does not line up with the rest of the class", 1, player.getSilkHeld());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -192,7 +195,7 @@ public class PlayerTest {
|
|||||||
@Test
|
@Test
|
||||||
public void getGeneralHeld() {
|
public void getGeneralHeld() {
|
||||||
Player player = new Player();
|
Player player = new Player();
|
||||||
assertEquals("The instance variable for the object does not line up with the rest of the class", 0, player.getGeneralHeld());
|
Assert.assertEquals("The instance variable for the object does not line up with the rest of the class", 0, player.getGeneralHeld());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -202,7 +205,7 @@ public class PlayerTest {
|
|||||||
public void setGeneralHeld() {
|
public void setGeneralHeld() {
|
||||||
Player player = new Player();
|
Player player = new Player();
|
||||||
player.setGeneralHeld(1);
|
player.setGeneralHeld(1);
|
||||||
assertEquals("The instance variable for the object does not line up with the rest of the class", 1, player.getGeneralHeld());
|
Assert.assertEquals("The instance variable for the object does not line up with the rest of the class", 1, player.getGeneralHeld());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -211,7 +214,7 @@ public class PlayerTest {
|
|||||||
@Test
|
@Test
|
||||||
public void getArmsHeld() {
|
public void getArmsHeld() {
|
||||||
Player player = new Player();
|
Player player = new Player();
|
||||||
assertEquals("The instance variable for the object does not line up with the rest of the class", 0, player.getArmsHeld());
|
Assert.assertEquals("The instance variable for the object does not line up with the rest of the class", 0, player.getArmsHeld());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -221,7 +224,7 @@ public class PlayerTest {
|
|||||||
public void setArmsHeld() {
|
public void setArmsHeld() {
|
||||||
Player player = new Player();
|
Player player = new Player();
|
||||||
player.setArmsHeld(1);
|
player.setArmsHeld(1);
|
||||||
assertEquals("The instance variable for the object does not line up with the rest of the class", 1, player.getArmsHeld());
|
Assert.assertEquals("The instance variable for the object does not line up with the rest of the class", 1, player.getArmsHeld());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -230,7 +233,7 @@ public class PlayerTest {
|
|||||||
@Test
|
@Test
|
||||||
public void getLocation() {
|
public void getLocation() {
|
||||||
Player player = new Player();
|
Player player = new Player();
|
||||||
assertEquals("The instance variable for the object does not line up with the rest of the class", 1, player.getLocation());
|
Assert.assertEquals("The instance variable for the object does not line up with the rest of the class", 1, player.getLocation());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -240,7 +243,7 @@ public class PlayerTest {
|
|||||||
public void setLocation() {
|
public void setLocation() {
|
||||||
Player player = new Player();
|
Player player = new Player();
|
||||||
player.setLocation(2);
|
player.setLocation(2);
|
||||||
assertEquals("The instance variable for the object does not line up with the rest of the class", 2, player.getLocation());
|
Assert.assertEquals("The instance variable for the object does not line up with the rest of the class", 2, player.getLocation());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -249,7 +252,7 @@ public class PlayerTest {
|
|||||||
@Test
|
@Test
|
||||||
public void getGuns() {
|
public void getGuns() {
|
||||||
Player player = new Player();
|
Player player = new Player();
|
||||||
assertEquals("The instance variable for the object does not line up with the rest of the class", 5, player.getGuns());
|
Assert.assertEquals("The instance variable for the object does not line up with the rest of the class", 5, player.getGuns());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -259,7 +262,7 @@ public class PlayerTest {
|
|||||||
public void setGuns() {
|
public void setGuns() {
|
||||||
Player player = new Player();
|
Player player = new Player();
|
||||||
player.setGuns(1);
|
player.setGuns(1);
|
||||||
assertEquals("The instance variable for the object does not line up with the rest of the class", 1, player.getGuns());
|
Assert.assertEquals("The instance variable for the object does not line up with the rest of the class", 1, player.getGuns());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -268,7 +271,7 @@ public class PlayerTest {
|
|||||||
@Test
|
@Test
|
||||||
public void getDebt() {
|
public void getDebt() {
|
||||||
Player player = new Player();
|
Player player = new Player();
|
||||||
assertEquals("The instance variable for the object does not line up with the rest of the class", 0, player.getDebt());
|
Assert.assertEquals("The instance variable for the object does not line up with the rest of the class", 0, player.getDebt());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -278,7 +281,7 @@ public class PlayerTest {
|
|||||||
public void setDebt() {
|
public void setDebt() {
|
||||||
Player player = new Player();
|
Player player = new Player();
|
||||||
player.setDebt(1);
|
player.setDebt(1);
|
||||||
assertEquals("The instance variable for the object does not line up with the rest of the class", 1, player.getDebt());
|
Assert.assertEquals("The instance variable for the object does not line up with the rest of the class", 1, player.getDebt());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -287,7 +290,7 @@ public class PlayerTest {
|
|||||||
@Test
|
@Test
|
||||||
public void getwOpium() {
|
public void getwOpium() {
|
||||||
Player player = new Player();
|
Player player = new Player();
|
||||||
assertEquals("The instance variable for the object does not line up with the rest of the class", 0, player.getwOpium());
|
Assert.assertEquals("The instance variable for the object does not line up with the rest of the class", 0, player.getwOpium());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -297,7 +300,7 @@ public class PlayerTest {
|
|||||||
public void setwOpium() {
|
public void setwOpium() {
|
||||||
Player player = new Player();
|
Player player = new Player();
|
||||||
player.setwOpium(1);
|
player.setwOpium(1);
|
||||||
assertEquals("The instance variable for the object does not line up with the rest of the class", 1, player.getwOpium());
|
Assert.assertEquals("The instance variable for the object does not line up with the rest of the class", 1, player.getwOpium());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -306,7 +309,7 @@ public class PlayerTest {
|
|||||||
@Test
|
@Test
|
||||||
public void getwSilk() {
|
public void getwSilk() {
|
||||||
Player player = new Player();
|
Player player = new Player();
|
||||||
assertEquals("The instance variable for the object does not line up with the rest of the class", 0, player.getwSilk());
|
Assert.assertEquals("The instance variable for the object does not line up with the rest of the class", 0, player.getwSilk());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -316,7 +319,7 @@ public class PlayerTest {
|
|||||||
public void setwSilk() {
|
public void setwSilk() {
|
||||||
Player player = new Player();
|
Player player = new Player();
|
||||||
player.setwSilk(1);
|
player.setwSilk(1);
|
||||||
assertEquals("The instance variable for the object does not line up with the rest of the class", 1, player.getwSilk());
|
Assert.assertEquals("The instance variable for the object does not line up with the rest of the class", 1, player.getwSilk());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -325,7 +328,7 @@ public class PlayerTest {
|
|||||||
@Test
|
@Test
|
||||||
public void getwGeneral() {
|
public void getwGeneral() {
|
||||||
Player player = new Player();
|
Player player = new Player();
|
||||||
assertEquals("The instance variable for the object does not line up with the rest of the class", 0, player.getwGeneral());
|
Assert.assertEquals("The instance variable for the object does not line up with the rest of the class", 0, player.getwGeneral());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -335,7 +338,7 @@ public class PlayerTest {
|
|||||||
public void setwGeneral() {
|
public void setwGeneral() {
|
||||||
Player player = new Player();
|
Player player = new Player();
|
||||||
player.setwGeneral(1);
|
player.setwGeneral(1);
|
||||||
assertEquals("The instance variable for the object does not line up with the rest of the class", 1, player.getwGeneral());
|
Assert.assertEquals("The instance variable for the object does not line up with the rest of the class", 1, player.getwGeneral());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -344,7 +347,7 @@ public class PlayerTest {
|
|||||||
@Test
|
@Test
|
||||||
public void getwArms() {
|
public void getwArms() {
|
||||||
Player player = new Player();
|
Player player = new Player();
|
||||||
assertEquals("The instance variable for the object does not line up with the rest of the class", 0, player.getwArms());
|
Assert.assertEquals("The instance variable for the object does not line up with the rest of the class", 0, player.getwArms());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -354,7 +357,7 @@ public class PlayerTest {
|
|||||||
public void setwArms() {
|
public void setwArms() {
|
||||||
Player player = new Player();
|
Player player = new Player();
|
||||||
player.setwArms(1);
|
player.setwArms(1);
|
||||||
assertEquals("The instance variable for the object does not line up with the rest of the class", 1, player.getwArms());
|
Assert.assertEquals("The instance variable for the object does not line up with the rest of the class", 1, player.getwArms());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -363,7 +366,7 @@ public class PlayerTest {
|
|||||||
@Test
|
@Test
|
||||||
public void getOpiumPrice() {
|
public void getOpiumPrice() {
|
||||||
Player player = new Player();
|
Player player = new Player();
|
||||||
assertEquals("The instance variable for the object does not line up with the rest of the class", 16000, player.getOpiumPrice());
|
Assert.assertEquals("The instance variable for the object does not line up with the rest of the class", 16000, player.getOpiumPrice());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -373,7 +376,7 @@ public class PlayerTest {
|
|||||||
public void setOpiumPrice() {
|
public void setOpiumPrice() {
|
||||||
Player player = new Player();
|
Player player = new Player();
|
||||||
player.setOpiumPrice(1);
|
player.setOpiumPrice(1);
|
||||||
assertEquals("The instance variable for the object does not line up with the rest of the class", 1, player.getOpiumPrice());
|
Assert.assertEquals("The instance variable for the object does not line up with the rest of the class", 1, player.getOpiumPrice());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -382,7 +385,7 @@ public class PlayerTest {
|
|||||||
@Test
|
@Test
|
||||||
public void getSilkPrice() {
|
public void getSilkPrice() {
|
||||||
Player player = new Player();
|
Player player = new Player();
|
||||||
assertEquals("The instance variable for the object does not line up with the rest of the class", 1600, player.getSilkPrice());
|
Assert.assertEquals("The instance variable for the object does not line up with the rest of the class", 1600, player.getSilkPrice());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -392,7 +395,7 @@ public class PlayerTest {
|
|||||||
public void setSilkPrice() {
|
public void setSilkPrice() {
|
||||||
Player player = new Player();
|
Player player = new Player();
|
||||||
player.setSilkPrice(1);
|
player.setSilkPrice(1);
|
||||||
assertEquals("The instance variable for the object does not line up with the rest of the class", 1, player.getSilkPrice());
|
Assert.assertEquals("The instance variable for the object does not line up with the rest of the class", 1, player.getSilkPrice());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -401,7 +404,7 @@ public class PlayerTest {
|
|||||||
@Test
|
@Test
|
||||||
public void getArmsPrice() {
|
public void getArmsPrice() {
|
||||||
Player player = new Player();
|
Player player = new Player();
|
||||||
assertEquals("The instance variable for the object does not line up with the rest of the class", 160, player.getArmsPrice());
|
Assert.assertEquals("The instance variable for the object does not line up with the rest of the class", 160, player.getArmsPrice());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -411,7 +414,7 @@ public class PlayerTest {
|
|||||||
public void setArmsPrice() {
|
public void setArmsPrice() {
|
||||||
Player player = new Player();
|
Player player = new Player();
|
||||||
player.setArmsPrice(1);
|
player.setArmsPrice(1);
|
||||||
assertEquals("The instance variable for the object does not line up with the rest of the class", 1, player.getArmsPrice());
|
Assert.assertEquals("The instance variable for the object does not line up with the rest of the class", 1, player.getArmsPrice());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -420,7 +423,7 @@ public class PlayerTest {
|
|||||||
@Test
|
@Test
|
||||||
public void getGeneralPrice() {
|
public void getGeneralPrice() {
|
||||||
Player player = new Player();
|
Player player = new Player();
|
||||||
assertEquals("The instance variable for the object does not line up with the rest of the class", 8, player.getGeneralPrice());
|
Assert.assertEquals("The instance variable for the object does not line up with the rest of the class", 8, player.getGeneralPrice());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -430,7 +433,7 @@ public class PlayerTest {
|
|||||||
public void setGeneralPrice() {
|
public void setGeneralPrice() {
|
||||||
Player player = new Player();
|
Player player = new Player();
|
||||||
player.setGeneralPrice(1);
|
player.setGeneralPrice(1);
|
||||||
assertEquals("The instance variable for the object does not line up with the rest of the class", 1, player.getGeneralPrice());
|
Assert.assertEquals("The instance variable for the object does not line up with the rest of the class", 1, player.getGeneralPrice());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -439,7 +442,7 @@ public class PlayerTest {
|
|||||||
@Test
|
@Test
|
||||||
public void getIsPriceChanged() {
|
public void getIsPriceChanged() {
|
||||||
Player player = new Player();
|
Player player = new Player();
|
||||||
assertEquals("The instance variable for the object does not line up with the rest of the class", 0, player.getIsPriceChanged());
|
Assert.assertEquals("The instance variable for the object does not line up with the rest of the class", 0, player.getIsPriceChanged());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -449,6 +452,6 @@ public class PlayerTest {
|
|||||||
public void setIsPriceChanged() {
|
public void setIsPriceChanged() {
|
||||||
Player player = new Player();
|
Player player = new Player();
|
||||||
player.setIsPriceChanged(1);
|
player.setIsPriceChanged(1);
|
||||||
assertEquals("The instance variable for the object does not line up with the rest of the class", 1, player.getIsPriceChanged());
|
Assert.assertEquals("The instance variable for the object does not line up with the rest of the class", 1, player.getIsPriceChanged());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,3 +1,7 @@
|
|||||||
|
package text;
|
||||||
|
|
||||||
|
import logic.Player;
|
||||||
|
|
||||||
public class BankText extends Player {
|
public class BankText extends Player {
|
||||||
public BankText(Player player) {
|
public BankText(Player player) {
|
||||||
Player playerDummy = new Player(player);
|
Player playerDummy = new Player(player);
|
||||||
@@ -1,3 +1,8 @@
|
|||||||
|
package text;
|
||||||
|
|
||||||
|
import logic.Player;
|
||||||
|
import logic.ShipWarfareLogic;
|
||||||
|
|
||||||
import java.util.Scanner;
|
import java.util.Scanner;
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
@@ -1,10 +1,16 @@
|
|||||||
|
package text;
|
||||||
|
|
||||||
|
import java.util.Scanner;
|
||||||
|
|
||||||
|
import logic.Player;
|
||||||
|
import logic.TaipanShopLogic;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TaipanShopText deals with the text based version of the shop.
|
* TaipanShopText deals with the text based version of the shop.
|
||||||
*
|
*
|
||||||
* Author: Vikram Bawa
|
* Author: Vikram Bawa
|
||||||
*/
|
*/
|
||||||
import java.util.Scanner;
|
public class TaipanShopText extends Player {
|
||||||
public class TaipanShopText extends Player{
|
|
||||||
/**
|
/**
|
||||||
* This method is evoked if the user is eligible to win, and chooses to end the game (by winning).
|
* This method is evoked if the user is eligible to win, and chooses to end the game (by winning).
|
||||||
*/
|
*/
|
||||||
@@ -1,4 +1,7 @@
|
|||||||
public class TravelText extends Player{
|
package text;
|
||||||
|
import logic.Player;
|
||||||
|
|
||||||
|
public class TravelText extends Player {
|
||||||
|
|
||||||
public TravelText(Player player) {
|
public TravelText(Player player) {
|
||||||
Player playerDummy = new Player(player);
|
Player playerDummy = new Player(player);
|
||||||
@@ -1,3 +1,7 @@
|
|||||||
|
package text;
|
||||||
|
|
||||||
|
import logic.Player;
|
||||||
|
|
||||||
public class WarehouseText extends Player {
|
public class WarehouseText extends Player {
|
||||||
public WarehouseText(Player player) {
|
public WarehouseText(Player player) {
|
||||||
Player playerDummy = new Player(player);
|
Player playerDummy = new Player(player);
|
||||||
@@ -1,4 +1,8 @@
|
|||||||
public class loanSharkText extends Player{
|
package text;
|
||||||
|
|
||||||
|
import logic.Player;
|
||||||
|
|
||||||
|
public class loanSharkText extends Player {
|
||||||
public loanSharkText(Player player) {
|
public loanSharkText(Player player) {
|
||||||
Player playerDummy = new Player(player);
|
Player playerDummy = new Player(player);
|
||||||
setPlayer(playerDummy);
|
setPlayer(playerDummy);
|
||||||
Reference in New Issue
Block a user