|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--cad.simcad.worldsimulator.objects.SimulatedObject | +--cad.simcad.worldsimulator.objects.buildings.Structure
Field Summary |
Fields inherited from class cad.simcad.worldsimulator.objects.SimulatedObject |
_am, _className, _height, _id, _name, _om, _owner, _serial, _sime, _stateId, _width |
Constructor Summary | |
Structure(SimEnvironment sime,
PathPlace current,
StructureMediator um,
Owner owner,
java.lang.String className)
Creates new Structure |
Method Summary | |
abstract double |
getBoundingCircleRadius()
This allows to ask the radius of the objects bounding circle. |
PathPlace |
getCurrentPathPlace()
Return the PathPlace for this object Could be null |
java.awt.Color |
getMiniMapColor()
Return the Color for a totally zoomed out view |
java.lang.String |
getObjectType()
Return the Type of the SimObject |
abstract int |
getVelocity()
Here the velocity of an object can be asked. |
int |
getX()
Return the X coordinate where the object should be drawn |
int |
getY()
Return the Y coordinate where the object should be drawn |
abstract boolean |
isStatic()
Can the structure move in someway ? |
abstract void |
move()
|
abstract void |
setVelocity(int value)
To change the velocity of an object. |
void |
stopObject()
Stop the object activity |
void |
takeTurn()
This method returns the object name. |
Methods inherited from class cad.simcad.worldsimulator.objects.SimulatedObject |
getClassName, getHeight, getId, getName, getSerialNumber, getStateId, getWidth, setStateId |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface cad.simcad.objectserver.spec.sim.Drawable2DObject |
getHeight, getWidth |
Constructor Detail |
public Structure(SimEnvironment sime, PathPlace current, StructureMediator um, Owner owner, java.lang.String className)
Method Detail |
public void takeTurn()
SimObject
takeTurn
in interface SimObject
public java.awt.Color getMiniMapColor()
Drawable2DObject
getMiniMapColor
in interface Drawable2DObject
public abstract boolean isStatic()
public abstract void move()
public abstract void setVelocity(int value)
public abstract int getVelocity()
public abstract double getBoundingCircleRadius()
getBoundingCircleRadius
in interface SimObject
public int getX()
getX
in interface Drawable2DObject
public int getY()
Drawable2DObject
getY
in interface Drawable2DObject
public java.lang.String getObjectType()
SimObject
getObjectType
in interface SimObject
public PathPlace getCurrentPathPlace()
getCurrentPathPlace
in interface SimObject
getCurrentPathPlace
in class SimulatedObject
public void stopObject()
SimObject
stopObject
in interface SimObject
stopObject
in class SimulatedObject
|
![]() |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |