CSCI 3081 - Drone Delivery System
Public Member Functions | List of all members
entity_project::IEntitySystem Class Referenceabstract

An abstract class that represents an entity system that contains entities and updates over time. More...

#include <entity_system.h>

Inheritance diagram for entity_project::IEntitySystem:
Inheritance graph

Public Member Functions

virtual ~IEntitySystem ()
 Destructor.
 
virtual void RunScript (const picojson::array &script, IEntitySystem *system) const =0
 Runs a JSON script on an entity system as a set of commands. More...
 
virtual const std::vector< IEntity * > & GetEntities () const =0
 Returns the list of entities in the system.
 
virtual void Update (float dt)=0
 Updates the entity system by a time of dt.
 

Detailed Description

An abstract class that represents an entity system that contains entities and updates over time.

Member Function Documentation

◆ RunScript()

virtual void entity_project::IEntitySystem::RunScript ( const picojson::array &  script,
IEntitySystem system 
) const
pure virtual

Runs a JSON script on an entity system as a set of commands.

This method does not make any changes to the current entity system, but rather acts as a strategy for the entity system passed into the method. It is therefore possible to override how scripts are read in depending on the application.

Implemented in csci3081::DeliverySimulation, and csci3081::IDeliverySystem.


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