net.sf.colossus.client
Class CreatureInfo
java.lang.Object
net.sf.colossus.client.CreatureInfo
- All Implemented Interfaces:
- java.lang.Cloneable
class CreatureInfo
- extends java.lang.Object
- implements java.lang.Cloneable
Basic information about one creature, for split prediction.
- Author:
- David Ripton
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
type
private final CreatureType type
certain
private boolean certain
atSplit
private boolean atSplit
CreatureInfo
CreatureInfo(CreatureType type,
boolean certain,
boolean atSplit)
getName
final java.lang.String getName()
setCertain
void setCertain(boolean certain)
isCertain
boolean isCertain()
setAtSplit
void setAtSplit(boolean atSplit)
isAtSplit
boolean isAtSplit()
clone
public CreatureInfo clone()
- Overrides:
clone
in class java.lang.Object
equals
public boolean equals(java.lang.Object other)
- Two CreatureInfo objects match if the types match.
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Two CreatureInfo objects match if the names match.
- Overrides:
hashCode
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getCreatureType
public CreatureType getCreatureType()