Enemy.h 375 B

1234567891011121314151617181920212223
  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. };