Back to project page Apocalypse-Defense.
The source code is released under:
MIT License
If you think the Android project Apocalypse-Defense listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.apocalypsedefense.core; /*from w w w . j a v a 2s . c o m*/ import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.Serializable; import java.util.ArrayList; public class GameData implements Serializable { public Map map; public ArrayList<Survivor> survivors; public ArrayList<Zombie> zombies; public int zombieKillCount; public int gold; public int wave; public int towerDeadCount; public void persist(FileOutputStream out) { //TODO save data to file // This method should be fast, otherwise it should be run in background } public static GameData load(FileInputStream in) { //TODO return new GameData(); } }