diff options
Diffstat (limited to 'Minecraft.World/OpenDoorGoal.h')
| -rw-r--r-- | Minecraft.World/OpenDoorGoal.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Minecraft.World/OpenDoorGoal.h b/Minecraft.World/OpenDoorGoal.h new file mode 100644 index 00000000..ff27367a --- /dev/null +++ b/Minecraft.World/OpenDoorGoal.h @@ -0,0 +1,18 @@ +#pragma once + +#include "DoorInteractGoal.h" + +class OpenDoorGoal : public DoorInteractGoal +{ +private: + bool closeDoor; + int forgetTime; + +public: + OpenDoorGoal(Mob *mob, bool closeDoorAfter); + + virtual bool canContinueToUse(); + virtual void start(); + virtual void stop(); + virtual void tick(); +};
\ No newline at end of file |
