Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/trunk/core: world draw function

File size: 733 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    int number;
33  };
34  npcList* lastNPC;
35
36  bool addPlayer(Player* player);
37  bool removePlayer(Player* player);
38
39  bool addNPC(NPC* npc);
40  bool removeNPC(NPC* npc);
41
42
43  void drawWorld(void);
44  void updateWorld(void);
45  void testThaTest(void);
46
47
48};
49
50#endif
Note: See TracBrowser for help on using the repository browser.