Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Task.h
Go to the documentation of this file.
1/* Task.h
2 Basic Task for objectives
3*/
4#pragma once
5
6#include <string>
7#include <iostream>
9
10class Task
11{
12public:
13 std::string description;
14 bool completed = false;
15 Task(const std::string& d = "Task") : description(d) { SYSTEM_LOG << "Task: " << description << " created\n"; }
16 ~Task() { SYSTEM_LOG << "Task: " << description << " destroyed\n"; }
17
18 void Complete() { completed = true; }
19};
ComponentTypeID GetComponentTypeID_Static()
Definition ECS_Entity.h:56
Definition Task.h:11
std::string description
Definition Task.h:13
~Task()
Definition Task.h:16
Task(const std::string &d="Task")
Definition Task.h:15
void Complete()
Definition Task.h:18
bool completed
Definition Task.h:14
#define SYSTEM_LOG