Helath not lowering anymore
This commit is contained in:
212
.idea/workspace.xml
generated
212
.idea/workspace.xml
generated
@@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="ChangeListManager">
|
<component name="ChangeListManager">
|
||||||
<list default="true" id="3114a2b9-4919-4fdf-8fd9-d03b60109ce4" name="Default Changelist" comment="Fixed an issue with shipWarfare with the ships running away label">
|
<list default="true" id="3114a2b9-4919-4fdf-8fd9-d03b60109ce4" name="Default Changelist" comment="Failed attempt at separating logic and GUI but saving just in case I need it later">
|
||||||
<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/ShipWarfareGUI.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/ShipWarfareGUI.java" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/src/ShipWarfareGUI.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/ShipWarfareGUI.java" 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/saves/playerSave.txt" beforeDir="false" afterPath="$PROJECT_DIR$/src/saves/playerSave.txt" afterDir="false" />
|
||||||
@@ -20,8 +20,8 @@
|
|||||||
<file pinned="false" current-in-tab="false">
|
<file pinned="false" current-in-tab="false">
|
||||||
<entry file="file://$PROJECT_DIR$/src/MainGUI.java">
|
<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="315">
|
<state relative-caret-position="210">
|
||||||
<caret line="24" column="41" selection-start-line="24" selection-start-column="41" selection-end-line="24" selection-end-column="41" />
|
<caret line="15" column="6" selection-start-line="15" selection-start-column="6" selection-end-line="15" selection-end-column="6" />
|
||||||
<folding>
|
<folding>
|
||||||
<element signature="e#551#552#0" expanded="true" />
|
<element signature="e#551#552#0" expanded="true" />
|
||||||
<element signature="e#579#580#0" expanded="true" />
|
<element signature="e#579#580#0" expanded="true" />
|
||||||
@@ -33,8 +33,8 @@
|
|||||||
<file pinned="false" current-in-tab="true">
|
<file pinned="false" current-in-tab="true">
|
||||||
<entry file="file://$PROJECT_DIR$/src/ShipWarfareGUI.java">
|
<entry file="file://$PROJECT_DIR$/src/ShipWarfareGUI.java">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state relative-caret-position="322">
|
<state relative-caret-position="-3881">
|
||||||
<caret line="589" column="27" selection-start-line="589" selection-start-column="27" selection-end-line="589" selection-end-column="27" />
|
<caret line="159" selection-start-line="159" selection-end-line="159" />
|
||||||
<folding>
|
<folding>
|
||||||
<element signature="imports" expanded="true" />
|
<element signature="imports" expanded="true" />
|
||||||
</folding>
|
</folding>
|
||||||
@@ -42,29 +42,63 @@
|
|||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
</file>
|
</file>
|
||||||
|
<file pinned="false" current-in-tab="false">
|
||||||
|
<entry file="file://$PROJECT_DIR$/src/ShipWarfareGUILogic.java">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="-1415">
|
||||||
|
<caret line="43" column="53" lean-forward="true" selection-start-line="43" selection-start-column="35" selection-end-line="43" selection-end-column="53" />
|
||||||
|
<folding>
|
||||||
|
<element signature="imports" expanded="true" />
|
||||||
|
<element signature="e#1238#1239#0" expanded="true" />
|
||||||
|
<element signature="e#1275#1276#0" expanded="true" />
|
||||||
|
<element signature="e#1675#1676#0" expanded="true" />
|
||||||
|
<element signature="e#1710#1711#0" expanded="true" />
|
||||||
|
<element signature="e#1766#1767#0" expanded="true" />
|
||||||
|
<element signature="e#1814#1815#0" expanded="true" />
|
||||||
|
<element signature="e#1854#1855#0" expanded="true" />
|
||||||
|
<element signature="e#1890#1891#0" expanded="true" />
|
||||||
|
<element signature="e#1948#1949#0" expanded="true" />
|
||||||
|
<element signature="e#1998#1999#0" expanded="true" />
|
||||||
|
<element signature="e#2047#2048#0" expanded="true" />
|
||||||
|
<element signature="e#2092#2093#0" expanded="true" />
|
||||||
|
<element signature="e#2283#2284#0" expanded="true" />
|
||||||
|
<element signature="e#2326#2327#0" expanded="true" />
|
||||||
|
<element signature="e#2510#2511#0" expanded="true" />
|
||||||
|
<element signature="e#2554#2555#0" expanded="true" />
|
||||||
|
<element signature="e#2734#2735#0" expanded="true" />
|
||||||
|
<element signature="e#2770#2771#0" expanded="true" />
|
||||||
|
<element signature="e#2828#2829#0" expanded="true" />
|
||||||
|
<element signature="e#2878#2879#0" expanded="true" />
|
||||||
|
<element signature="e#2960#2961#0" expanded="true" />
|
||||||
|
<element signature="e#2989#2990#0" expanded="true" />
|
||||||
|
<element signature="e#3030#3031#0" expanded="true" />
|
||||||
|
<element signature="e#3066#3067#0" 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="119">
|
||||||
|
<caret line="178" selection-start-line="178" selection-end-line="178" />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
</file>
|
||||||
</leaf>
|
</leaf>
|
||||||
</component>
|
</component>
|
||||||
<component name="FileTemplateManagerImpl">
|
<component name="FileTemplateManagerImpl">
|
||||||
<option name="RECENT_TEMPLATES">
|
<option name="RECENT_TEMPLATES">
|
||||||
<list>
|
<list>
|
||||||
<option value="Class" />
|
|
||||||
<option value="JavaFXApplication" />
|
<option value="JavaFXApplication" />
|
||||||
|
<option value="Class" />
|
||||||
</list>
|
</list>
|
||||||
</option>
|
</option>
|
||||||
</component>
|
</component>
|
||||||
<component name="FindInProjectRecents">
|
<component name="FindInProjectRecents">
|
||||||
<findStrings>
|
<findStrings>
|
||||||
<find>continueButton</find>
|
|
||||||
<find>continueButton.setV</find>
|
|
||||||
<find>.setText</find>
|
|
||||||
<find>.setVisi</find>
|
|
||||||
<find>taipanSH</find>
|
|
||||||
<find>runButton.setOn</find>
|
|
||||||
<find>runButton.se</find>
|
|
||||||
<find>setVis</find>
|
|
||||||
<find>counter</find>
|
|
||||||
<find>stage</find>
|
|
||||||
<find>run</find>
|
|
||||||
<find>flee</find>
|
<find>flee</find>
|
||||||
<find>runFrom</find>
|
<find>runFrom</find>
|
||||||
<find>report</find>
|
<find>report</find>
|
||||||
@@ -84,6 +118,17 @@
|
|||||||
<find>getGuns</find>
|
<find>getGuns</find>
|
||||||
<find>!</find>
|
<find>!</find>
|
||||||
<find>earned</find>
|
<find>earned</find>
|
||||||
|
<find>destroyLitty</find>
|
||||||
|
<find>des</find>
|
||||||
|
<find>counter1</find>
|
||||||
|
<find>destro</find>
|
||||||
|
<find>logic</find>
|
||||||
|
<find>getNum</find>
|
||||||
|
<find>boolean</find>
|
||||||
|
<find>initializetrace</find>
|
||||||
|
<find>checkIfDone</find>
|
||||||
|
<find>winOrLose</find>
|
||||||
|
<find>setNum</find>
|
||||||
</findStrings>
|
</findStrings>
|
||||||
<replaceStrings>
|
<replaceStrings>
|
||||||
<replace>HP</replace>
|
<replace>HP</replace>
|
||||||
@@ -122,6 +167,7 @@
|
|||||||
<option value="$PROJECT_DIR$/src/AnimationTesting.java" />
|
<option value="$PROJECT_DIR$/src/AnimationTesting.java" />
|
||||||
<option value="$PROJECT_DIR$/src/TravelGUI.java" />
|
<option value="$PROJECT_DIR$/src/TravelGUI.java" />
|
||||||
<option value="$PROJECT_DIR$/src/TaipanShopGUI.java" />
|
<option value="$PROJECT_DIR$/src/TaipanShopGUI.java" />
|
||||||
|
<option value="$PROJECT_DIR$/src/ShipWarfareGUILogic.java" />
|
||||||
<option value="$PROJECT_DIR$/src/ShipWarfareGUI.java" />
|
<option value="$PROJECT_DIR$/src/ShipWarfareGUI.java" />
|
||||||
</list>
|
</list>
|
||||||
</option>
|
</option>
|
||||||
@@ -159,15 +205,15 @@
|
|||||||
<select />
|
<select />
|
||||||
</subPane>
|
</subPane>
|
||||||
</pane>
|
</pane>
|
||||||
<pane id="Scope" />
|
|
||||||
<pane id="PackagesPane" />
|
<pane id="PackagesPane" />
|
||||||
|
<pane id="Scope" />
|
||||||
</panes>
|
</panes>
|
||||||
</component>
|
</component>
|
||||||
<component name="PropertiesComponent">
|
<component name="PropertiesComponent">
|
||||||
<property name="ChangesTree.GroupingKeys" value="" />
|
<property name="ChangesTree.GroupingKeys" value="" />
|
||||||
<property name="WebServerToolWindowFactoryState" value="false" />
|
<property name="WebServerToolWindowFactoryState" value="false" />
|
||||||
<property name="aspect.path.notification.shown" value="true" />
|
<property name="aspect.path.notification.shown" value="true" />
|
||||||
<property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1553647592854" />
|
<property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1554589447322" />
|
||||||
<property name="extract.method.default.visibility" value="public" />
|
<property name="extract.method.default.visibility" value="public" />
|
||||||
<property name="last_opened_file_path" value="$PROJECT_DIR$/../GitHub/Cpsc233" />
|
<property name="last_opened_file_path" value="$PROJECT_DIR$/../GitHub/Cpsc233" />
|
||||||
<property name="project.structure.last.edited" value="Modules" />
|
<property name="project.structure.last.edited" value="Modules" />
|
||||||
@@ -308,28 +354,9 @@
|
|||||||
<workItem from="1553444769737" duration="82000" />
|
<workItem from="1553444769737" duration="82000" />
|
||||||
<workItem from="1553444880371" duration="36052000" />
|
<workItem from="1553444880371" duration="36052000" />
|
||||||
<workItem from="1553560570410" duration="3016000" />
|
<workItem from="1553560570410" duration="3016000" />
|
||||||
<workItem from="1553832002953" duration="139000" />
|
<workItem from="1553832002953" duration="940000" />
|
||||||
</task>
|
<workItem from="1554082372500" duration="879000" />
|
||||||
<task id="LOCAL-00012" summary="Added time stuff to Shipwarfare GUI">
|
<workItem from="1554159550800" duration="10940000" />
|
||||||
<created>1552168801248</created>
|
|
||||||
<option name="number" value="00012" />
|
|
||||||
<option name="presentableId" value="LOCAL-00012" />
|
|
||||||
<option name="project" value="LOCAL" />
|
|
||||||
<updated>1552168801248</updated>
|
|
||||||
</task>
|
|
||||||
<task id="LOCAL-00013" summary="Notified of getting attacked">
|
|
||||||
<created>1552172956109</created>
|
|
||||||
<option name="number" value="00013" />
|
|
||||||
<option name="presentableId" value="LOCAL-00013" />
|
|
||||||
<option name="project" value="LOCAL" />
|
|
||||||
<updated>1552172956109</updated>
|
|
||||||
</task>
|
|
||||||
<task id="LOCAL-00014" summary="Added fight stuff">
|
|
||||||
<created>1552173216531</created>
|
|
||||||
<option name="number" value="00014" />
|
|
||||||
<option name="presentableId" value="LOCAL-00014" />
|
|
||||||
<option name="project" value="LOCAL" />
|
|
||||||
<updated>1552173216532</updated>
|
|
||||||
</task>
|
</task>
|
||||||
<task id="LOCAL-00015" summary="Made ShipWarfare easier to access by ShipWarfareGUI">
|
<task id="LOCAL-00015" summary="Made ShipWarfare easier to access by ShipWarfareGUI">
|
||||||
<created>1552181324520</created>
|
<created>1552181324520</created>
|
||||||
@@ -653,17 +680,37 @@
|
|||||||
<option name="project" value="LOCAL" />
|
<option name="project" value="LOCAL" />
|
||||||
<updated>1553560337526</updated>
|
<updated>1553560337526</updated>
|
||||||
</task>
|
</task>
|
||||||
<option name="localTasksCounter" value="61" />
|
<task id="LOCAL-00061" summary="Playing with miss animation">
|
||||||
|
<created>1553869256642</created>
|
||||||
|
<option name="number" value="00061" />
|
||||||
|
<option name="presentableId" value="LOCAL-00061" />
|
||||||
|
<option name="project" value="LOCAL" />
|
||||||
|
<updated>1553869256642</updated>
|
||||||
|
</task>
|
||||||
|
<task id="LOCAL-00062" summary="Failed attempt at separating logic and GUI but saving just in case I need it later">
|
||||||
|
<created>1554437585221</created>
|
||||||
|
<option name="number" value="00062" />
|
||||||
|
<option name="presentableId" value="LOCAL-00062" />
|
||||||
|
<option name="project" value="LOCAL" />
|
||||||
|
<updated>1554437585221</updated>
|
||||||
|
</task>
|
||||||
|
<task id="LOCAL-00063" summary="Failed attempt at separating logic and GUI but saving just in case I need it later">
|
||||||
|
<created>1554585714023</created>
|
||||||
|
<option name="number" value="00063" />
|
||||||
|
<option name="presentableId" value="LOCAL-00063" />
|
||||||
|
<option name="project" value="LOCAL" />
|
||||||
|
<updated>1554585714024</updated>
|
||||||
|
</task>
|
||||||
|
<option name="localTasksCounter" value="64" />
|
||||||
<servers />
|
<servers />
|
||||||
</component>
|
</component>
|
||||||
<component name="TimeTrackingManager">
|
<component name="TimeTrackingManager">
|
||||||
<option name="totallyTimeSpent" value="169876000" />
|
<option name="totallyTimeSpent" value="182496000" />
|
||||||
</component>
|
</component>
|
||||||
<component name="ToolWindowManager">
|
<component name="ToolWindowManager">
|
||||||
<frame x="0" y="23" width="1189" height="652" extended-state="0" />
|
<frame x="0" y="23" width="1189" height="652" extended-state="0" />
|
||||||
<editor active="true" />
|
|
||||||
<layout>
|
<layout>
|
||||||
<window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.22755013" />
|
<window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.23452485" />
|
||||||
<window_info id="Structure" order="1" side_tool="true" weight="0.25" />
|
<window_info id="Structure" order="1" side_tool="true" weight="0.25" />
|
||||||
<window_info id="Image Layers" order="2" />
|
<window_info id="Image Layers" order="2" />
|
||||||
<window_info id="Designer" order="3" />
|
<window_info id="Designer" order="3" />
|
||||||
@@ -672,7 +719,7 @@
|
|||||||
<window_info id="Favorites" order="6" side_tool="true" />
|
<window_info id="Favorites" order="6" side_tool="true" />
|
||||||
<window_info anchor="bottom" id="Message" order="0" />
|
<window_info anchor="bottom" id="Message" order="0" />
|
||||||
<window_info anchor="bottom" id="Find" order="1" weight="0.32922733" />
|
<window_info anchor="bottom" id="Find" order="1" weight="0.32922733" />
|
||||||
<window_info anchor="bottom" id="Run" order="2" weight="0.22678572" />
|
<window_info active="true" anchor="bottom" id="Run" order="2" visible="true" weight="0.22678572" />
|
||||||
<window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
|
<window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
|
||||||
<window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
|
<window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
|
||||||
<window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
|
<window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
|
||||||
@@ -760,8 +807,6 @@
|
|||||||
<ignored-roots>
|
<ignored-roots>
|
||||||
<path value="$PROJECT_DIR$" />
|
<path value="$PROJECT_DIR$" />
|
||||||
</ignored-roots>
|
</ignored-roots>
|
||||||
<MESSAGE value="Completed javadocs for shipwarfare GUI" />
|
|
||||||
<MESSAGE value="Added to my javadocs a bit" />
|
|
||||||
<MESSAGE value="Changed one line of text in shipwarfare GUI" />
|
<MESSAGE value="Changed one line of text in shipwarfare GUI" />
|
||||||
<MESSAGE value="Fixed output for start and TaipanShop GUI" />
|
<MESSAGE value="Fixed output for start and TaipanShop GUI" />
|
||||||
<MESSAGE value="Added JavaDocs for ShipWarfare" />
|
<MESSAGE value="Added JavaDocs for ShipWarfare" />
|
||||||
@@ -785,7 +830,9 @@
|
|||||||
<MESSAGE value="Ship Warfare "dang it" issue fixed" />
|
<MESSAGE value="Ship Warfare "dang it" issue fixed" />
|
||||||
<MESSAGE value="Fixed an issue with shipWarfare with the ships running away label" />
|
<MESSAGE value="Fixed an issue with shipWarfare with the ships running away label" />
|
||||||
<MESSAGE value="Fixed an issue with ShipWarfareGUI with the ships running away label" />
|
<MESSAGE value="Fixed an issue with ShipWarfareGUI with the ships running away label" />
|
||||||
<option name="LAST_COMMIT_MESSAGE" value="Fixed an issue with ShipWarfareGUI with the ships running away label" />
|
<MESSAGE value="Playing with miss animation" />
|
||||||
|
<MESSAGE value="Failed attempt at separating logic and GUI but saving just in case I need it later" />
|
||||||
|
<option name="LAST_COMMIT_MESSAGE" value="Failed attempt at separating logic and GUI but saving just in case I need it later" />
|
||||||
</component>
|
</component>
|
||||||
<component name="editorHistoryManager">
|
<component name="editorHistoryManager">
|
||||||
<entry file="uml://JAVA/ShipWarfare">
|
<entry file="uml://JAVA/ShipWarfare">
|
||||||
@@ -917,17 +964,10 @@
|
|||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/src/TravelGUI.java">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state relative-caret-position="2550">
|
|
||||||
<caret line="188" column="11" selection-start-line="188" selection-start-column="11" selection-end-line="188" selection-end-column="11" />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/src/TaipanShopGUI.java">
|
<entry file="file://$PROJECT_DIR$/src/TaipanShopGUI.java">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state relative-caret-position="291">
|
<state relative-caret-position="3825">
|
||||||
<caret line="277" column="43" selection-start-line="277" selection-start-column="43" selection-end-line="277" selection-end-column="43" />
|
<caret line="269" column="66" selection-start-line="269" selection-start-column="66" selection-end-line="269" selection-end-column="67" />
|
||||||
<folding>
|
<folding>
|
||||||
<element signature="n#!!doc" expanded="true" />
|
<element signature="n#!!doc" expanded="true" />
|
||||||
</folding>
|
</folding>
|
||||||
@@ -936,8 +976,8 @@
|
|||||||
</entry>
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/src/MainGUI.java">
|
<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="315">
|
<state relative-caret-position="210">
|
||||||
<caret line="24" column="41" selection-start-line="24" selection-start-column="41" selection-end-line="24" selection-end-column="41" />
|
<caret line="15" column="6" selection-start-line="15" selection-start-column="6" selection-end-line="15" selection-end-column="6" />
|
||||||
<folding>
|
<folding>
|
||||||
<element signature="e#551#552#0" expanded="true" />
|
<element signature="e#551#552#0" expanded="true" />
|
||||||
<element signature="e#579#580#0" expanded="true" />
|
<element signature="e#579#580#0" expanded="true" />
|
||||||
@@ -945,10 +985,58 @@
|
|||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/src/TaipanShopText.java">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="262">
|
||||||
|
<caret line="22" column="48" lean-forward="true" selection-start-line="22" selection-start-column="48" selection-end-line="22" selection-end-column="48" />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/src/TravelGUI.java">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="119">
|
||||||
|
<caret line="178" selection-start-line="178" selection-end-line="178" />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/src/ShipWarfareGUILogic.java">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="-1415">
|
||||||
|
<caret line="43" column="53" lean-forward="true" selection-start-line="43" selection-start-column="35" selection-end-line="43" selection-end-column="53" />
|
||||||
|
<folding>
|
||||||
|
<element signature="imports" expanded="true" />
|
||||||
|
<element signature="e#1238#1239#0" expanded="true" />
|
||||||
|
<element signature="e#1275#1276#0" expanded="true" />
|
||||||
|
<element signature="e#1675#1676#0" expanded="true" />
|
||||||
|
<element signature="e#1710#1711#0" expanded="true" />
|
||||||
|
<element signature="e#1766#1767#0" expanded="true" />
|
||||||
|
<element signature="e#1814#1815#0" expanded="true" />
|
||||||
|
<element signature="e#1854#1855#0" expanded="true" />
|
||||||
|
<element signature="e#1890#1891#0" expanded="true" />
|
||||||
|
<element signature="e#1948#1949#0" expanded="true" />
|
||||||
|
<element signature="e#1998#1999#0" expanded="true" />
|
||||||
|
<element signature="e#2047#2048#0" expanded="true" />
|
||||||
|
<element signature="e#2092#2093#0" expanded="true" />
|
||||||
|
<element signature="e#2283#2284#0" expanded="true" />
|
||||||
|
<element signature="e#2326#2327#0" expanded="true" />
|
||||||
|
<element signature="e#2510#2511#0" expanded="true" />
|
||||||
|
<element signature="e#2554#2555#0" expanded="true" />
|
||||||
|
<element signature="e#2734#2735#0" expanded="true" />
|
||||||
|
<element signature="e#2770#2771#0" expanded="true" />
|
||||||
|
<element signature="e#2828#2829#0" expanded="true" />
|
||||||
|
<element signature="e#2878#2879#0" expanded="true" />
|
||||||
|
<element signature="e#2960#2961#0" expanded="true" />
|
||||||
|
<element signature="e#2989#2990#0" expanded="true" />
|
||||||
|
<element signature="e#3030#3031#0" expanded="true" />
|
||||||
|
<element signature="e#3066#3067#0" expanded="true" />
|
||||||
|
</folding>
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/src/ShipWarfareGUI.java">
|
<entry file="file://$PROJECT_DIR$/src/ShipWarfareGUI.java">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state relative-caret-position="322">
|
<state relative-caret-position="-3881">
|
||||||
<caret line="589" column="27" selection-start-line="589" selection-start-column="27" selection-end-line="589" selection-end-column="27" />
|
<caret line="159" selection-start-line="159" selection-end-line="159" />
|
||||||
<folding>
|
<folding>
|
||||||
<element signature="imports" expanded="true" />
|
<element signature="imports" expanded="true" />
|
||||||
</folding>
|
</folding>
|
||||||
|
|||||||
@@ -28,7 +28,6 @@ import java.util.concurrent.ExecutionException;
|
|||||||
|
|
||||||
public class ShipWarfareGUI extends Player {
|
public class ShipWarfareGUI extends Player {
|
||||||
|
|
||||||
private ShipWarfareGUILogic logic;
|
|
||||||
private Circle cannon;
|
private Circle cannon;
|
||||||
private VBox buttonBox;
|
private VBox buttonBox;
|
||||||
private HBox fightRunBox;
|
private HBox fightRunBox;
|
||||||
@@ -49,7 +48,6 @@ public class ShipWarfareGUI extends Player {
|
|||||||
private int checkIfDone;
|
private int checkIfDone;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
private int timeCounter;
|
private int timeCounter;
|
||||||
|
|
||||||
|
|
||||||
@@ -73,9 +71,6 @@ public class ShipWarfareGUI extends Player {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets most of the labels invisible except for the "fight or run" label
|
* Sets most of the labels invisible except for the "fight or run" label
|
||||||
*/
|
*/
|
||||||
@@ -102,9 +97,6 @@ public class ShipWarfareGUI extends Player {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Player attacks enemy ships in an animation
|
* Player attacks enemy ships in an animation
|
||||||
*/
|
*/
|
||||||
@@ -163,8 +155,11 @@ public class ShipWarfareGUI extends Player {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean winOrLose( Stage stage){
|
public boolean winOrLose(Stage stage) {
|
||||||
if (logic.destroyLittyShipsOrEscape() == 1) {
|
ShipWarfareGUILogic logic = new ShipWarfareGUILogic(getPlayer());
|
||||||
|
|
||||||
|
int commenceFire = logic.destroyLittyShipsOrEscape();
|
||||||
|
if (commenceFire == 1) {
|
||||||
wipe();
|
wipe();
|
||||||
report.setText(logic.getReportMessage());
|
report.setText(logic.getReportMessage());
|
||||||
continueButton.setVisible(true);
|
continueButton.setVisible(true);
|
||||||
@@ -175,13 +170,14 @@ public class ShipWarfareGUI extends Player {
|
|||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
|
||||||
} else if (logic.destroyLittyShipsOrEscape() == 2) {
|
} else if (commenceFire == 2) {
|
||||||
GameEndGUI gameEndGUI = new GameEndGUI(getPlayer());
|
GameEndGUI gameEndGUI = new GameEndGUI(getPlayer());
|
||||||
gameEndGUI.initializeGameEndGUI(stage);
|
gameEndGUI.initializeGameEndGUI(stage);
|
||||||
stage.show();
|
stage.show();
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
} else if (logic.destroyLittyShipsOrEscape() == 3) {
|
} else if (commenceFire == 3) {
|
||||||
|
|
||||||
report.setText(logic.getReportMessage());
|
report.setText(logic.getReportMessage());
|
||||||
continueButton.setVisible(true);
|
continueButton.setVisible(true);
|
||||||
completeWipe();
|
completeWipe();
|
||||||
@@ -189,15 +185,12 @@ public class ShipWarfareGUI extends Player {
|
|||||||
runButton.setVisible(false);
|
runButton.setVisible(false);
|
||||||
continueButton.setDefaultButton(true);
|
continueButton.setDefaultButton(true);
|
||||||
return true;
|
return true;
|
||||||
}
|
} else {
|
||||||
|
|
||||||
else {
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generaties ships and deploys logic for the shipwarfare
|
* Generaties ships and deploys logic for the shipwarfare
|
||||||
*
|
*
|
||||||
@@ -223,7 +216,7 @@ public class ShipWarfareGUI extends Player {
|
|||||||
BorderPane encompassingPane = new BorderPane();
|
BorderPane encompassingPane = new BorderPane();
|
||||||
HBox usAgainstEnemyDivisor = new HBox();
|
HBox usAgainstEnemyDivisor = new HBox();
|
||||||
Circle cannon = new Circle();
|
Circle cannon = new Circle();
|
||||||
logic = new ShipWarfareGUILogic(getPlayer());
|
ShipWarfareGUILogic logic = new ShipWarfareGUILogic(getPlayer());
|
||||||
|
|
||||||
|
|
||||||
cannon.setLayoutX(beginningX);
|
cannon.setLayoutX(beginningX);
|
||||||
@@ -391,20 +384,22 @@ public class ShipWarfareGUI extends Player {
|
|||||||
title.setText("Ayy captain we will try to run!");
|
title.setText("Ayy captain we will try to run!");
|
||||||
report.setText("Epic");
|
report.setText("Epic");
|
||||||
counter++;
|
counter++;
|
||||||
|
ShipWarfareGUILogic logic = new ShipWarfareGUILogic(getPlayer());
|
||||||
if (logic.runFromShips() == false) {
|
if (logic.runFromShips() == false) {
|
||||||
report.setText(("Couldn't run away"));
|
report.setText(("Couldn't run away"));
|
||||||
try {
|
try {
|
||||||
checkIfDone = logic.destroyLittyShipsOrEscape();
|
checkIfDone = logic.destroyLittyShipsOrEscape();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
if (checkIfDone != 4 ) {
|
if (checkIfDone != 4) {
|
||||||
report.setVisible(true);
|
report.setVisible(true);
|
||||||
title.setVisible(true);
|
title.setVisible(true);
|
||||||
shipsRemaining.setVisible(true);
|
shipsRemaining.setVisible(true);
|
||||||
gunsLeftOrTaken.setVisible(true);
|
gunsLeftOrTaken.setVisible(true);
|
||||||
|
|
||||||
|
} else {
|
||||||
|
gunsLeftOrTaken.setText("AYYYY");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
@@ -435,7 +430,7 @@ public class ShipWarfareGUI extends Player {
|
|||||||
runButton.setVisible(false);
|
runButton.setVisible(false);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
winOrLose(primaryStage);
|
winOrLose(primaryStage);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
@@ -461,7 +456,7 @@ public class ShipWarfareGUI extends Player {
|
|||||||
*/
|
*/
|
||||||
public void handle(ActionEvent event) {
|
public void handle(ActionEvent event) {
|
||||||
shotsFired.stop();
|
shotsFired.stop();
|
||||||
if (checkIfDone==4) {
|
if (checkIfDone == 4) {
|
||||||
shipsRetaliate();
|
shipsRetaliate();
|
||||||
} else {
|
} else {
|
||||||
report.setVisible(true);
|
report.setVisible(true);
|
||||||
|
|||||||
@@ -271,7 +271,8 @@ public class ShipWarfareGUILogic extends Player {
|
|||||||
|
|
||||||
if (exitValue == 1) {
|
if (exitValue == 1) {
|
||||||
setAvenue(1);
|
setAvenue(1);
|
||||||
calculateLoot = (startingLittyShips * 100) + randomValue.nextInt(startingLittyShips) * 200;
|
//calculateLoot = (startingLittyShips * 100) + randomValue.nextInt(startingLittyShips) * 200;
|
||||||
|
calculateLoot = 100;
|
||||||
setMoney(getMoney() + calculateLoot);
|
setMoney(getMoney() + calculateLoot);
|
||||||
setReportMessage(String.format("Our firm has earned $%,d in loot! ", calculateLoot));
|
setReportMessage(String.format("Our firm has earned $%,d in loot! ", calculateLoot));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user