|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.croftsoft.core.animation.model.seri.SeriWorld
public class SeriWorld
A World implementation.
Field Summary | |
---|---|
protected ArrayKeeper |
modelArrayKeeper
|
Constructor Summary | |
---|---|
SeriWorld()
|
Method Summary | |
---|---|
void |
clear()
|
Impassable[] |
getImpassables()
|
Iterator |
getImpassables(Shape shape,
Model model)
|
Model |
getModel(PointXY pointXY,
Class[] classes,
Model model)
Gets an active Model that contains the point. |
ModelAccessor[] |
getModelAccessors(ModelAccessor[] modelAccessors)
Gets all ModelAccessors, active and inactive. |
ModelAccessor[] |
getModelAccessors(Shape shape,
ModelAccessor[] modelAccessors)
|
Model |
getModelClosest(PointXY pointXY,
Class c,
Model model)
|
Model[] |
getModels()
|
Model[] |
getModels(Class c)
|
Model[] |
getModels(PointXY pointXY,
Model[] models,
Class c)
|
Model[] |
getModels(Shape shape,
Model[] models,
Class c)
|
boolean |
isBlocked(Model model)
Determines whether an active Impassable overlaps the model shape. |
boolean |
isBlocked(Shape shape,
Model model)
Determines whether an active Impassable overlaps the shape. |
boolean |
isCleared()
|
void |
prepare()
|
void |
remove(Model model)
|
void |
update(double timeDelta)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final ArrayKeeper modelArrayKeeper
Constructor Detail |
---|
public SeriWorld()
Method Detail |
---|
public void clear()
clear
in interface World
public void remove(Model model)
remove
in interface World
public Impassable[] getImpassables()
public Iterator getImpassables(Shape shape, Model model)
public Model[] getModels()
getModels
in interface World
public ModelAccessor[] getModelAccessors(ModelAccessor[] modelAccessors)
WorldAccessor
getModelAccessors
in interface WorldAccessor
public ModelAccessor[] getModelAccessors(Shape shape, ModelAccessor[] modelAccessors)
public boolean isBlocked(Shape shape, Model model)
World
isBlocked
in interface World
model
- The model to ignore.public boolean isBlocked(Model model)
World
isBlocked
in interface World
public Model getModel(PointXY pointXY, Class[] classes, Model model)
World
getModel
in interface World
classes
- The returned Model will be an instance of one of the classes.model
- The Model to ignore, usually the one calling this method.public Model[] getModels(Class c)
public Model[] getModels(PointXY pointXY, Model[] models, Class c)
public Model[] getModels(Shape shape, Model[] models, Class c)
public Model getModelClosest(PointXY pointXY, Class c, Model model)
public boolean isCleared()
isCleared
in interface WorldAccessor
public void prepare()
prepare
in interface World
public void update(double timeDelta)
update
in interface World
|
CroftSoft Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |