Package event
Class BlockedEvent
java.lang.Object
event.GameEvent
event.BlockedEvent
Provides a representation for an event representing the intersection of a moving entity
with an impenetrable entity (Barrier).
The blocking event contains the references of the entity and the barrier involved,
as well as a string comment.
- Author:
- Krish Pillai
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCopy constructorConstructor for two-way collision.BlockedEvent(EntityModel a, BarrierModel b, String description) Constructs an event involving a dynamic entity a and a Barrier b -
Method Summary
Modifier and TypeMethodDescriptionbooleanGetter for the barrier.Getter the first involved entity.Methods inherited from class event.GameEvent
getDescription, toString
-
Constructor Details
-
BlockedEvent
Constructs an event involving a dynamic entity a and a Barrier b- Parameters:
a- the dynamic entityb- the barrierdescription- of the event (message)
-
BlockedEvent
Constructor for two-way collision.- Parameters:
a- The colliding entityb- The other entity involved
-
BlockedEvent
Copy constructor- Parameters:
e- the other event
-
-
Method Details