10 Node *Node::list[MAXNODES];
12 Node::Node(string n, string t, bool h, bool s, bool tr){
13 if (Node::count >= MAXNODES)
14 Game::log("Too many registered Nodes", ERROR);
20 Node::list[id] = this;
21 texture = new Texture(t,tr);
25 Node *Node::getNodeById(int id){
26 if(id < count && id > -1)
30 Node *Node::getNodeByName(string name){
31 for(int i = 0; i < count; i++){
32 if(list[i]->name == name ){
36 Game::log("Node "+name+" not found", WARNING);
39 bool Node::operator==(Node *node){
40 return id == node->id;
42 bool Node::operator==(string n){