Back to project page GhostStories.
The source code is released under:
GNU General Public License
If you think the Android project GhostStories 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 games.ghoststories.data; // www. j a va 2 s .c om import java.util.ArrayList; import java.util.Collections; import java.util.List; /** * Data representation of the ghost graveyard. The ghost graveyard contains * all of the ghosts that have been defeated by the players. */ public class GhostGraveyardData { /** * Dispose of the data */ public void dispose() { mGhosts.clear(); } /** * Adds a ghost to the ghost graveyard * @param pGhostData The ghost to add */ public void addGhost(GhostData pGhostData) { mGhosts.add(pGhostData); } /** * @return A list of ghosts in the ghost graveyard */ public List<GhostData> getGhosts() { return Collections.unmodifiableList(mGhosts); } /** The ghosts in the graveyard **/ private final List<GhostData> mGhosts = new ArrayList<GhostData>(); }