CSCI3081W Drone Delivery System
Public Member Functions | List of all members
RobotFactory Class Reference

Robot Factory to produce Robot class. More...

#include <RobotFactory.h>

Inheritance diagram for RobotFactory:
Inheritance graph
[legend]
Collaboration diagram for RobotFactory:
Collaboration graph
[legend]

Public Member Functions

virtual ~RobotFactory ()
 Destructor for RobotFactory class.
 
IEntitycreateEntity (const JsonObject &entity)
 Creates entity using the given JSON object, if possible. More...
 
- Public Member Functions inherited from IEntityFactory
virtual ~IEntityFactory ()
 Destructor for IEntityFactory class.
 

Detailed Description

Robot Factory to produce Robot class.

Member Function Documentation

◆ createEntity()

IEntity* RobotFactory::createEntity ( const JsonObject entity)
virtual

Creates entity using the given JSON object, if possible.

Parameters
entity- JsonObject to be used to create the new entity.
Returns
Entity that was created if it was created successfully, or a nullpointer if creation failed.

Implements IEntityFactory.


The documentation for this class was generated from the following file: