Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Objective Class Reference

#include <Objective.h>

Public Member Functions

 Objective (const std::string &t="Objective")
 
 ~Objective ()
 
void AddTask (std::unique_ptr< Task > task)
 
bool IsComplete () const
 

Public Attributes

std::string title
 
std::vector< std::unique_ptr< Task > > tasks
 

Detailed Description

Definition at line 13 of file Objective.h.

Constructor & Destructor Documentation

◆ Objective()

Objective::Objective ( const std::string &  t = "Objective")
inline

Definition at line 18 of file Objective.h.

References SYSTEM_LOG, and title.

◆ ~Objective()

Objective::~Objective ( )
inline

Definition at line 19 of file Objective.h.

References SYSTEM_LOG, and title.

Member Function Documentation

◆ AddTask()

void Objective::AddTask ( std::unique_ptr< Task task)
inline

Definition at line 21 of file Objective.h.

References GetComponentTypeID_Static(), and tasks.

+ Here is the call graph for this function:

◆ IsComplete()

bool Objective::IsComplete ( ) const
inline

Definition at line 22 of file Objective.h.

References GetComponentTypeID_Static(), and tasks.

+ Here is the call graph for this function:

Member Data Documentation

◆ tasks

std::vector<std::unique_ptr<Task> > Objective::tasks

Definition at line 17 of file Objective.h.

Referenced by AddTask(), and IsComplete().

◆ title

std::string Objective::title

Definition at line 16 of file Objective.h.

Referenced by Objective(), and ~Objective().


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