public class EvilBag7NShapeSource extends Object implements ShapeSource, Cloneable
Modifier and Type | Field and Description |
---|---|
protected AIKernel |
ai |
protected List<ShapeType> |
bag |
static int |
DEFAULT_LOOKAHEAD |
static int |
DEFAULT_N |
static EngineFactory<ShapeSource> |
FACTORY |
protected ShapeType |
forcedNext |
protected int |
lookahead |
protected int |
n |
protected Random |
random |
Constructor and Description |
---|
EvilBag7NShapeSource() |
EvilBag7NShapeSource(int n,
int lookahead) |
Modifier and Type | Method and Description |
---|---|
static EngineFactory<ShapeSource> |
createFactory(int n,
int lookahead) |
AIKernel |
getAi() |
ShapeType[] |
getBag() |
int |
getLookahead() |
List<ShapeType> |
getRawBag() |
ShapeType |
next(Engine engine) |
boolean |
remove(ShapeType type) |
void |
setAi(AIKernel ai) |
void |
setLookahead(int lookahead) |
public static final EngineFactory<ShapeSource> FACTORY
public static final int DEFAULT_N
public static final int DEFAULT_LOOKAHEAD
protected AIKernel ai
protected int n
protected Random random
protected ShapeType forcedNext
protected int lookahead
public EvilBag7NShapeSource()
public EvilBag7NShapeSource(int n, int lookahead)
public static EngineFactory<ShapeSource> createFactory(int n, int lookahead)
public ShapeType next(Engine engine)
next
in interface ShapeSource
public ShapeType[] getBag()
getBag
in interface ShapeSource
public boolean remove(ShapeType type)
remove
in interface ShapeSource
public AIKernel getAi()
public void setAi(AIKernel ai)
public int getLookahead()
public void setLookahead(int lookahead)
Copyright © 2015. All rights reserved.