X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmap%2FEntity.h;h=872ad0c92ed739ea1e714da24b132d1870223e3d;hb=b8b3c5eb15fe990182e76a738953f444ccfbe06c;hp=92b1b7cf1a4ccf6cff5d3b8776ab35cd6594ba84;hpb=34e6fb59f355d1a4afc0a9a647aeb098b998dbbd;p=l2e.git diff --git a/src/map/Entity.h b/src/map/Entity.h index 92b1b7c..872ad0c 100644 --- a/src/map/Entity.h +++ b/src/map/Entity.h @@ -56,6 +56,10 @@ public: void SetFlags(int f) { flags = f; } bool Blocking() const { return !(flags & FLAG_NONBLOCKING); } + bool Hostile() const { + // NOTE: this is a stub for testing! + return Blocking(); + } Entity *Follower() { return follower; } const Entity *Follower() const { return follower; }