|
Last change
on this file since 1876 was
1872,
checked in by patrick, 22 years ago
|
|
orxonox/trunk: play the square - its possible now…
|
|
File size:
785 bytes
|
| Line | |
|---|
| 1 | |
|---|
| 2 | |
|---|
| 3 | |
|---|
| 4 | #ifndef WORLD_H |
|---|
| 5 | #define WORLD_H |
|---|
| 6 | |
|---|
| 7 | #include "npc.h" |
|---|
| 8 | #include "player.h" |
|---|
| 9 | #include "stdincl.h" |
|---|
| 10 | |
|---|
| 11 | class World { |
|---|
| 12 | |
|---|
| 13 | public: |
|---|
| 14 | World (); |
|---|
| 15 | ~World (); |
|---|
| 16 | |
|---|
| 17 | /* for easier use: map the first two player here */ |
|---|
| 18 | Player *localPlayer; |
|---|
| 19 | Player *player1; |
|---|
| 20 | Player *player2; |
|---|
| 21 | |
|---|
| 22 | /* a list of all players */ |
|---|
| 23 | struct playerList { |
|---|
| 24 | playerList* next; |
|---|
| 25 | Player* player; |
|---|
| 26 | int number; |
|---|
| 27 | }; |
|---|
| 28 | playerList* lastPlayer; |
|---|
| 29 | |
|---|
| 30 | /* a list of all non-player-characters */ |
|---|
| 31 | struct npcList { |
|---|
| 32 | npcList* next; |
|---|
| 33 | NPC* npc; |
|---|
| 34 | int number; |
|---|
| 35 | }; |
|---|
| 36 | npcList* lastNPC; |
|---|
| 37 | |
|---|
| 38 | bool addPlayer(Player* player); |
|---|
| 39 | bool removePlayer(Player* player); |
|---|
| 40 | Player* getLocalPlayer(); |
|---|
| 41 | |
|---|
| 42 | bool addNPC(NPC* npc); |
|---|
| 43 | bool removeNPC(NPC* npc); |
|---|
| 44 | |
|---|
| 45 | |
|---|
| 46 | void drawWorld(void); |
|---|
| 47 | void updateWorld(void); |
|---|
| 48 | void testThaTest(void); |
|---|
| 49 | |
|---|
| 50 | |
|---|
| 51 | }; |
|---|
| 52 | |
|---|
| 53 | #endif |
|---|
Note: See
TracBrowser
for help on using the repository browser.