]> git.lizzy.rs Git - dragonblocks-bedrock.git/blob - src/node.h
Add files via upload
[dragonblocks-bedrock.git] / src / node.h
1 #ifndef _NODE_H_
2 #define _NODE_H_
3 #include <string>
4 #include "texture.h"
5 #define MAXNODES 1024
6
7
8 class Node{
9         public:
10                 int id;
11                 std::string name;
12                 static Node *getNodeById(int);
13                 static Node *getNodeByName(std::string);
14                 static Node *list[MAXNODES];
15                 static int count;
16                 bool operator==(Node *);
17                 bool operator==(std::string);
18                 Texture *texture;
19                 bool hidden;
20                 bool stable;
21                 bool translucent;
22                 Node(std::string, std::string, bool, bool, bool);
23 };
24 #endif
25