Changeset 1855 in orxonox.OLD for orxonox/trunk
- Timestamp:
- May 5, 2004, 9:34:21 AM (21 years ago)
- Location:
- orxonox/trunk
- Files:
-
- 1 added
- 9 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 }; -
orxonox/trunk/doc/CODING-STANDARDS
r1853 r1855 1 2 3 4 1.Coding Conventions 5 2.How to format your Code 6 7 1.Coding Conventions 8 -------------------- 9 ==> If you are beginning a new code-file: copy the proto_class.{cc,h} 10 ==> and work with these files. 11 12 a) in every code file, there has to be a GNU copyright header 13 b) under the (c) header write your name as main-programmer, if 14 you are just bugfixing or extending write it under co-programmer 15 c) Every function has a header with informations about it: 16 /** 17 \brief <a brief description> 18 \param <parameters the function needs> 19 \param <more parameters> 20 21 <more description> 22 */ 23 This makes live easier, if we want to add a documentation. 24 25 26 2.How to format your Code 27 ------------------------- 1 28 We use the GNU conding convention (which is also used in xemacs etc.): 2 29 -
orxonox/trunk/doc/README
r1800 r1855 14 14 in c++ and OpenGL. 15 15 If we manage to be sober enough, this game shall definitly 16 become _the_ open-source vertical scrolle ever.16 become _the_ open-source vertical scroller ever. 17 17 18 18 2.Manifesto: … … 32 32 4.Howto C++ Programming 33 33 5.Howto SVN 34 6.Coding conventions 34 35 35 36 … … 128 129 topic, it will be revised by us and merged with the trunk 129 130 130 131 7.Coding Conventions 132 -------------------- 133 Read the File CODING-STANDARDS 131 134 132 135
Note: See TracChangeset
for help on using the changeset viewer.