added task state flag

This commit is contained in:
Chris Punches
2017-06-25 18:58:05 -04:00
parent 27969c3c27
commit 0bd455dd97
3 changed files with 25 additions and 1 deletions

View File

@@ -21,6 +21,9 @@ class Task
// the status of this task
bool complete;
// the readiness of this task to execute
bool defined;
public:
// constructor
Task();
@@ -32,6 +35,7 @@ class Task
void load_definition( Unit definition, bool verbose );
bool is_complete();
bool has_definition();
// fetch the name of a task
std::string get_name();