mirror of
https://github.com/darksaid98/AlathranWars.git
synced 2026-12-02 06:28:52 +00:00
Updated WarData.java
- Utilises DataManager.java, no direct file interaction.
This commit is contained in:
1 parent
50738bb784
commit
4bf91d5cd9
2 files changed
+78
-73
No files matched your search
@@ -99,8 +99,8 @@ public class War {
|
||||
return this.side1Towns;
|
||||
}
|
||||
|
||||
public void setSide1Towns(final ArrayList<String> side1Players) {
|
||||
this.side1Towns = side1Players;
|
||||
public void setSide1Towns(final ArrayList<String> side1Towns) {
|
||||
this.side1Towns = side1Towns;
|
||||
}
|
||||
|
||||
public ArrayList<String> getSide2Towns() {
|
||||
@@ -122,23 +122,4 @@ public class War {
|
||||
WarData.saveWar(this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a war object from a provided HashMap
|
||||
* @param fileData
|
||||
* @return War object
|
||||
*/
|
||||
public static War fromMap(HashMap<String, Object> fileData) {
|
||||
|
||||
War war = new War((String) fileData.get("name"),
|
||||
(String) fileData.get("side1"),
|
||||
(String) fileData.get("side2")
|
||||
);
|
||||
|
||||
war.setSide1Towns(null);
|
||||
war.setSide2Towns(null);
|
||||
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user