Enemy.h 381 B

1234567891011121314151617181920212223
  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,const bool &hasCollision);
  10. ~Enemy();
  11. bool hasTarget;
  12. Vec3f target;
  13. float speed,radius;
  14. void update(float);
  15. void draw();
  16. private:
  17. OpenAL *openal;
  18. };