Olympe Engine
2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Source
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>
8
#include "
system/system_utils.h
"
9
10
class
Task
11
{
12
public
:
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
};
GetComponentTypeID_Static
ComponentTypeID GetComponentTypeID_Static()
Definition
ECS_Entity.h:56
Task
Definition
Task.h:11
Task::description
std::string description
Definition
Task.h:13
Task::~Task
~Task()
Definition
Task.h:16
Task::Task
Task(const std::string &d="Task")
Definition
Task.h:15
Task::Complete
void Complete()
Definition
Task.h:18
Task::completed
bool completed
Definition
Task.h:14
system_utils.h
SYSTEM_LOG
#define SYSTEM_LOG
Definition
system_utils.h:23
Generated on Tue Feb 17 2026 13:49:10 for Olympe Engine by
1.9.8