- Timestamp:
- May 5, 2004, 10:32:15 AM (21 years ago)
- Location:
- orxonox/trunk
- Files:
-
- 9 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/core/data_tank.cc
r1855 r1856 17 17 #include "data_tank.h" 18 18 19 using namespace std; 19 20 20 21 -
orxonox/trunk/core/orxonox.cc
r1855 r1856 115 115 (*orx).globalInit(argc, argv); 116 116 (*orx).menuInit(); 117 glutMainLoop(); 117 118 World* wd = new World; 119 Player* pl = new Player; 120 (*wd).addPlayer(pl); 121 (*wd).addPlayer(pl); 122 (*wd).addPlayer(pl); 123 (*wd).addPlayer(pl); 124 (*wd).testThaTest(); 125 126 glutMainLoop(); 118 127 return 0; 119 128 } -
orxonox/trunk/core/orxonox.h
r1850 r1856 1 2 #include "world.h" 3 1 4 #ifndef ORXONOX_H 2 5 #define ORXONOX_H -
orxonox/trunk/core/player.cc
r1853 r1856 15 15 #include "player.h" 16 16 17 using namespace std; 17 18 18 19 -
orxonox/trunk/core/player.h
r1853 r1856 10 10 ~Player (); 11 11 12 private: 13 /* position of the space craft */ 14 int xCor; 15 int yCor; 16 int zCor; 17 12 18 }; 13 19 -
orxonox/trunk/core/proto_class.cc
r1855 r1856 20 20 21 21 22 using namespace std; 23 24 22 25 23 26 ProtoClass::ProtoClass () {} -
orxonox/trunk/core/world.cc
r1855 r1856 19 19 #include "world.h" 20 20 21 #include <iostream> 22 23 using namespace std; 21 24 22 25 … … 24 27 World::World () { 25 28 lastPlayer = null; 26 lastPlayer->nextPlayer = null;27 29 } 28 30 … … 40 42 { 41 43 playerList* listMember = new playerList; 42 listMember->nextPlayer = lastPlayer;43 44 listMember->player = player; 44 listMember->playerNr = lastPlayer->playerNr + 1; 45 if ( lastPlayer != null ) 46 { 47 listMember->number = lastPlayer->number + 1; 48 listMember->next = lastPlayer; 49 } 50 else 51 { 52 listMember->number = 0; 53 listMember->next = null; 54 } 45 55 lastPlayer = listMember; 46 56 } … … 53 63 testing, testing, testing... 54 64 */ 55 boot World::testRouting()65 void World::testThaTest() 56 66 { 67 cout << "World::testThaTest() called" << endl; 68 /* test addPlayer */ 69 cout << "addPlayer test..." << endl; 70 playerList* pl = lastPlayer; 71 while ( pl != null ) 72 { 73 cout << "player " << pl->number << " was found" << endl; 74 pl = pl->next; 75 } 57 76 77 cout << "World::testThaTest() finished" << endl; 58 78 } 59 79 -
orxonox/trunk/core/world.h
r1855 r1856 20 20 /* a list of all players */ 21 21 struct playerList { 22 playerList* next Player;22 playerList* next; 23 23 Player* player; 24 int playerNr;24 int number; 25 25 }; 26 26 playerList* lastPlayer; … … 28 28 /* a list of all non-player-characters */ 29 29 struct npcList { 30 npcList* next NPC;30 npcList* next; 31 31 NPC* npc; 32 32 }; … … 39 39 bool removeNPC(NPC* npc); 40 40 41 41 void testThaTest(void); 42 42 43 43 -
orxonox/trunk/doc/CREDITS
r1853 r1856 4 4 -------------------------- 5 5 6 Programmers: 7 ------------ 8 Patrick Boenzli 9 Benjamin Grauer 10 11 Infrastructure: 12 --------------- 6 13 amir@datacore.ch for giving us access to subversion and mailing lists 14 15 The Great Orx Sound: 16 -------------------- 7 17 Luke Grey for making the orxonox sound 8 18
Note: See TracChangeset
for help on using the changeset viewer.