]> jfr.im git - irc/gameservirc.git/blobdiff - gameserv/gameserv.cpp
Finally got level.h/cpp compiling into the project... beginning to store
[irc/gameservirc.git] / gameserv / gameserv.cpp
index d5d9e97288f6d346fb601ede830bfaa9d1a107e8..23b06d711efb66707ed674f28dc97e73b73d0a8f 100644 (file)
@@ -25,7 +25,7 @@ using std::ios;
 
 
 Monster boss;                          // The boss monster
-level monsters[LEVELS];                        // The newest way to store monsters
+Level levels[LEVELS];                  // The newest way to store monsters
 
 Monster *masters[LEVELS];              // A master for each level
 
@@ -304,7 +304,7 @@ void gameserv(char *source, char *buf)
        }
     } else if (stricmp(cmd, "PRINT") == 0) {
        for (int x = 0; x < LEVELS; x++)
-           monsters[x].print();
+           levels[x].monsters.print();
     #endif
     } else {
        aClient *user;
@@ -1051,7 +1051,7 @@ void init_masters()
 void delete_monsters()
 {
     for (int x = 0; x < LEVELS; x++)
-       monsters[x].deleteNodes();
+       levels[x].monsters.deleteNodes();
 }
 
 void delete_masters()
@@ -3453,7 +3453,7 @@ bool load_monsters()
             temp->hp = temp->maxhp;
             strcpy(temp->death, strtok(NULL, "~"));
 
-       monsters[level - 1].insertAtBack_RLN(temp);
+       levels[level - 1].monsters.insertAtBack_RLN(temp);
        delete temp;
     }
     delete [] filename;