cad.simcad.worldsimulator.objects.units
Class Car

java.lang.Object
  |
  +--cad.simcad.worldsimulator.objects.SimulatedObject
        |
        +--cad.simcad.worldsimulator.objects.units.MyUnit
              |
              +--cad.simcad.worldsimulator.objects.units.Car
All Implemented Interfaces:
Drawable2DObject, PathUser, java.io.Serializable, SimObject

public class Car
extends MyUnit

Author:
Administrator
See Also:
Serialized Form

Field Summary
 
Fields inherited from class cad.simcad.worldsimulator.objects.units.MyUnit
_baseTurnIncrement, _boundingRadius, _pp, _previousOne, _recomputing, _savedMovPoints, _state, _uc, _um, _velocity, IncrementWaypoint, ReachedGoal, WaitingForPath
 
Fields inherited from class cad.simcad.worldsimulator.objects.SimulatedObject
_am, _className, _height, _id, _name, _om, _owner, _serial, _sime, _stateId, _width
 
Constructor Summary
Car(SimEnvironment sime, PathPlace mp, UnitMediator um, Owner owner)
          Creates a new instance of Car
 
Method Summary
 double getDeformFactor()
          Returns the deform factor of the Path user.
 double getMaxSteepNessRatio()
          Return the maximum slope ratio the PathUser can walk on.
 
Methods inherited from class cad.simcad.worldsimulator.objects.units.MyUnit
debug, firePathComputed, getBoundingCircleRadius, getCurrentPathPlace, getHeight, getMiniMapColor, getObjectType, getOwner, getUnitControler, getVelocity, getWidth, getX, getY, isCollision, move, resolveNewMove, setState, setVelocity, stopObject, stopUnit, takeTurn, updateStateId
 
Methods inherited from class cad.simcad.worldsimulator.objects.SimulatedObject
getClassName, getId, getName, getSerialNumber, getStateId, 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.pathfinding.PathUser
getId, getName
 

Constructor Detail

Car

public Car(SimEnvironment sime,
           PathPlace mp,
           UnitMediator um,
           Owner owner)
Creates a new instance of Car

Method Detail

getDeformFactor

public double getDeformFactor()
Returns the deform factor of the Path user. The Deform factor is a ratio. 0 means the PathUser shrink completely to pass through holes infinitely small 1 means the PathUser is unabled to shrink 0.5 means the PathUser can shrink to half its size. Usually, most mechanical objects will have a deform factor of 1. While human can usually shrink a little to go through narrow pathways

Pre:
-
Returns:
double value
Post:
PathUser's deform factor

getMaxSteepNessRatio

public double getMaxSteepNessRatio()
Return the maximum slope ratio the PathUser can walk on.

Pre:
-
Returns:
double value
Post:
PathUser's Max slope ratio

Logo

With the help of www.sourceforge.net and www.info.ucl.ac.be