Changeset 10618 in orxonox.OLD for trunk/src/world_entities/questGUI
- Timestamp:
- Apr 4, 2007, 12:13:53 PM (18 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 16 16 OrxonoxPlayability.kdevses 17 17 OrxonoxPlayability.kdevelop.pcs 18 orxonox.backtrace 19 orxonox.kdevses 20 orxonox.kdevelop.pcs
-
- Property svn:ignore
-
trunk/src/world_entities/questGUI/quest.cc
r10374 r10618 22 22 #include "quest.h" 23 23 24 #include "event_handler.h"25 26 #include "state.h"27 28 24 #include "util/loading/load_param.h" 29 25 #include "util/loading/factory.h" 30 26 31 #include "graphics_engine.h" 32 #include "camera.h" 33 #include "sound_engine.h" 27 #include "glgui.h" 34 28 35 #include "sound_source.h"36 37 #include "glgui.h"38 #include "menu/glgui_imagebutton.h"39 #include "glgui_multiline_text.h"40 #include <glgui_image.h>41 42 43 #include "shell_command.h"44 29 45 30 … … 52 37 this->registerObject(this, Quest::_objectList); 53 38 54 this-> Status = false;39 this->status = false; 55 40 56 41 if( root != NULL) … … 96 81 void Quest::setQuestActive() 97 82 { 98 this-> Status = true;83 this->status = true; 99 84 } 100 85 101 86 void Quest::setQuestInactive() 102 87 { 103 this-> Status = false;88 this->status = false; 104 89 } 105 106 const bool Quest::getQuestStatus()107 {108 return this->Status;109 } -
trunk/src/world_entities/questGUI/quest.h
r10374 r10618 20 20 virtual void loadParams(const TiXmlElement* root = NULL); 21 21 22 inline void setQuestName(const std::string& questName) { this->questName = questName; } 23 inline const std::string& getQuestName() { return this->questName; } 24 inline void setQuestDescription(const std::string& questDescription) { this->questDescription = questDescription; } 25 inline const std::string& getQuestDescription() { return this->questDescription; } 26 inline void setQuestPicture(const std::string& questPicture) { this->questPicture = questPicture; } 27 inline const std::string& getQuestPicture() { return this->questPicture; } 28 inline void setQuestDifficulty(const std::string& questDifficulty) { this->questDifficulty = questDifficulty; } 29 inline const std::string& getQuestDifficulty() { return this->questDifficulty; } 22 inline void setQuestName(const std::string& questName) { this->questName = questName; } 23 inline const std::string& getQuestName() const { return this->questName; } 30 24 31 inline void setQuest Persons(const std::string& questPersons) { this->questPersons = questPersons; }32 inline const std::string& getQuest Persons() { return this->questPersons; }25 inline void setQuestDescription(const std::string& questDescription) { this->questDescription = questDescription; } 26 inline const std::string& getQuestDescription() const { return this->questDescription; } 33 27 34 inline void setRewardDescription(const std::string& rewardDescription){ this->rewardDescription = rewardDescription; } 35 inline const std::string& getRewardDescription() { return this->rewardDescription; } 36 inline void setRewardPicture(const std::string& rewardPicture) { this->rewardPicture = rewardPicture; } 37 inline const std::string& getRewardPicture() { return this->rewardPicture; } 28 inline void setQuestPicture(const std::string& questPicture) { this->questPicture = questPicture; } 29 inline const std::string& getQuestPicture() const { return this->questPicture; } 30 31 inline void setQuestDifficulty(const std::string& questDifficulty) { this->questDifficulty = questDifficulty; } 32 inline const std::string& getQuestDifficulty() const { return this->questDifficulty; } 33 34 inline void setQuestPersons(const std::string& questPersons) { this->questPersons = questPersons; } 35 inline const std::string& getQuestPersons() const { return this->questPersons; } 36 37 inline void setRewardDescription(const std::string& rewardDescription) { this->rewardDescription = rewardDescription; } 38 inline const std::string& getRewardDescription() const { return this->rewardDescription; } 39 40 inline void setRewardPicture(const std::string& rewardPicture) { this->rewardPicture = rewardPicture; } 41 inline const std::string& getRewardPicture() const { return this->rewardPicture; } 42 38 43 void setQuestActive(); 39 44 void setQuestInactive(); 40 const bool getQuestStatus() ;45 const bool getQuestStatus() const { return status; }; 41 46 42 47 43 48 44 49 private: 45 bool Status;50 bool status; 46 51 std::string questName; 47 52 std::string questDescription; -
trunk/src/world_entities/questGUI/quest_gui.cc
r10507 r10618 3 3 /* 4 4 orxonox - the future of 3D-vertical-scrollers 5 5 6 6 Copyright (C) 1004 orx 7 7 8 8 This program is free software; you can redistribute it and/or modify 9 9 it under the terms of the GNU General Public License as published by 10 10 the Free Software Foundation; either version 2, or (at your option) 11 11 any later version. 12 12 13 13 ### File Specific: 14 14 main-programmer std::string questName; … … 18 18 std::string rewardDescription; 19 19 std::string rewardPicture;: Andreas Hejj 20 20 21 21 */ 22 22 … … 27 27 #include "quest_gui.h" 28 28 29 #include "event_handler.h"30 31 #include "state.h"32 33 29 #include "util/loading/load_param.h" 34 30 #include "util/loading/factory.h" 35 31 36 #include "graphics_engine.h"37 #include "camera.h"38 32 #include "sound_engine.h" 39 33 40 #include "sound_source.h" 41 42 #include "glgui_widget.h" 34 43 35 #include "glgui.h" 44 36 #include "menu/glgui_imagebutton.h" 45 37 #include "glgui_multiline_text.h" 46 #include <glgui_image.h>47 38 48 39 #include "event_handler.h" … … 50 41 #include "quest.h" 51 42 52 #include "shell_command.h"53 54 43 ObjectListDefinition(QuestGUI); 55 56 44 CREATE_FACTORY(QuestGUI); 57 58 59 45 60 46 #include "script_class.h" 61 47 CREATE_SCRIPTABLE_CLASS(QuestGUI, 62 48 addMethod("startGUI", Executor0<QuestGUI, lua_State*>(&QuestGUI::startGUI)) 63 ->addMethod("stopGUI", Executor0<QuestGUI, lua_State*>(&QuestGUI::stopGUI))64 ->addMethod("isActive", Executor0ret<QuestGUI, lua_State*,bool>(&QuestGUI::isActive))49 ->addMethod("stopGUI", Executor0<QuestGUI, lua_State*>(&QuestGUI::stopGUI)) 50 ->addMethod("isActive", Executor0ret<QuestGUI, lua_State*,bool>(&QuestGUI::isActive)) 65 51 ); 66 52 … … 69 55 QuestGUI::QuestGUI(const TiXmlElement* root) 70 56 { 57 this->questBox = NULL; 58 this->bKillGui = false; 59 this->bActive = false; 60 71 61 if (root != NULL) 72 62 { 73 this->registerObject(this, QuestGUI::_objectList); 74 75 this->toList(OM_GROUP_00); 76 77 this->questBox = NULL; 78 79 this->bKillGui = false; 80 81 this->bActive = false; 82 83 this->myQuest = new Quest(root); 84 85 if(root) 86 this->loadParams( root); 63 this->registerObject(this, QuestGUI::_objectList); 64 this->toList(OM_GROUP_00); 65 this->myQuest = new Quest(root); 66 67 if(root) 68 this->loadParams( root); 87 69 } 88 70 } … … 115 97 { 116 98 this->bKillGui = false; 117 118 99 119 100 if (questBox == NULL) … … 254 235 void QuestGUI::stopGUI() 255 236 { 256 237 this->bKillGui = true; 257 238 } 258 239 -
trunk/src/world_entities/questGUI/quest_gui.h
r10492 r10618 4 4 5 5 #include "world_entity.h" 6 #include "glgui.h"7 #include <glgui_image.h>8 #include <vector>9 6 10 7 class Quest; 8 namespace OrxGui { class GLGuiBox; } 11 9 12 10 class QuestGUI : public WorldEntity … … 28 26 29 27 private: 30 Quest* 31 bool 32 bool 28 Quest* myQuest; 29 bool bKillGui; 30 bool bActive; 33 31 34 OrxGui::GLGuiBox* headerBox;35 OrxGui::GLGuiBox* outlineBox;36 OrxGui::GLGuiBox* labelBox;37 OrxGui::GLGuiImage* placeImage;38 32 OrxGui::GLGuiBox* questBox; 39 OrxGui::GLGuiImage* questImage; 40 OrxGui::GLGuiBox* rewardBox; 41 OrxGui::GLGuiImage* rewardImage; 42 OrxGui::GLGuiBox* answerBox; 43 OrxGui::GLGuiImage* placeImage2; 44 OrxGui::GLGuiBox* acceptBox; 45 OrxGui::GLGuiBox* refuseBox; 46 47 48 OrxSound::SoundSource* selectorSource; 33 34 49 35 50 36 void accept();
Note: See TracChangeset
for help on using the changeset viewer.