Atavism Version 2018.1AGIS API

atavism.server.objects
Class ObjState

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

Constructor Summary
ObjState()
           
 
Method Summary
 boolean equals(java.lang.Object other)
           
abstract  java.lang.Integer getIntValue()
           
abstract  java.lang.String getStateName()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjState

public ObjState()
Method Detail

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


Copyright © 2018 Dragonsan Studios Sp. z o.o.