Changeset 10117 for code/branches/surfaceraceHS14/src/modules/dodgerace2
- Timestamp:
- Nov 12, 2014, 2:27:50 PM (10 years ago)
- Location:
- code/branches/surfaceraceHS14/src/modules/dodgerace2
- Files:
-
- 2 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/surfaceraceHS14/src/modules/dodgerace2/CMakeLists.txt
r10114 r10117 3 3 DodgeRaceCenterPoint.cc 4 4 DodgeRaceHUDinfo.cc 5 DodgeRaceShip.cc 5 6 ) 6 7 -
code/branches/surfaceraceHS14/src/modules/dodgerace2/DodgeRace.cc
r10116 r10117 45 45 #include "infos/PlayerInfo.h" 46 46 47 #include "DodgeRaceCenterPoint.h"48 /*#include "DodgeRaceShip.h"47 /*#include "DodgeRaceCenterPoint.h" 48 #include "DodgeRaceShip.h" 49 49 #include "DodgeRaceEnemy.h" 50 50 #include "DodgeRaceEnemyShooter.h" … … 61 61 RegisterObject(DodgeRace); 62 62 this->numberOfBots_ = 0; //sets number of default bots temporarly to 0 63 this->center_ = 0;63 this->center_ = NULL; 64 64 init(); 65 65 this->setHUDTemplate("DodgeRaceHUD"); // !!!!!!!!!!!!!!! change later … … 82 82 void DodgeRace::levelUp() 83 83 { 84 level++; /*84 level++; 85 85 if (getPlayer() != NULL) 86 86 { … … 96 96 multiplier *= 2; 97 97 toggleShowLevel(); 98 showLevelTimer.setTimer(1.0f, false, createExecutor(createFunctor(&DodgeRace::toggleShowLevel, this))); */98 showLevelTimer.setTimer(1.0f, false, createExecutor(createFunctor(&DodgeRace::toggleShowLevel, this))); 99 99 } 100 100 101 /*WeakPtr<DodgeRaceShip> DodgeRace::getPlayer()101 WeakPtr<DodgeRaceShip> DodgeRace::getPlayer() 102 102 { 103 103 if (player == NULL) 104 104 { 105 //for (ObjectList<DodgeRaceShip>::iterator it = ObjectList<DodgeRaceShip>::begin(); it != ObjectList<DodgeRaceShip>::end(); ++it) 106 // player = *it; 105 for (ObjectList<DodgeRaceShip>::iterator it = ObjectList<DodgeRaceShip>::begin(); it != ObjectList<DodgeRaceShip>::end(); ++it) 106 { 107 player = *it; 108 } 107 109 } 108 110 return player; 109 111 } 110 112 111 void DodgeRace::spawnEnemy()113 /*void DodgeRace::spawnEnemy() 112 114 { 113 115 if (getPlayer() == NULL) -
code/branches/surfaceraceHS14/src/modules/dodgerace2/DodgeRace.h
r10114 r10117 36 36 #define _DodgeRace_H__ 37 37 38 //#include "dodgerace2/DodgeRacePrereqs.h"38 #include "dodgerace2/DodgeRacePrereqs.h" 39 39 40 #include "DodgeRaceCenterPoint.h" 41 #include "DodgeRaceHUDinfo.h" 40 //#include "DodgeRaceCenterPoint.h" 41 //#include "DodgeRaceHUDinfo.h" 42 //#include "DodgeRaceShip.h" 42 43 43 44 #include "gametypes/Deathmatch.h" 44 45 #include "DodgeRaceCenterPoint.h"46 47 45 #include "tools/Timer.h" 48 46 … … 82 80 private: 83 81 void toggleShowLevel(){bShowLevel = !bShowLevel;} 84 //WeakPtr<DodgeRaceShip> getPlayer();82 WeakPtr<DodgeRaceShip> getPlayer(); 85 83 WeakPtr<DodgeRaceCenterPoint> center_; 86 //WeakPtr<DodgeRaceShip> player;84 WeakPtr<DodgeRaceShip> player; 87 85 88 86 Timer enemySpawnTimer; -
code/branches/surfaceraceHS14/src/modules/dodgerace2/DodgeRaceCenterPoint.cc
r10114 r10117 36 36 #include "core/CoreIncludes.h" 37 37 38 //#include "DodgeRace.h"38 #include "DodgeRace.h" 39 39 40 40 namespace orxonox -
code/branches/surfaceraceHS14/src/modules/dodgerace2/DodgeRaceCenterPoint.h
r10114 r10117 36 36 #define _DodgeRaceCenterPoint_H__ 37 37 38 //#include "dodgerace2/DodgeRacePrereqs.h" 39 #include "DodgeRace.h" 40 #include "DodgeRaceHUDinfo.h" 38 #include "dodgerace2/DodgeRacePrereqs.h" 39 40 //#include "DodgeRace.h" 41 //#include "DodgeRaceHUDinfo.h" 41 42 42 43 #include "worldentities/StaticEntity.h" -
code/branches/surfaceraceHS14/src/modules/dodgerace2/DodgeRaceHUDinfo.cc
r10114 r10117 30 30 #include "core/XMLPort.h" 31 31 #include "util/Convert.h" 32 #include "DodgeRace.h"32 //#include "DodgeRace.h" 33 33 34 34 namespace orxonox -
code/branches/surfaceraceHS14/src/modules/dodgerace2/DodgeRaceHUDinfo.h
r10114 r10117 28 28 #define _DodgeRaceHUDinfo_H__ 29 29 30 //#include "DodgeRace Prereqs.h"30 //#include "DodgeRaceShip.h" 31 31 #include "DodgeRace.h" 32 #include "DodgeRaceCenterPoint.h" 32 //#include "DodgeRaceCenterPoint.h" 33 34 #include "dodgerace2/DodgeRacePrereqs.h" 33 35 34 36 #include "tools/interfaces/Tickable.h" -
code/branches/surfaceraceHS14/src/modules/dodgerace2/DodgeRacePrereqs.h
r10114 r10117 43 43 //----------------------------------------------------------------------- 44 44 45 #if defined(ORXONOX_PLATFORM_WINDOWS) && !defined( INVADER_STATIC_BUILD)46 # ifdef INVADER_SHARED_BUILD45 #if defined(ORXONOX_PLATFORM_WINDOWS) && !defined(DODGERACE_STATIC_BUILD) 46 # ifdef DODGERACE_SHARED_BUILD 47 47 # define _DodgeRaceExport __declspec(dllexport) 48 48 # else … … 68 68 namespace orxonox 69 69 { 70 //class DodgeRace;71 class DodgeRaceCenterPoint; /*70 class DodgeRace; 71 class DodgeRaceCenterPoint; 72 72 class DodgeRaceShip; 73 class DodgeRaceEnemy;74 class DodgeRaceEnemyShooter;75 class DodgeRaceWeapon;76 class DodgeRaceWeaponEnemy;*/73 //class DodgeRaceEnemy; 74 //class DodgeRaceEnemyShooter; 75 //class DodgeRaceWeapon; 76 //class DodgeRaceWeaponEnemy; 77 77 class DodgeRaceHUDinfo; 78 78 } 79 79 80 #endif /* _DodgeRacePrereqs_H__ 80 #endif /* _DodgeRacePrereqs_H__*/
Note: See TracChangeset
for help on using the changeset viewer.