Package megamek.server.scriptedEvents
Interface TriggeredActiveEvent
- All Superinterfaces:
TriggeredEvent
- All Known Implementing Classes:
MessageTriggeredActiveEvent,PrincessSettingsEvent
This interface is implemented by pre-determined events that may happen over the course of a game, such as story
messages or board changes. Much like WeaponHandlers, ScriptedGameManagerEvents are part of the GameManager's code and
must fully work out whatever the event brings, including sending the necessary packets. ScriptedEvents are based on a
Trigger that defines when (and how often) they happen. When they happen, the process(IGameManager)
method is called to determine the results. (Note: This has nothing to do with an event listener system.)-
Method Summary
Modifier and TypeMethodDescriptionvoidprocess(IGameManager gameManager) This method is called when the Trigger of this event is satisfied (returns true).Methods inherited from interface megamek.server.scriptedEvents.TriggeredEvent
isGameEnding, trigger
-
Method Details
-
process
This method is called when the Trigger of this event is satisfied (returns true). This method must fully work out whatever the event brings, including sending the necessary packets. The code of this method is essentially part of the GameManager's code.
-