CSCI 3081 - Drone Delivery System
entity.h
1 #ifndef ENTITY_H_
2 #define ENTITY_H_
3 
4 #include <sstream>
5 #include "picojson.h"
6 
7 namespace entity_project {
8 
10 
15 class IEntity {
16 public:
18  virtual ~IEntity() {}
22  virtual int GetId() const = 0;
27  virtual const std::string& GetName() = 0;
28 
32  virtual const std::vector<float>& GetPosition() const = 0;
36  virtual const std::vector<float>& GetDirection() const = 0;
42  virtual float GetRadius() const = 0;
49  virtual const picojson::object& GetDetails() = 0;
54  virtual int GetVersion() const = 0;
64  virtual bool IsDynamic() const = 0;
65 };
66 
67 }
68 
69 
70 #endif // ENTITY_H_
virtual ~IEntity()
The destructor.
Definition: entity.h:18
virtual const std::string & GetName()=0
virtual float GetRadius() const =0
virtual int GetVersion() const =0
virtual int GetId() const =0
virtual const picojson::object & GetDetails()=0
virtual const std::vector< float > & GetPosition() const =0
virtual const std::vector< float > & GetDirection() const =0
virtual bool IsDynamic() const =0
A movable object in a scene. Entities have position, direction and size.
Definition: entity.h:15
Definition: entity.h:7