EDU.cmu.cs.coral.simulation
Class RoadSim

java.lang.Object
  |
  +--EDU.cmu.cs.coral.simulation.TerrainSim
        |
        +--EDU.cmu.cs.coral.simulation.RoadSim

public class RoadSim
extends TerrainSim

A road for simulation.

Copyright (c)1998 Tucker Balch and Carnegie Mellon University


Fields inherited from class EDU.cmu.cs.coral.simulation.TerrainSim
DEBUG
 
Constructor Summary
RoadSim()
           
 
Method Summary
 double getTraversability()
          Return the traversability of this terrain.
 
Methods inherited from class EDU.cmu.cs.coral.simulation.TerrainSim
checkCollision, checkCollision, clearTrail, draw, draw, drawIcon, drawID, drawState, drawTrail, getCenter, getClosestPoint, getID, getPosition, getVisionClass, init, init, isObstacle, isPickupable, isPushable, pickUp, push, putDown, quit, receive, setID, setTrailLength, setVisionClass, takeStep
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoadSim

public RoadSim()
Method Detail

getTraversability

public double getTraversability()
Description copied from interface: SimulatedTerrainObject
Return the traversability of this terrain. Values greater than 1.0 indicate faster than normal speeds (e.g. highways) values less than 1.0 indicate slow terrain (e.g. forest, etc).
Overrides:
getTraversability in class TerrainSim