|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eviline.ai.Decision
public class Decision
A decision that can be made by the DefaultAIKernel
.
Field Summary | |
---|---|
List<PlayerAction> |
bestPath
|
Shape |
bestShape
|
int |
bestShapeX
|
int |
bestShapeY
|
Decision |
deeper
One level deeper in the final decision path |
Field |
field
The field that was decided on |
double |
score
The score of this decision |
ShapeType |
type
The shape that was decided on |
double |
worstScore
|
Constructor Summary | |
---|---|
Decision()
|
|
Decision(ShapeType type)
|
|
Decision(ShapeType type,
double score)
|
|
Decision(ShapeType type,
double score,
Field field)
|
|
Decision(ShapeType type,
double score,
Field field,
Shape bestShape,
int bestShapeX,
int bestShapeY)
|
|
Decision(ShapeType type,
Field field)
|
Method Summary | |
---|---|
Decision |
copy()
Copy this Decision |
Decision |
deepest()
Return the deepest decision in the decision path |
String |
taunt()
Generate a string of shapes that represent the decision path |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public double score
public ShapeType type
public Field field
public Shape bestShape
public List<PlayerAction> bestPath
public int bestShapeX
public int bestShapeY
public double worstScore
public volatile Decision deeper
Constructor Detail |
---|
public Decision()
public Decision(ShapeType type)
public Decision(ShapeType type, double score)
public Decision(ShapeType type, Field field)
public Decision(ShapeType type, double score, Field field)
public Decision(ShapeType type, double score, Field field, Shape bestShape, int bestShapeX, int bestShapeY)
Method Detail |
---|
public Decision copy()
Decision
public String toString()
toString
in class Object
public String taunt()
public Decision deepest()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |