Enemy.h 459 B

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