3 Inventory::Inventory(){
6 for(int i = 0; i < Node::count; i++){
7 if(! Node::getNodeById(i) -> hidden){
8 list[count] = Node::getNodeById(i);
13 Node *Inventory::getSlot(int nr){
14 if(nr >= 0 && nr < count)
18 void Inventory::select(int nr){
19 if(nr >= 0 && nr < count)
22 void Inventory::selectUp(){
25 void Inventory::selectDown(){
28 Node *Inventory::getSelectedSlot(){
29 return list[selected];