Constructor and Description |
---|
NewtonianBouncer(OdorWorldEntity parentEntity)
Construct the behavior.
|
Modifier and Type | Method and Description |
---|---|
void |
apply(int time)
Apply the rule associated with the behavior.
|
void |
collisionX()
Register a collision in the x direction.
|
void |
collissionY()
Register a collision in the y direction.
|
public NewtonianBouncer(OdorWorldEntity parentEntity)
parentEntity
- the parent entity.public void apply(int time)
Behavior
public void collisionX()
Behavior
collisionX
in interface Behavior
public void collissionY()
Behavior
collissionY
in interface Behavior