38 lines
604 B
C++
38 lines
604 B
C++
#ifndef Node_h_
|
|
#define Node_h_
|
|
|
|
#include <iostream>
|
|
|
|
#include "json/json.hpp"
|
|
#include "SDL.h"
|
|
|
|
#include "filesystem.hpp"
|
|
|
|
struct Game;
|
|
struct Delegate;
|
|
struct Display;
|
|
struct TimeFilter;
|
|
|
|
struct Node
|
|
{
|
|
|
|
Node *parent = NULL;
|
|
bool active = false;
|
|
|
|
Node();
|
|
Node(Node*, bool = true);
|
|
virtual ~Node();
|
|
void activate();
|
|
void deactivate();
|
|
bool is_active();
|
|
Game* get_root();
|
|
nlohmann::json& get_configuration();
|
|
Delegate& get_delegate();
|
|
Display& get_display();
|
|
void print_branch();
|
|
virtual std::string get_class_name() { return "Node"; };
|
|
|
|
};
|
|
|
|
#endif
|