Entity.h 353 B

123456789101112131415161718192021222324252627
  1. #pragma once
  2. #include "Vector.h"
  3. #include <string>
  4. class Model;
  5. class Entity
  6. {
  7. public:
  8. Entity();
  9. ~Entity();
  10. Model* model;
  11. virtual void draw();
  12. virtual void update(float elapsedTime) {};
  13. virtual void collide() {};
  14. Vec3f position;
  15. Vec3f rotation;
  16. float scale;
  17. std::string text;
  18. bool canCollide;
  19. bool inObject(const Vec3f &position);
  20. };