Class VoidEvent
java.lang.Object
fr.r1r0r0.deltaengine.model.events.Event
fr.r1r0r0.deltaengine.model.events.VoidEvent
public class VoidEvent extends Event
A void event, that triggers nothing and checks nothing.
Used to avoid a null attribute.
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description private
VoidEvent()
This class cannot be instancied -
Method Summary
Modifier and Type Method Description void
checkEvent()
Called by the engine, all code of the event.static VoidEvent
getInstance()
Instance of this class, because it is impossible (and useless) to create a new one each timeMethods inherited from class fr.r1r0r0.deltaengine.model.events.Event
addTrigger, clearTriggers, removeTrigger, runTriggers
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
INSTANCE
Instance of this class, because it is impossible (and useless) to create a new one each time
-
-
Constructor Details
-
VoidEvent
private VoidEvent()This class cannot be instancied
-
-
Method Details
-
checkEvent
public void checkEvent()Description copied from class:Event
Called by the engine, all code of the event. Everything can be implemented here.
To activate all attached triggers, runTriggers() method from Event object must be called.- Specified by:
checkEvent
in classEvent
- See Also:
to run all registered triggers
-
getInstance
Instance of this class, because it is impossible (and useless) to create a new one each time- Returns:
- VoidEvent instance
-