Closed QuinnBast closed 3 years ago
This task includes creating a specialist class and creating specialists that inherit this class.
Inputs: None
Output:
class Lieutenant : EventListener { ... }
Then in the onEvent method it will verify that the triggered event is the type of event it wants to watch for:
onEvent(Event e) { if (e.eventType == EventType.onCombat) { // do stuff } }
This task includes creating a specialist class and creating specialists that inherit this class.
Inputs: None
Output:
Then in the onEvent method it will verify that the triggered event is the type of event it wants to watch for: