From c4a9748e841fd8620e7e9d230aad8964f424bb08 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 20 Sep 2015 22:26:00 +0300 Subject: Add function for selecting new target. --- src/being/localplayer.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/being/localplayer.h') diff --git a/src/being/localplayer.h b/src/being/localplayer.h index c258a14f1..e47ad4d20 100644 --- a/src/being/localplayer.h +++ b/src/being/localplayer.h @@ -27,6 +27,7 @@ #include "enums/being/pickup.h" +#include "enums/simpletypes/allowsort.h" #include "enums/simpletypes/keep.h" #include "listeners/actorspritelistener.h" @@ -132,6 +133,9 @@ class LocalPlayer final : public Being, */ void setTarget(Being *const target); + Being *setNewTarget(const ActorTypeT type, + const AllowSort allowSort); + /** * Sets a new destination for this being to walk to. */ -- cgit v1.2.3-60-g2f50