couch/core/Node.h
2021-01-21 15:26:39 -06:00

27 lines
440 B
C++

#ifndef NODE_H
#define NODE_H
#include <vector>
#include "types.h"
class Node; // Forwards declare
class NodeList : public std::vector<Node*> {
public:
void Append(Node *node);
};
class Node {
public:
NodeList children;
static Node *GetRoot();
virtual bool IsDrawable() const;
virtual void Draw(){};
virtual bool IsTransformable() const;
virtual Name GetType() const;
private:
static Node *root;
};
#endif /* NODE_H */