Package event
Class MessageEvent
java.lang.Object
event.GameEvent
event.MessageEvent
Represents an event containing information about the sender and the the message (command) as a string.
- Author:
- Krish Pillai
-
Constructor Summary
ConstructorsConstructorDescriptionCopy constructorMessageEvent(EntityModel sender, String command) Constructor for the MessageEventMessageEvent(EntityModel sender, EntityModel entity, String command) -
Method Summary
Modifier and TypeMethodDescriptionReturns the entity that originated this eventtoString()Returns a string representation of the eventMethods inherited from class event.GameEvent
equals, getDescription
-
Constructor Details
-
MessageEvent
Constructor for the MessageEvent- Parameters:
sender- The entity originating this messagecommand- A string command with an implementation specific meaning
-
MessageEvent
-
MessageEvent
Copy constructor- Parameters:
e- The event to be duplicated
-
-
Method Details