Changeset 1855 in orxonox.OLD for orxonox/trunk/core/world.cc
- Timestamp:
- May 5, 2004, 9:34:21 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/core/world.cc
r1853 r1855 10 10 the Free Software Foundation; either version 2, or (at your option) 11 11 any later version. 12 13 ### File Specific: 14 main-programmer: Patrick Boenzli 15 co-programmer: 12 16 */ 13 17 … … 19 23 20 24 World::World () { 21 25 lastPlayer = null; 26 lastPlayer->nextPlayer = null; 22 27 } 23 24 28 25 29 … … 27 31 28 32 33 /** 34 \brief Add Player 35 \param player A reference to the new player object 36 37 Add a new Player to the game. Player has to be initialised previously 38 */ 39 bool World::addPlayer(Player* player) 40 { 41 playerList* listMember = new playerList; 42 listMember->nextPlayer = lastPlayer; 43 listMember->player = player; 44 listMember->playerNr = lastPlayer->playerNr + 1; 45 lastPlayer = listMember; 46 } 47 48 49 50 /** 51 \brief Routine for testing purposes. 52 53 testing, testing, testing... 54 */ 55 boot World::testRouting() 56 { 57 58 } 59 60 bool World::removePlayer(Player* player) {} 61 62 bool World::addNPC(NPC* npc) {} 63 bool World::removeNPC(NPC* npc) {}
Note: See TracChangeset
for help on using the changeset viewer.