enemy comes to you when in his radius
This commit is contained in:
@@ -1,8 +1,20 @@
|
||||
#pragma once
|
||||
class Enemy
|
||||
|
||||
#include "Entity.h"
|
||||
#include <string>
|
||||
#include "Vector.h"
|
||||
|
||||
class Enemy : public Entity
|
||||
{
|
||||
public:
|
||||
Enemy();
|
||||
Enemy(const std::string &fileName,const Vec3f &position,Vec3f &rotation,const float &scale,const bool &hasCollision);
|
||||
~Enemy();
|
||||
|
||||
bool hasTarget;
|
||||
Vec3f target;
|
||||
float speed,radius;
|
||||
|
||||
void update(float);
|
||||
void draw();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user