com.croftsoft.apps.ajgp.data
Class SerializableGameData
java.lang.Object
com.croftsoft.apps.ajgp.data.SerializableGameData
- All Implemented Interfaces:
- GameData, Testable, Serializable
public final class SerializableGameData
- extends Object
- implements Serializable, GameData, Testable
Example data object for Data Persistence chapter.
- Since:
- 2003-03-12
- Version:
- 2003-03-13
- See Also:
- Serialized Form
- Author:
- David Wallace Croft
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SerializableGameData
public SerializableGameData()
main
public static void main(String[] args)
test
public static boolean test(String[] args)
getHealth
public int getHealth()
- Specified by:
getHealth
in interface GameData
getWealth
public int getWealth()
- Specified by:
getWealth
in interface GameData
getWisdom
public int getWisdom()
- Specified by:
getWisdom
in interface GameData
setHealth
public void setHealth(int health)
- Specified by:
setHealth
in interface GameData
setWealth
public void setWealth(int wealth)
- Specified by:
setWealth
in interface GameData
setWisdom
public void setWisdom(int wisdom)
- Specified by:
setWisdom
in interface GameData
CroftSoft Apps Javadoc (2008-09-28 21:15:07)