atavism.server.objects
Class ObjState
java.lang.Object
atavism.server.objects.ObjState
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- BinaryState
public abstract class ObjState
- extends java.lang.Object
- implements java.io.Serializable
interface to implement an object state, such a "DeathState",
"CombatState", etc. States should be serializable into
a String for the state name, and an integer representing the
value. This allows the state to be serialized to the client if
needed. If the state is server side only, then it is not important.
All states should be serializable so they can be stored into
the database along with the object
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
ObjState
public ObjState()
getIntValue
public abstract java.lang.Integer getIntValue()
getStateName
public abstract java.lang.String getStateName()
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in class java.lang.Object