Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1855 in orxonox.OLD for orxonox/trunk/core/world.h


Ignore:
Timestamp:
May 5, 2004, 9:34:21 AM (20 years ago)
Author:
patrick
Message:

/orxonox/trunk/core/ modifications on world and docs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/core/world.h

    r1853 r1855  
    22#include "npc.h"
    33#include "player.h"
     4#include "stdincl.h"
    45
    56#ifndef WORLD_H
     
    1314  ~World ();
    1415
     16  /* for easier use: map the first two player here */
    1517  Player *player1;
     18  Player *player2;
    1619
    17   struct player_list {
    18     player_list* next_player;
     20  /* a list of all players */
     21  struct playerList {
     22    playerList* nextPlayer;
    1923    Player* player;
     24    int playerNr;
    2025  };
     26  playerList* lastPlayer;
    2127
    22   struct npc_list {
    23     npc_list* next_npc;
     28  /* a list of all non-player-characters */
     29  struct npcList {
     30    npcList* nextNPC;
    2431    NPC* npc;
    2532  };
     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
    2643
    2744};
Note: See TracChangeset for help on using the changeset viewer.