X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fworld%2FEntity.h;h=83135f99115b10483a039e5f8754326b0eab3718;hb=HEAD;hp=f8576c15374c33708fd010e20890197320266f43;hpb=dbc08d84d9de1a77cba0dd97e4701f4ac99d056e;p=orbi.git diff --git a/src/world/Entity.h b/src/world/Entity.h index f8576c1..83135f9 100644 --- a/src/world/Entity.h +++ b/src/world/Entity.h @@ -9,20 +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) { bounds.Move(delta); } + void Move(Vector delta); public: - AABB bounds; + Vector pos; Vector vel; Vector acc; - float mass = 1.0f; - float elast = 0.75f; + AABB bounds; + AABB vbox; + AABB hbox; + + Orientation orient = LOOKS_LEFT; bool onGround = false;