Enemy.h 403 B

12345678910111213141516171819202122232425
  1. #pragma once
  2. #include "Entity.h"
  3. #include <string>
  4. #include "Vector.h"
  5. class Enemy : public Entity
  6. {
  7. public:
  8. Enemy(const std::string &fileName,const Vec3f &position,Vec3f &rotation,const float &scale);
  9. ~Enemy();
  10. bool hasTarget;
  11. Vec3f target;
  12. float speed,radius;
  13. void update(float);
  14. void draw();
  15. void inEyeSight(Vec3f &);
  16. void collide(const Entity *entity);
  17. private:
  18. int hit_sound_id;
  19. };