net.groboclown.util.states.v1
Class State
java.lang.Object
|
+--net.groboclown.util.states.v1.State
- Direct Known Subclasses:
- Transition
- public class State
- extends Object
The basic state object.
- Version:
- 0.9.0 Alpha
- Author:
- Matt Albrecht
Constructor Summary |
protected |
State(int stateCategory,
int stateIndex)
Default Constructor - protected |
Methods inherited from class java.lang.Object |
, clone, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
index
private int index
category
private int category
State
protected State(int stateCategory,
int stateIndex)
- Default Constructor - protected
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashcode
public int hashcode()
isSameCategory
protected boolean isSameCategory(State s)
getIndex
protected int getIndex()
getCategory
protected int getCategory()
Written under the LGPL