X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fworld%2FEntity.h;h=83135f99115b10483a039e5f8754326b0eab3718;hb=4c12267c6727caa3522ac5e38b4f8c17d544ef3e;hp=53087b6972ef8e80cab44debef75c0373b1622a0;hpb=03b142b877e19a2355e1a79e279e024922d44655;p=orbi.git diff --git a/src/world/Entity.h b/src/world/Entity.h index 53087b6..83135f9 100644 --- a/src/world/Entity.h +++ b/src/world/Entity.h @@ -9,22 +9,30 @@ namespace orbi { class Entity { +public: + enum Orientation { + LOOKS_LEFT, + LOOKS_RIGHT, + }; + public: constexpr Entity() { } + virtual ~Entity() { } public: void Update(float dt, Vector extAcc, Vector tv); void Move(Vector delta); public: + Vector pos; + Vector vel; + Vector acc; + AABB bounds; AABB vbox; AABB hbox; - Vector vel; - Vector acc; - float mass = 1.0f; - float elast = 0.75f; + Orientation orient = LOOKS_LEFT; bool onGround = false;