Changeset 11173 for code/branches/bindermFS16/src/orxonox
- Timestamp:
- Apr 21, 2016, 4:05:15 PM (9 years ago)
- Location:
- code/branches/bindermFS16/src/orxonox
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/bindermFS16/src/orxonox/CMakeLists.txt
r11162 r11173 58 58 TOLUA_FILES 59 59 chat/ChatInputHandler.h 60 overlays/CampaignMenu.h 60 61 LevelInfo.h 61 62 LevelManager.h -
code/branches/bindermFS16/src/orxonox/LevelManager.cc
r11071 r11173 49 49 namespace orxonox 50 50 { 51 52 LevelStatus::LevelStatus() 53 { 54 this->won = true; 55 } 56 57 LevelStatus::~LevelStatus() 58 {} 59 60 bool LevelManager::missionactivate(int index) 61 { 62 //check for index level activate... 63 return index-5; 64 } 65 66 void LevelManager::setLevelStatus(int completedLevel) 67 { 68 // allLevelStatus_[completedLevel]=new LevelStatus; 69 } 70 71 51 72 SetCommandLineArgument(level, "").shortcut("l").information("Default level file (overrides LevelManager::defaultLevelName_ configValue)"); 52 73 … … 63 84 RegisterObject(LevelManager); 64 85 this->setConfigValues(); 86 87 65 88 66 89 // check override … … 73 96 this->nextIndex_ = 0; 74 97 this->nextLevel_ = this->availableLevels_.begin(); 75 } 98 99 allLevelStatus_.reserve(1); 100 } 101 76 102 77 103 LevelManager::~LevelManager() … … 103 129 ModifyConfigValue(lastFinishedCampaignMission_, set, lastFinishedCampaignMission); 104 130 } 131 132 105 133 106 134 /** -
code/branches/bindermFS16/src/orxonox/LevelManager.h
r11071 r11173 48 48 #include "core/config/Configurable.h" 49 49 50 51 namespace orxonox 52 { 53 54 class LevelStatus 55 { 56 public: 57 LevelStatus(); 58 virtual ~LevelStatus(); 59 60 61 private: 62 bool won; 63 std::vector<int> nextLevels; 64 65 }; 66 } 67 50 68 // tolua_begin 51 69 namespace orxonox … … 63 81 Damian 'Mozork' Frick 64 82 65 @ingroup Orxonox 83 84 @ingroup Orxonox1 66 85 */ 86 87 88 89 67 90 class _OrxonoxExport LevelManager 68 91 // tolua_end … … 74 97 virtual ~LevelManager(); 75 98 99 void setLevelStatus(int integer); 100 101 76 102 void setConfigValues(); //!< Set the config values for this object. 77 103 78 104 void requestActivity(Level* level); //!< Request activity for the input Level. 79 105 void releaseActivity(Level* level); //!< Release activity for the input Level. 106 80 107 Level* getActiveLevel(); //!< Get the currently active Level. 81 108 82 109 // tolua_begin 110 bool missionactivate(int index); 83 111 void setDefaultLevel(const std::string& levelName); //!< Set the default Level. 84 112 /** … … 97 125 inline unsigned int getNumberOfCampaignMissions() 98 126 { return this->campaignMissions_.size(); } 127 99 128 inline const std::string& getCampaignMission(unsigned int index) 100 129 { return this->campaignMissions_[index]; } 130 101 131 102 132 /** … … 129 159 std::string lastFinishedCampaignMission_; 130 160 std::vector<std::string> campaignMissions_; 161 std::vector<LevelStatus> allLevelStatus_; 162 163 131 164 132 165 static LevelManager* singletonPtr_s; -
code/branches/bindermFS16/src/orxonox/gametypes/Mission.cc
r11071 r11173 92 92 93 93 LevelManager::getInstance().setLastFinishedCampaignMission(this->getFilename()); 94 //LevelManager::getInstance().setLevelStatus(7); 94 95 } 95 96 else if (!this->gtinfo_->hasEnded()) -
code/branches/bindermFS16/src/orxonox/overlays/CampaignMenu.cc
r11162 r11173 33 33 #include "core/GameMode.h" 34 34 35 35 36 namespace orxonox 36 37 { 38 39 37 40 RegisterClass(CampaignMenu); 38 41 … … 52 55 } 53 56 54 //loads the campaign menu 55 void CampaignMenu::loadNewMenu() 57 58 //loads the new campaign menu 59 void CampaignMenu::loadnewmenu() 56 60 { 57 61 -
code/branches/bindermFS16/src/orxonox/overlays/CampaignMenu.h
r11162 r11173 32 32 #include <string> 33 33 #include "core/BaseObject.h" 34 #include "util/Singleton.h" 34 35 35 36 namespace orxonox // tolua_export 37 { // tolua_export 38 39 class _OrxonoxExport CampaignMenu // tolua_export 40 : public BaseObject 41 { // tolua_export 36 //tolua_begin 37 namespace orxonox 38 { 39 //tolua_end 40 class _OrxonoxExport CampaignMenu : public BaseObject //tolua_export 41 { //tolua_export 42 42 public: 43 43 CampaignMenu(Context* context); 44 44 ~CampaignMenu(); 45 static void test(); // tolua_export 46 void loadNewMenu(); 47 };// tolua_export 48 } // tolua_export 45 static void test(); //tolua_export 46 void loadnewmenu(); 47 }; //tolua_export 48 49 50 51 } //tolua_export 49 52 50 53 #endif /* _CampaignMenu_H__ */
Note: See TracChangeset
for help on using the changeset viewer.