Enemy.h 417 B

1234567891011121314151617181920212223242526
  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. bool attack;
  14. void update(float);
  15. void draw();
  16. void inEyeSight(Vec3f &);
  17. void collide(const Entity *entity);
  18. private:
  19. int hit_sound_id;
  20. };