Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- #include"Point3D.h"
- class Entity :public Point3D
- {
- char *name = nullptr;
- void setName(const char* _name);
- void setID(int _id);
- int uniqueObjectID=0;
- static int id;
- public:
- Point3D *location;
- Entity(const char* _name,const Entity&); // treba da ima name location da prima
- virtual ~Entity() = 0;
- char* getName()const;
- int getID() const;
- virtual bool isAlive() const;
- void moveTo(const Entity&);
- double getDistanceTo(const Entity& newEntity);
- protected:
- enum type
- {
- Player = 0,
- NPC,
- Mob
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment