net.sf.colossus.client
Class CreatureInfo

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

Field Summary
private  boolean atSplit
           
private  boolean certain
           
private  CreatureType type
           
 
Constructor Summary
CreatureInfo(CreatureType type, boolean certain, boolean atSplit)
           
 
Method Summary
 CreatureInfo clone()
           
 boolean equals(java.lang.Object other)
          Two CreatureInfo objects match if the types match.
 CreatureType getCreatureType()
           
(package private)  java.lang.String getName()
           
 int hashCode()
          Two CreatureInfo objects match if the names match.
(package private)  boolean isAtSplit()
           
(package private)  boolean isCertain()
           
(package private)  void setAtSplit(boolean atSplit)
           
(package private)  void setCertain(boolean certain)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

type

private final CreatureType type

certain

private boolean certain

atSplit

private boolean atSplit
Constructor Detail

CreatureInfo

CreatureInfo(CreatureType type,
             boolean certain,
             boolean atSplit)
Method Detail

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()