From eed05511a621fa7105314215f3edc1224812f060 Mon Sep 17 00:00:00 2001 From: asofold Date: Fri, 9 Nov 2012 10:23:47 +0100 Subject: [PATCH] Add Action.executesAlways . --- src/fr/neatmonster/nocheatplus/actions/Action.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/fr/neatmonster/nocheatplus/actions/Action.java b/src/fr/neatmonster/nocheatplus/actions/Action.java index cdb11b75..6b71128a 100644 --- a/src/fr/neatmonster/nocheatplus/actions/Action.java +++ b/src/fr/neatmonster/nocheatplus/actions/Action.java @@ -65,4 +65,14 @@ public abstract class Action { public boolean needsParameters(){ return false; } + + /** + * Indicates that the action will be executed in any case (delay, repeat). + * executed at all. + * + * @return + */ + public boolean executesAlways() { + return delay == 0 && repeat == 0; + } }