Changeset 11720 for code/trunk/src/modules/gametypes/SpaceRaceBot.cc
- Timestamp:
- Feb 4, 2018, 4:58:37 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/gametypes/SpaceRaceBot.cc
r11358 r11720 23 23 * Author: purgham 24 24 */ 25 #include <vector>26 25 27 26 #include "SpaceRaceBot.h" 28 #include "core/GameMode.h"29 27 #include "core/CoreIncludes.h" 30 #include "core/config/ConfigValueIncludes.h"31 #include "gametypes/Gametype.h"32 #include "controllers/AIController.h"33 #include "gametypes/SpaceRaceController.h"34 35 36 37 28 38 29 namespace orxonox … … 42 33 SpaceRaceBot::SpaceRaceBot(Context* context) : Bot(context){ 43 34 RegisterObject(SpaceRaceBot); 44 this->defaultController_ = Class(SpaceRaceController); // ClassByString("")35 this->defaultController_ = Class(SpaceRaceController); 45 36 this->createController(); 46 47 }48 49 SpaceRaceBot::~SpaceRaceBot(){50 51 }52 53 void SpaceRaceBot::setConfigValues()54 {55 static const std::string names[] =56 {57 "Dr. Julius No",58 "Berkay Berabi",59 "Louis Meile"60 "Yo mama"61 };62 static std::vector<std::string> defaultnames(names, names + sizeof(names) / sizeof(std::string));63 64 SetConfigValue(names_, defaultnames);65 37 } 66 38 }
Note: See TracChangeset
for help on using the changeset viewer.