com.croftsoft.apps.mars.model.seri
Class SeriObstacle
java.lang.Object
com.croftsoft.apps.mars.model.seri.SeriModel
com.croftsoft.apps.mars.model.seri.SeriObstacle
- All Implemented Interfaces:
- Damageable, Impassable, Model, ModelAccessor, Obstacle, ObstacleAccessor, Serializable, Comparable
public final class SeriObstacle
- extends SeriModel
- implements Obstacle
An obstacle.
- Since:
- 2003-03-30
- Version:
- 2003-05-11
- See Also:
- Serialized Form
- Author:
- David Wallace Croft
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SeriObstacle
public SeriObstacle(World world,
double centerX,
double centerY,
double radius,
double radiusMin,
Random random,
Rectangle driftBounds)
isActive
public boolean isActive()
- Specified by:
isActive in interface ModelAccessor
getShape
public Shape getShape()
- Specified by:
getShape in interface ModelAccessor
isUpdated
public boolean isUpdated()
- Specified by:
isUpdated in interface ModelAccessor
getZ
public double getZ()
- Specified by:
getZ in interface ModelAccessor
setCenter
public void setCenter(double x,
double y)
- Specified by:
setCenter in interface Model
prepare
public void prepare()
- Specified by:
prepare in interface Model
update
public void update(double timeDelta)
- Specified by:
update in interface Model
addDamage
public void addDamage(double damage)
- Specified by:
addDamage in interface Damageable
setActive
public void setActive(boolean active)
- Specified by:
setActive in interface Obstacle
setRadius
public void setRadius(double radius)
- Specified by:
setRadius in interface Obstacle
CroftSoft Apps Javadoc (2008-09-28 21:15:07)