Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 12, 2016, 4:07:25 PM (8 years ago)
Author:
binderm
Message:

LevelStatus and levelmanager in two files, LevelStatus saves and changes the actual campaign progress

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/bindermFS16/src/orxonox/LevelManager.h

    r11180 r11186  
    4747#include "util/Singleton.h"
    4848#include "core/config/Configurable.h"
     49#include "LevelStatus.h"
    4950
    50 
    51 namespace orxonox
    52 {
    53 
    54     class LevelStatus
    55     {
    56     public:
    57         LevelStatus();
    58         virtual ~LevelStatus();
    59        
    60         bool won;
    61         std::vector<int> nextLevels;
    62 
    63     };
    64 }
    6551
    6652// tolua_begin
     
    9581            virtual ~LevelManager();
    9682
    97             void setLevelStatus(const int integer);
     83            //void setLevelStatus(const int integer);
    9884            void buildallLevelStatus();
     85            void updateAllLevelStatus();
     86            void setLevelStatus(const std::string& LevelWon);
    9987
    10088
     
    10795
    10896            // tolua_begin
     97            void updatewon(int lastwon);
    10998            int missionactivate(int index);
    11099            void setDefaultLevel(const std::string& levelName); //!< Set the default Level.
     
    118107            LevelInfoItem* getAvailableLevelListItem(unsigned int index); //!< Get the LevelInfoItem at the given index in the list of available Levels.
    119108
    120             void setLastFinishedCampaignMission(const std::string& lastFinishedCampaignMission);
    121             inline const std::string& getLastFinishedCampaignMission() const
    122                 { return this->lastFinishedCampaignMission_; }
     109            //void setLastFinishedCampaignMission(const std::string& lastFinishedCampaignMission);
     110            inline const std::string& getLastWonMission() const
     111                { return this->lastWonMission_; }
    123112
    124113            inline unsigned int getNumberOfCampaignMissions()
     
    156145            // config values
    157146            std::string defaultLevelName_;
    158             std::string lastFinishedCampaignMission_;
     147            std::string lastWonMission_;
    159148            std::vector<std::string> campaignMissions_;
    160 
     149            std::vector<int> test_;
    161150            std::vector<LevelStatus> allLevelStatus_;
    162151
Note: See TracChangeset for help on using the changeset viewer.