Changeset 10618 in orxonox.OLD for trunk/src/world_entities/questGUI/quest_gui.cc
- Timestamp:
- Apr 4, 2007, 12:13:53 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 2 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_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
Note: See TracChangeset
for help on using the changeset viewer.