Last change
on this file since 1855 was
1855,
checked in by patrick, 20 years ago
|
/orxonox/trunk/core/ modifications on world and docs
|
File size:
653 bytes
|
Line | |
---|
1 | |
---|
2 | #include "npc.h" |
---|
3 | #include "player.h" |
---|
4 | #include "stdincl.h" |
---|
5 | |
---|
6 | #ifndef WORLD_H |
---|
7 | #define WORLD_H |
---|
8 | |
---|
9 | |
---|
10 | class World { |
---|
11 | |
---|
12 | public: |
---|
13 | World (); |
---|
14 | ~World (); |
---|
15 | |
---|
16 | /* for easier use: map the first two player here */ |
---|
17 | Player *player1; |
---|
18 | Player *player2; |
---|
19 | |
---|
20 | /* a list of all players */ |
---|
21 | struct playerList { |
---|
22 | playerList* nextPlayer; |
---|
23 | Player* player; |
---|
24 | int playerNr; |
---|
25 | }; |
---|
26 | playerList* lastPlayer; |
---|
27 | |
---|
28 | /* a list of all non-player-characters */ |
---|
29 | struct npcList { |
---|
30 | npcList* nextNPC; |
---|
31 | NPC* npc; |
---|
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 | |
---|
43 | |
---|
44 | }; |
---|
45 | |
---|
46 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.