- Timestamp:
- May 26, 2016, 4:15:54 PM (8 years ago)
- Location:
- code/branches/presentationFS16
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentationFS16
- Property svn:mergeinfo changed
/code/branches/bindermFS16 (added) merged: 11139,11149-11150,11162,11173,11180-11181,11186,11188,11191,11194
- Property svn:mergeinfo changed
-
code/branches/presentationFS16/src/orxonox/LevelManager.h
r11071 r11206 24 24 * Co-authors: 25 25 * Damian 'Mozork' Frick 26 * Matthias Binder 26 27 * 27 28 */ … … 47 48 #include "util/Singleton.h" 48 49 #include "core/config/Configurable.h" 50 #include "LevelStatus.h" 51 49 52 50 53 // tolua_begin … … 63 66 Damian 'Mozork' Frick 64 67 65 @ingroup Orxonox 68 69 @ingroup Orxonox1 66 70 */ 71 72 73 74 67 75 class _OrxonoxExport LevelManager 68 76 // tolua_end … … 74 82 virtual ~LevelManager(); 75 83 84 void buildallLevelStatus(); 85 void updateAllLevelStatus(); 86 void setLevelStatus(const std::string& LevelWon); 87 88 76 89 void setConfigValues(); //!< Set the config values for this object. 77 90 78 91 void requestActivity(Level* level); //!< Request activity for the input Level. 79 92 void releaseActivity(Level* level); //!< Release activity for the input Level. 93 80 94 Level* getActiveLevel(); //!< Get the currently active Level. 81 95 82 96 // tolua_begin 97 void updatewon(int lastwon); 98 int missionactivate(int index); 83 99 void setDefaultLevel(const std::string& levelName); //!< Set the default Level. 84 100 /** … … 91 107 LevelInfoItem* getAvailableLevelListItem(unsigned int index); //!< Get the LevelInfoItem at the given index in the list of available Levels. 92 108 93 void setLastFinishedCampaignMission(const std::string& lastFinishedCampaignMission); 94 inline const std::string& getLastFinishedCampaignMission() const 95 { return this->lastFinishedCampaignMission_; } 109 inline const std::string& getLastWonMission() const 110 { return this->lastWonMission_; } 96 111 97 112 inline unsigned int getNumberOfCampaignMissions() 98 113 { return this->campaignMissions_.size(); } 114 99 115 inline const std::string& getCampaignMission(unsigned int index) 100 116 { return this->campaignMissions_[index]; } 117 101 118 102 119 /** … … 127 144 // config values 128 145 std::string defaultLevelName_; 129 std::string last FinishedCampaignMission_;146 std::string lastWonMission_; 130 147 std::vector<std::string> campaignMissions_; 148 std::vector<int> allLevelWon_; //level i is won if allLevelWon_[i]=1 149 std::vector<LevelStatus*> allLevelStatus_; 150 151 131 152 132 153 static LevelManager* singletonPtr_s;
Note: See TracChangeset
for help on using the changeset viewer.