Changeset 1855 in orxonox.OLD for orxonox/trunk/core
- Timestamp:
- May 5, 2004, 9:34:21 AM (21 years ago)
- Location:
- orxonox/trunk/core
- Files:
-
- 1 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/core/data_tank.cc
r1850 r1855 9 9 the Free Software Foundation; either version 2, or (at your option) 10 10 any later version. 11 12 Copyright by: Patrick Boenzli 13 Fixes by: 11 14 */ 12 15 -
orxonox/trunk/core/npc.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 -
orxonox/trunk/core/npc.h
r1853 r1855 10 10 ~NPC (); 11 11 12 int npcType; 13 12 14 }; 13 15 -
orxonox/trunk/core/orxonox.cc
r1853 r1855 18 18 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 19 19 20 21 ### File Specific: 22 main-programmer: Patrick Boenzli 23 co-programmer: 20 24 */ 21 25 -
orxonox/trunk/core/proto_class.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: ... 15 co-programmer: ... 12 16 */ 13 17 -
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) {} -
orxonox/trunk/core/world.h
r1853 r1855 2 2 #include "npc.h" 3 3 #include "player.h" 4 #include "stdincl.h" 4 5 5 6 #ifndef WORLD_H … … 13 14 ~World (); 14 15 16 /* for easier use: map the first two player here */ 15 17 Player *player1; 18 Player *player2; 16 19 17 struct player_list { 18 player_list* next_player; 20 /* a list of all players */ 21 struct playerList { 22 playerList* nextPlayer; 19 23 Player* player; 24 int playerNr; 20 25 }; 26 playerList* lastPlayer; 21 27 22 struct npc_list { 23 npc_list* next_npc; 28 /* a list of all non-player-characters */ 29 struct npcList { 30 npcList* nextNPC; 24 31 NPC* npc; 25 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 42 26 43 27 44 };
Note: See TracChangeset
for help on using the changeset viewer.