Package event
Class GameEvent
java.lang.Object
event.GameEvent
- Direct Known Subclasses:
BlockedEvent,CollisionEvent,MessageEvent,OutOfBoundsEvent
Provides a representation for any game event.
Contains a description of the event.
- Author:
- Krish Pillai
-
Constructor Summary
ConstructorsConstructorDescriptionCopy constructorGameEvent(EntityModel a, EntityModel b) Constructor for an event involving two entities.GameEvent(EntityModel a, EntityModel b, String description) Constructor for an event involving two entities. -
Method Summary
-
Constructor Details
-
GameEvent
Constructor for an event involving two entities.- Parameters:
a- the first entityb- the second entitydescription- string describing the event- See Also:
-
GameEvent
Constructor for an event involving two entities.- Parameters:
a- the first entityb- the second entity- See Also:
-
GameEvent
Copy constructor- Parameters:
that- the other event
-
-
Method Details