Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/core/world.h @ 1856

Last change on this file since 1856 was 1856, checked in by patrick, 20 years ago

orxonox/trunk/core: test routines added, other minor changes

File size: 667 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
10class 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* next;
23    Player* player;
24    int number;
25  };
26  playerList* lastPlayer;
27
28  /* a list of all non-player-characters */
29  struct npcList {
30    npcList* next;
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  void testThaTest(void);
42
43
44};
45
46#endif
Note: See TracBrowser for help on using the repository browser.