com.croftsoft.apps.ajgp.data
Class SerializableGameData

java.lang.Object
  extended by 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

Field Summary
 
Fields inherited from interface com.croftsoft.apps.ajgp.data.GameData
DEFAULT_HEALTH, DEFAULT_WEALTH, DEFAULT_WISDOM, MINIMUM_HEALTH, MINIMUM_WEALTH, MINIMUM_WISDOM
 
Constructor Summary
SerializableGameData()
           
 
Method Summary
 int getHealth()
           
 int getWealth()
           
 int getWisdom()
           
static void main(String[] args)
           
 void setHealth(int health)
           
 void setWealth(int wealth)
           
 void setWisdom(int wisdom)
           
static boolean test(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerializableGameData

public SerializableGameData()
Method Detail

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 Javadoc

CroftSoft Apps Javadoc (2008-09-28 21:15:07)