Enemy.h 386 B

123456789101112131415161718192021222324
  1. #pragma once
  2. #include "Entity.h"
  3. #include <string>
  4. #include "Vector.h"
  5. #include "OpenAL.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. bool hasTarget;
  12. Vec3f target;
  13. float speed,radius;
  14. void update(float);
  15. void draw();
  16. void inEyeSight(Vec3f &);
  17. bool hasCollison(Vec3f &);
  18. };