|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eviline.ai.Context
org.eviline.ai.QueueContext
public class QueueContext
Context
for a decision-tree whose list of shapes is already decided.
A QueueContext
is used instead for determining the optimal shape placements
that a user will make.
Field Summary | |
---|---|
QueueContext |
deeper
The decided-on context, one level deeper |
ShapeType[] |
queue
The queue of known upcoming shapes |
QueueContext |
shallower
The parent of this context |
ShapeType |
type
The current shape type in the shape queue |
Fields inherited from class org.eviline.ai.Context |
---|
ai, decisionModifier, omit, original, paintedImpossible, remainingDepth |
Constructor Summary | |
---|---|
QueueContext(AIKernel ai,
Field original,
ShapeType[] queue)
Create a QueueContext for determining the optimal placement of shapes
(from a player's perspective) for the argument Field and ShapeType array. |
Method Summary | |
---|---|
QueueContext |
deeper(Field deeperOriginal)
Construct a Context that is a copy of this one, but for use at one level
deeper in the decision tree. |
QueueContext |
deepest()
Returns the "decided" context, the deepest of the children. |
QueueContext |
shallowest()
Returns the "root" parent QueueContext . |
Methods inherited from class org.eviline.ai.Context |
---|
toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public ShapeType[] queue
public QueueContext deeper
public QueueContext shallower
public ShapeType type
Constructor Detail |
---|
public QueueContext(AIKernel ai, Field original, ShapeType[] queue)
QueueContext
for determining the optimal placement of shapes
(from a player's perspective) for the argument Field
and ShapeType
array.
original
- queue
- Method Detail |
---|
public QueueContext deeper(Field deeperOriginal)
Context
Context
that is a copy of this one, but for use at one level
deeper in the decision tree.
deeper
in class Context
public QueueContext shallowest()
QueueContext
.
public QueueContext deepest()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |