Changeset 1855 in orxonox.OLD for orxonox/trunk/core/world.h
- Timestamp:
- May 5, 2004, 9:34:21 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/core/world.h
r1853 r1855 2 2 #include "npc.h" 3 3 #include "player.h" 4 #include "stdincl.h" 4 5 5 6 #ifndef WORLD_H … … 13 14 ~World (); 14 15 16 /* for easier use: map the first two player here */ 15 17 Player *player1; 18 Player *player2; 16 19 17 struct player_list { 18 player_list* next_player; 20 /* a list of all players */ 21 struct playerList { 22 playerList* nextPlayer; 19 23 Player* player; 24 int playerNr; 20 25 }; 26 playerList* lastPlayer; 21 27 22 struct npc_list { 23 npc_list* next_npc; 28 /* a list of all non-player-characters */ 29 struct npcList { 30 npcList* nextNPC; 24 31 NPC* npc; 25 32 }; 33 npcList* firstNPC; 34 35 bool addPlayer(Player* player); 36 bool removePlayer(Player* player); 37 38 bool addNPC(NPC* npc); 39 bool removeNPC(NPC* npc); 40 41 42 26 43 27 44 };
Note: See TracChangeset
for help on using the changeset viewer.