Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 30, 2017, 3:14:02 PM (7 years ago)
Author:
rrogge
Message:

30 March

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/Dialogue_FS17/src/modules/dialogue/DialogueManager.cc

    r11377 r11382  
    77#include "network/NetworkFunctionIncludes.h"
    88#include "DialogueManager.h"
     9#include "DialoguePrereqs.h"
     10#include <vector>
     11#include <string>
    912
    1013namespace orxonox {
    11 RegisterClass(DialogueManager);
     14        ManageScopedSingleton(DialogueManager, ScopeID::ROOT, false);
     15        RegisterClass(DialogueManager);
    1216
    13         DialogueManager::DialogueManager(): OrxonoxOverlay(context){
     17        DialogueManager::DialogueManager(){
    1418                RegisterObject(DialogueManager);
    1519
    1620        }
    17         ~DialogueManager(){}
     21       
    1822
    19         std::string setnpc(std::string npc){
     23        /*std::string setnpc(std::string npc){
    2024                return npc;
    2125        }
    2226
    2327        void setquestion(std::string question){
    24                 this->question=question;
     28                question=question;
    2529        }
    2630
    2731        std::string getquestion(void){
    28                 return this->question;
     32                return question;
    2933        }
    3034
    3135        void setanswers(std::string option1, std::string option2, std::string option3){
    32                 option[0]=option1;
    33                 option[1]=option2;
    34                 option[2]=option3;
     36                options.at(0)=option1;
     37                options.at(1)=option2;
     38                options.at(2)=option3;
    3539        }
    3640
    37         std::string[] getanswers(void){
    38                 return option[];
     41        vector<std::string> getanswers(void){
     42                return options;
    3943        }
    4044
    41         int getnumOptions(options){
    42                 return options.length();
     45        int getnumOptions(){
     46                return options.size();
    4347        }
    4448
     
    4852
    4953        XMLPortParam(DialogueManager, "question", setquestion, getquestion, xmlelement, mode);
    50     }
     54    }*/
    5155}
Note: See TracChangeset for help on using the changeset viewer.