public class BumpSensor extends Sensor
Constructor and Description |
---|
BumpSensor(OdorWorldEntity parent,
double bumpVal)
Construct bump sensor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getTypeDescription()
Short description of the sensor type.
|
void |
setBumped(boolean wasBumped) |
void |
update()
Update the sensor.
|
boolean |
wasBumped() |
public BumpSensor(OdorWorldEntity parent, double bumpVal)
parent
- parent entitybumpVal
- valuepublic boolean wasBumped()
public void setBumped(boolean wasBumped)
wasBumped
- the wasBumped to setpublic java.lang.String getTypeDescription()
Sensor
getTypeDescription
in class Sensor