org.eviline.ai
Class Decision

java.lang.Object
  extended by org.eviline.ai.Decision

public class Decision
extends Object

A decision that can be made by the DefaultAIKernel.

Author:
robin

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

score

public double score
The score of this decision


type

public ShapeType type
The shape that was decided on


field

public Field field
The field that was decided on


bestShape

public Shape bestShape

bestPath

public List<PlayerAction> bestPath

bestShapeX

public int bestShapeX

bestShapeY

public int bestShapeY

worstScore

public double worstScore

deeper

public volatile Decision deeper
One level deeper in the final decision path

Constructor Detail

Decision

public Decision()

Decision

public Decision(ShapeType type)

Decision

public Decision(ShapeType type,
                double score)

Decision

public Decision(ShapeType type,
                Field field)

Decision

public Decision(ShapeType type,
                double score,
                Field field)

Decision

public Decision(ShapeType type,
                double score,
                Field field,
                Shape bestShape,
                int bestShapeX,
                int bestShapeY)
Method Detail

copy

public Decision copy()
Copy this Decision

Returns:

toString

public String toString()
Overrides:
toString in class Object

taunt

public String taunt()
Generate a string of shapes that represent the decision path

Returns:

deepest

public Decision deepest()
Return the deepest decision in the decision path

Returns:


Copyright © 2013. All Rights Reserved.