com.croftsoft.core.animation.model.seri
Class SeriWorld

java.lang.Object
  extended by com.croftsoft.core.animation.model.seri.SeriWorld
All Implemented Interfaces:
World, WorldAccessor, Serializable

public class SeriWorld
extends Object
implements World, Serializable

A World implementation.

Since:
2003-04-03
Version:
2003-06-18
See Also:
Serialized Form
Author:
David Wallace Croft

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

modelArrayKeeper

protected final ArrayKeeper modelArrayKeeper
Constructor Detail

SeriWorld

public SeriWorld()
Method Detail

clear

public void clear()
Specified by:
clear in interface World

remove

public void remove(Model model)
Specified by:
remove in interface World

getImpassables

public Impassable[] getImpassables()

getImpassables

public Iterator getImpassables(Shape shape,
                               Model model)

getModels

public Model[] getModels()
Specified by:
getModels in interface World

getModelAccessors

public ModelAccessor[] getModelAccessors(ModelAccessor[] modelAccessors)
Description copied from interface: WorldAccessor
Gets all ModelAccessors, active and inactive.

Specified by:
getModelAccessors in interface WorldAccessor

getModelAccessors

public ModelAccessor[] getModelAccessors(Shape shape,
                                         ModelAccessor[] modelAccessors)

isBlocked

public boolean isBlocked(Shape shape,
                         Model model)
Description copied from interface: World
Determines whether an active Impassable overlaps the shape.

Specified by:
isBlocked in interface World
model - The model to ignore.

isBlocked

public boolean isBlocked(Model model)
Description copied from interface: World
Determines whether an active Impassable overlaps the model shape.

Specified by:
isBlocked in interface World

getModel

public Model getModel(PointXY pointXY,
                      Class[] classes,
                      Model model)
Description copied from interface: World
Gets an active Model that contains the point.

Specified by:
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.

getModels

public Model[] getModels(Class c)

getModels

public Model[] getModels(PointXY pointXY,
                         Model[] models,
                         Class c)

getModels

public Model[] getModels(Shape shape,
                         Model[] models,
                         Class c)

getModelClosest

public Model getModelClosest(PointXY pointXY,
                             Class c,
                             Model model)

isCleared

public boolean isCleared()
Specified by:
isCleared in interface WorldAccessor

prepare

public void prepare()
Specified by:
prepare in interface World

update

public void update(double timeDelta)
Specified by:
update in interface World

CroftSoft Javadoc

CroftSoft Core Javadoc (2008-09-28 20:58:02)