arsovski

ZehiZehi

Jun 8th, 2019
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.54 KB | None | 0 0
  1. #pragma once
  2. #include"Point3D.h"
  3. class Entity :public Point3D
  4. {
  5.     char *name = nullptr;
  6.     void setName(const char* _name);
  7.     void setID(int _id);
  8.     int uniqueObjectID=0;
  9.     static int id;
  10. public:
  11.     Point3D *location;
  12.     Entity(const char* _name,const Entity&); // treba da ima name location da prima
  13.     virtual ~Entity() = 0;
  14.     char* getName()const;
  15.     int getID() const;
  16.     virtual bool isAlive() const;
  17.     void moveTo(const Entity&);
  18.     double getDistanceTo(const Entity& newEntity);
  19. protected:
  20.     enum type
  21.     {
  22.         Player = 0,
  23.         NPC,
  24.         Mob
  25.     };
  26. };
Advertisement
Add Comment
Please, Sign In to add comment