Package event
Class CollisionEvent
java.lang.Object
event.GameEvent
event.CollisionEvent
Provides a representation for a two-way collision between entities.
The collision event contains the references of the colliding bodies,
and a string comment.
- Author:
- Krish Pillai
-
Constructor Summary
ConstructorsConstructorDescriptionCopy constructorConstructor for two-way collision.CollisionEvent(EntityModel a, EntityModel b, String comment) Constructor for two-way collision. -
Method Summary
Methods inherited from class event.GameEvent
getDescription, toString
-
Constructor Details
-
CollisionEvent
Constructor for two-way collision.- Parameters:
a- The colliding entityb- The other entity involved- See Also:
-
CollisionEvent
Constructor for two-way collision.- Parameters:
a- The colliding entityb- The other entity involvedcomment- , message, or descriptor for the event
-
CollisionEvent
Copy constructor- Parameters:
e- The other event
-
-
Method Details