Changeset 10101 for code/branches/minigame4DHS14/src/modules/mini4Dgame
- Timestamp:
- Oct 29, 2014, 3:31:05 PM (10 years ago)
- Location:
- code/branches/minigame4DHS14/src/modules/mini4Dgame
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/minigame4DHS14/src/modules/mini4Dgame/CMakeLists.txt
r10100 r10101 1 1 SET_SOURCE_FILES(Mini4Dgame_SRC_FILES 2 BUILD_UNIT mini4DgameBuildUnit.cc3 2 Mini4Dgame.cc 4 3 Mini4DgameCenterpoint.cc 5 END_BUILD_UNIT6 4 ) 7 5 -
code/branches/minigame4DHS14/src/modules/mini4Dgame/Mini4Dgame.cc
r10100 r10101 41 41 42 42 #include "core/CoreIncludes.h" 43 #include "core/EventIncludes.h" 43 44 #include "core/command/Executor.h" 44 45 #include "core/config/ConfigValueIncludes.h" 46 #include "infos/PlayerInfo.h" 45 47 46 48 #include "gamestates/GSLevel.h" … … 62 64 RegisterObject(Mini4Dgame); 63 65 64 this->center_ = NULL;66 this->center_ = 0; 65 67 //TODO: player Null setzen 66 68 } … … 177 179 PlayerInfo* Mini4Dgame::getPlayer(int color) const 178 180 { 179 return players[color] ;181 return players[color].info_; 180 182 //for(int i=0;i<NUMBEROFPLAYERS;i++) 181 183 //if(color == this->mini4DgamePlayers[i].color) -
code/branches/minigame4DHS14/src/modules/mini4Dgame/Mini4Dgame.h
r10100 r10101 36 36 37 37 #include "gametypes/Deathmatch.h" 38 #include "mini4Dgame/Mini4DgamePrereqs.h" 38 39 39 40 namespace orxonox … … 45 46 46 47 */ 47 class Mini4Dgame : public Deathmatch48 class _Mini4DgameExport Mini4Dgame : public Deathmatch 48 49 { 49 50 public: … … 72 73 void cleanup(void); //!< Cleans up the Gametype by destroying the ball and the bats. 73 74 74 Player Info*players[3];75 Player players[3]; 75 76 76 77 WeakPtr<Mini4DgameCenterpoint> center_; //!< The playing field. -
code/branches/minigame4DHS14/src/modules/mini4Dgame/Mini4DgameCenterpoint.h
r10097 r10101 40 40 41 41 #include "worldentities/StaticEntity.h" 42 #include "mini4Dgame/Mini4DgamePrereqs.h" 42 43 43 44 namespace orxonox … … 57 58 - The <b>batlength</b> is the length of the @ref orxonox::PongBat "PongBats" as the percentage of the height of the playing field. The default is <em>0.25</em>. 58 59 */ 59 class Mini4DgameCenterpoint : public StaticEntity60 class _Mini4DgameExport Mini4DgameCenterpoint : public StaticEntity 60 61 { 61 62 public:
Note: See TracChangeset
for help on using the changeset viewer.