CSCI3081W Drone Delivery System
RobotFactory.h
1 #ifndef ROBOT_FACTORY_H_
2 #define ROBOT_FACTORY_H_
3 
4 #include <vector>
5 
6 #include "IEntityFactory.h"
7 #include "Robot.h"
8 
13 class RobotFactory : public IEntityFactory {
14  public:
18  virtual ~RobotFactory() {}
19 
26  IEntity* createEntity(const JsonObject& entity);
27 };
28 
29 #endif
Composite Factory Interface.
Definition: IEntityFactory.h:11
Represents an entity in a physical system.
Definition: IEntity.h:22
Manages a picojson::object, works with JsonValue to provide implicit casting.
Robot Factory to produce Robot class.
Definition: RobotFactory.h:13
virtual ~RobotFactory()
Destructor for RobotFactory class.
Definition: RobotFactory.h:18
IEntity * createEntity(const JsonObject &entity)
Creates entity using the given JSON object, if possible.