Merge branch 'master' of C:\Users\Harkamal Randhawa\IdeaProjects\TaipanClone with conflicts.
This commit is contained in:
6
.idea/cssdialects.xml
generated
Normal file
6
.idea/cssdialects.xml
generated
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="CssDialectMappings">
|
||||||
|
<file url="file://$PROJECT_DIR$/src/styleguide.css" dialect="CLASSIC" />
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
3
.idea/encodings.xml
generated
3
.idea/encodings.xml
generated
@@ -1,6 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="Encoding" addBOMForNewFiles="with NO BOM">
|
<component name="Encoding">
|
||||||
|
<file url="file://$PROJECT_DIR$/src/saves/playerSave.txt" charset="windows-1252" />
|
||||||
<file url="PROJECT" charset="UTF-8" />
|
<file url="PROJECT" charset="UTF-8" />
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
||||||
2
.idea/misc.xml
generated
2
.idea/misc.xml
generated
@@ -9,7 +9,7 @@
|
|||||||
<component name="ProjectKey">
|
<component name="ProjectKey">
|
||||||
<option name="state" value="project://63537948-39a4-48a0-9c97-34259a0fa913" />
|
<option name="state" value="project://63537948-39a4-48a0-9c97-34259a0fa913" />
|
||||||
</component>
|
</component>
|
||||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8.0_201" project-jdk-type="JavaSDK">
|
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8.0_141" project-jdk-type="JavaSDK">
|
||||||
<output url="file://$PROJECT_DIR$/out" />
|
<output url="file://$PROJECT_DIR$/out" />
|
||||||
</component>
|
</component>
|
||||||
<component name="SvnBranchConfigurationManager">
|
<component name="SvnBranchConfigurationManager">
|
||||||
|
|||||||
802
.idea/workspace.xml
generated
802
.idea/workspace.xml
generated
File diff suppressed because it is too large
Load Diff
@@ -1,7 +1,7 @@
|
|||||||
import java.io.*;
|
import java.io.*;
|
||||||
/**
|
/**
|
||||||
* 2019-03-10 (Edited on 2019-03-19)
|
* 2019-03-10 (Edited on 2019-03-19)
|
||||||
* Authors:
|
* Authors:
|
||||||
* FileSaving Class allows the user to save the current status of the game and to continue from where they left off.
|
* FileSaving Class allows the user to save the current status of the game and to continue from where they left off.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -37,6 +37,10 @@ public class FileSaving extends Player implements Serializable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Saves the file of type player which contains all the player instances
|
||||||
|
* @param player The player object being saved
|
||||||
|
*/
|
||||||
public boolean saveFile(Player player){
|
public boolean saveFile(Player player){
|
||||||
try{
|
try{
|
||||||
FileOutputStream out = new FileOutputStream(new File("src/saves/playerSave.txt"));
|
FileOutputStream out = new FileOutputStream(new File("src/saves/playerSave.txt"));
|
||||||
@@ -64,6 +68,4 @@ public class FileSaving extends Player implements Serializable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user