Entity.h 559 B

123456789101112131415161718192021222324252627282930
  1. #pragma once
  2. #include <Model3D.h>
  3. #include <Either.h>
  4. #include <Critical.h>
  5. #include "EntityType.h"
  6. #include "Area.h"
  7. class Block;
  8. class Entity : public Framework::Model3D
  9. {
  10. private:
  11. int id;
  12. const EntityType* zType;
  13. Framework::Critical cs;
  14. public:
  15. Entity(const EntityType* zType, Framework::Model3DData* model, Framework::Model3DTextur* texture, int id);
  16. ~Entity();
  17. void api(char* message);
  18. bool tick(double time) override;
  19. int getId() const;
  20. const EntityType* zEntityType() const;
  21. void lock();
  22. void unlock();
  23. };