X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmap%2FEntity.h;fp=src%2Fmap%2FEntity.h;h=92b1b7cf1a4ccf6cff5d3b8776ab35cd6594ba84;hb=34e6fb59f355d1a4afc0a9a647aeb098b998dbbd;hp=12f22c947aae0c903a2468382c0261217ae76456;hpb=e6ba365d8f4b261687d4947d6b78f08c7fda1cdb;p=l2e.git diff --git a/src/map/Entity.h b/src/map/Entity.h index 12f22c9..92b1b7c 100644 --- a/src/map/Entity.h +++ b/src/map/Entity.h @@ -30,6 +30,9 @@ public: ORIENTATION_SOUTH = 2, ORIENTATION_WEST = 3, }; + enum Flags { + FLAG_NONBLOCKING = 0x01, + }; public: geometry::Vector &Position() { return position; } @@ -51,6 +54,9 @@ public: Orientation GetOrientation() const { return orientation; } void SetSpeed(float); + void SetFlags(int f) { flags = f; } + bool Blocking() const { return !(flags & FLAG_NONBLOCKING); } + Entity *Follower() { return follower; } const Entity *Follower() const { return follower; } void AddFollower(Entity *); @@ -74,6 +80,7 @@ private: geometry::Vector velocity; Orientation orientation; float speed; + int flags; };