From 7d0175c56331cce0e7f68a06fde557b1ae0a6a5d Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Mon, 14 Jul 2014 12:13:30 +1200 Subject: [PATCH] Add witchwatcher (isAggressive and setAggressive) --- .../disguisetypes/watchers/WitchWatcher.java | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/me/libraryaddict/disguise/disguisetypes/watchers/WitchWatcher.java diff --git a/src/me/libraryaddict/disguise/disguisetypes/watchers/WitchWatcher.java b/src/me/libraryaddict/disguise/disguisetypes/watchers/WitchWatcher.java new file mode 100644 index 00000000..f8f529b3 --- /dev/null +++ b/src/me/libraryaddict/disguise/disguisetypes/watchers/WitchWatcher.java @@ -0,0 +1,20 @@ +package me.libraryaddict.disguise.disguisetypes.watchers; + +import me.libraryaddict.disguise.disguisetypes.Disguise; + +public class WitchWatcher extends LivingWatcher { + + public WitchWatcher(Disguise disguise) { + super(disguise); + } + + public void setAggressive(boolean isTrue) { + setValue(21, (byte) (isTrue ? 1 : 0)); + sendData(21); + } + + public boolean isAggressive() { + return (Byte) getValue(21, (byte) 0) == 1; + } + +}