Entity.cpp 435 B

123456789101112131415161718192021
  1. #include "Entity.h"
  2. #define Entity WalrusRPG::Entity
  3. Entity::Entity() {
  4. // TODO
  5. }
  6. Entity::~Entity() {
  7. // TODO if you allocate dynamically members
  8. }
  9. void Entity::update(float dt) {
  10. // TODO update map's data according to elasped time
  11. /*
  12. // Need to think aagain on how to go to a target point and/or we need to align the corner OR the center to this point.
  13. position += velocity * dt;
  14. velocity += acceleration * dt;
  15. */
  16. }