Changeset 3196 for code/trunk/src/orxonox/objects/pickup
- Timestamp:
- Jun 20, 2009, 9:20:47 AM (16 years ago)
- Location:
- code/trunk
- Files:
-
- 26 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/pch (added) merged: 3114-3118,3124-3125,3127-3131,3133,3138-3194
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/pickup/BaseItem.cc
r3073 r3196 34 34 #include "BaseItem.h" 35 35 36 #include "PickupCollection.h"37 38 36 #include "core/CoreIncludes.h" 39 37 #include "core/XMLPort.h" … … 55 53 this->setGUIText(""); 56 54 } 57 //! De constructor.55 //! Destructor. 58 56 BaseItem::~BaseItem() 59 57 { … … 105 103 } 106 104 107 const std::string& BaseItem::getGUIText() const { return this->guiText_; } 105 const std::string& BaseItem::getGUIText() const 106 { 107 return this->guiText_; 108 } 108 109 } -
code/trunk/src/orxonox/objects/pickup/BaseItem.h
r3073 r3196 37 37 #include "OrxonoxPrereqs.h" 38 38 39 #include <string> 39 40 #include "core/BaseObject.h" 40 41 -
code/trunk/src/orxonox/objects/pickup/DroppedItem.cc
r3079 r3196 29 29 #include "DroppedItem.h" 30 30 31 #include "util/Math.h" 32 #include "core/CoreIncludes.h" 33 #include "core/Executor.h" 31 34 #include "BaseItem.h" 35 #include "objects/worldentities/Billboard.h" 36 #include "objects/worldentities/Model.h" 32 37 #include "objects/worldentities/pawns/Pawn.h" 33 #include "objects/worldentities/Model.h"34 #include "objects/worldentities/Billboard.h"35 36 #include "core/CoreIncludes.h"37 38 38 39 namespace orxonox -
code/trunk/src/orxonox/objects/pickup/DroppedItem.h
r3079 r3196 29 29 /** 30 30 @file 31 @brief Definition of BaseItem (base-class for items/pickups).31 @brief Definition of DroppedItem 32 32 */ 33 33 … … 37 37 #include "OrxonoxPrereqs.h" 38 38 39 #include "objects/Tickable.h" 39 #include "tools/Timer.h" 40 #include "interfaces/Tickable.h" 40 41 #include "objects/worldentities/StaticEntity.h" 41 #include "tools/Timer.h"42 42 43 43 namespace orxonox -
code/trunk/src/orxonox/objects/pickup/EquipmentItem.cc
r3073 r3196 33 33 34 34 #include "EquipmentItem.h" 35 36 35 #include "core/CoreIncludes.h" 37 36 … … 46 45 RegisterObject(EquipmentItem); 47 46 } 48 //! Deconstructor.49 EquipmentItem::~EquipmentItem()50 {51 }52 47 } -
code/trunk/src/orxonox/objects/pickup/EquipmentItem.h
r3073 r3196 38 38 39 39 #include "BaseItem.h" 40 41 40 namespace orxonox 42 41 { … … 49 48 public: 50 49 EquipmentItem(BaseObject* creator); 51 virtual ~EquipmentItem() ;50 virtual ~EquipmentItem() {} 52 51 }; 53 52 } -
code/trunk/src/orxonox/objects/pickup/ModifierPickup.cc
r3079 r3196 33 33 34 34 #include "ModifierPickup.h" 35 #include "PickupCollection.h"36 35 37 36 #include "core/CoreIncludes.h" 38 37 #include "core/XMLPort.h" 39 40 38 #include "objects/worldentities/pawns/Pawn.h" 41 39 -
code/trunk/src/orxonox/objects/pickup/ModifierPickup.h
r3073 r3196 35 35 #define _ModifierPickup_H__ 36 36 37 #include <climits>38 39 37 #include "OrxonoxPrereqs.h" 40 38 39 #include <climits> 40 #include <map> 41 42 #include "orxonox/tools/Timer.h" 43 #include "ModifierType.h" 41 44 #include "PassiveItem.h" 42 #include "ModifierType.h"43 #include "orxonox/tools/Timer.h"44 45 45 46 namespace orxonox -
code/trunk/src/orxonox/objects/pickup/ModifierType.h
r3073 r3196 35 35 #define _ModifierType_H__ 36 36 37 #include "OrxonoxPrereqs.h" 38 37 39 namespace orxonox 38 40 { -
code/trunk/src/orxonox/objects/pickup/PassiveItem.cc
r3073 r3196 28 28 29 29 #include "PassiveItem.h" 30 31 30 #include "core/CoreIncludes.h" 32 31 … … 41 40 RegisterObject(PassiveItem); 42 41 } 43 //! Deconstructor.44 PassiveItem::~PassiveItem()45 {46 }47 42 } -
code/trunk/src/orxonox/objects/pickup/PassiveItem.h
r3073 r3196 36 36 37 37 #include "OrxonoxPrereqs.h" 38 39 38 #include "BaseItem.h" 40 39 … … 49 48 public: 50 49 PassiveItem(BaseObject* creator); 51 virtual ~PassiveItem() ;50 virtual ~PassiveItem() {} 52 51 }; 53 52 } -
code/trunk/src/orxonox/objects/pickup/PickupCollection.cc
r3079 r3196 34 34 #include "PickupCollection.h" 35 35 36 #include " BaseItem.h"36 #include "core/CoreIncludes.h" 37 37 #include "EquipmentItem.h" 38 38 #include "PassiveItem.h" 39 39 #include "UsableItem.h" 40 41 #include "core/CoreIncludes.h"42 40 43 41 namespace orxonox -
code/trunk/src/orxonox/objects/pickup/PickupCollection.h
r3079 r3196 37 37 #include "OrxonoxPrereqs.h" 38 38 39 #include <deque> 39 40 #include <map> 40 #include <deque>41 41 #include <string> 42 42 43 43 #include "util/Math.h" 44 45 44 #include "ModifierType.h" 46 45 -
code/trunk/src/orxonox/objects/pickup/PickupInventory.cc
r3085 r3196 28 28 29 29 #include "PickupInventory.h" 30 31 #include "EquipmentItem.h"32 #include "PassiveItem.h"33 #include "UsableItem.h"34 35 #include "core/ConsoleCommand.h"36 #include "core/input/InputManager.h"37 38 #include "gui/GUIManager.h"39 #include "objects/controllers/HumanController.h"40 #include "objects/worldentities/pawns/Pawn.h"41 30 42 31 #include <CEGUIImage.h> … … 47 36 #include <elements/CEGUITabControl.h> 48 37 38 #include "core/ConsoleCommand.h" 39 #include "core/input/InputManager.h" 40 #include "gui/GUIManager.h" 41 #include "objects/controllers/HumanController.h" 42 #include "objects/worldentities/pawns/Pawn.h" 43 44 #include "EquipmentItem.h" 45 #include "PassiveItem.h" 46 #include "UsableItem.h" 47 48 49 49 namespace orxonox 50 50 { … … 86 86 { 87 87 if(PickupInventory::getSingleton()->isVisible()) { 88 GUIManager::getInstance Ptr()->executeCode("hideGUI(\"PickupInventory\")");89 GUIManager::getInstance Ptr()->executeCode("hideCursor()");88 GUIManager::getInstance().executeCode("hideGUI(\"PickupInventory\")"); 89 GUIManager::getInstance().executeCode("hideCursor()"); 90 90 InputManager::getInstance().requestLeaveState("guiMouseOnly"); 91 91 } 92 92 else 93 93 { 94 GUIManager::getInstance Ptr()->showGUI("PickupInventory");95 GUIManager::getInstance Ptr()->executeCode("showCursor()");94 GUIManager::getInstance().showGUI("PickupInventory"); 95 GUIManager::getInstance().executeCode("showCursor()"); 96 96 InputManager::getInstance().requestEnterState("guiMouseOnly"); 97 97 } -
code/trunk/src/orxonox/objects/pickup/PickupInventory.h
r3079 r3196 37 37 #include "OrxonoxPrereqs.h" 38 38 39 #include <CEGUIForwardRefs.h> 39 40 #include "core/BaseObject.h" 40 41 namespace CEGUI { class Window; class WindowManager; class Image; }42 41 43 42 // tolua_begin -
code/trunk/src/orxonox/objects/pickup/PickupSpawner.cc
r3079 r3196 33 33 34 34 #include "PickupSpawner.h" 35 35 36 #include "BaseItem.h" 36 #include "PickupInventory.h" // HACK; Only for hack, remove later37 #include "gui/GUIManager.h" // HACK; see above38 37 39 38 #include "core/CoreIncludes.h" 39 #include "core/Template.h" 40 40 #include "core/XMLPort.h" 41 #include "core/Template.h" 41 #include "gui/GUIManager.h" // HACK; see below 42 #include "objects/worldentities/pawns/Pawn.h" 43 #include "PickupInventory.h" // HACK; Only for hack, remove later 42 44 43 #include "objects/worldentities/pawns/Pawn.h"44 45 45 46 namespace orxonox … … 95 96 // & load the GUI itself too, along with some empty windows 96 97 // = even less delays 97 GUIManager::getInstance Ptr()->showGUI("PickupInventory");98 GUIManager::getInstance Ptr()->executeCode("hideGUI(\"PickupInventory\")");98 GUIManager::getInstance().showGUI("PickupInventory"); 99 GUIManager::getInstance().executeCode("hideGUI(\"PickupInventory\")"); 99 100 PickupInventory::getSingleton(); 100 101 } -
code/trunk/src/orxonox/objects/pickup/PickupSpawner.h
r3079 r3196 37 37 #include "OrxonoxPrereqs.h" 38 38 39 #include "objects/Tickable.h" 39 #include <string> 40 #include "tools/Timer.h" 41 #include "interfaces/Tickable.h" 40 42 #include "objects/worldentities/StaticEntity.h" 41 #include "tools/Timer.h"42 43 43 44 namespace orxonox -
code/trunk/src/orxonox/objects/pickup/UsableItem.cc
r3073 r3196 33 33 34 34 #include "UsableItem.h" 35 36 35 #include "core/CoreIncludes.h" 37 36 … … 46 45 RegisterObject(UsableItem); 47 46 } 48 //! Deconstructor.49 UsableItem::~UsableItem()50 {51 }52 47 } -
code/trunk/src/orxonox/objects/pickup/UsableItem.h
r3073 r3196 36 36 37 37 #include "OrxonoxPrereqs.h" 38 39 38 #include "BaseItem.h" 40 39 … … 49 48 public: 50 49 UsableItem(BaseObject* creator); 51 virtual ~UsableItem() ;50 virtual ~UsableItem() { } 52 51 53 52 /** -
code/trunk/src/orxonox/objects/pickup/items/HealthImmediate.cc
r3079 r3196 34 34 #include "HealthImmediate.h" 35 35 36 #include "objects/worldentities/pawns/Pawn.h"37 38 36 #include "core/CoreIncludes.h" 39 37 #include "core/XMLPort.h" 38 #include "objects/worldentities/pawns/Pawn.h" 40 39 41 40 namespace orxonox -
code/trunk/src/orxonox/objects/pickup/items/HealthImmediate.h
r3079 r3196 36 36 37 37 #include "OrxonoxPrereqs.h" 38 39 38 #include "objects/pickup/PassiveItem.h" 40 39 -
code/trunk/src/orxonox/objects/pickup/items/HealthUsable.cc
r3079 r3196 33 33 34 34 #include "HealthUsable.h" 35 #include "objects/pickup/DroppedItem.h"36 35 37 #include "objects/worldentities/pawns/Pawn.h" 38 36 #include "util/Math.h" 39 37 #include "core/CoreIncludes.h" 40 38 #include "core/XMLPort.h" 39 #include "objects/pickup/DroppedItem.h" 40 #include "objects/worldentities/pawns/Pawn.h" 41 41 42 42 namespace orxonox -
code/trunk/src/orxonox/objects/pickup/items/HealthUsable.h
r3081 r3196 35 35 #define _HealthUsable_H__ 36 36 37 #include <climits>38 39 37 #include "OrxonoxPrereqs.h" 40 38 39 #include <climits> 41 40 #include "objects/pickup/UsableItem.h" 42 #include "util/Math.h"43 41 44 42 namespace orxonox -
code/trunk/src/orxonox/objects/pickup/items/Jump.cc
r3079 r3196 33 33 34 34 #include "Jump.h" 35 #include "objects/pickup/DroppedItem.h"36 37 #include "objects/worldentities/pawns/Pawn.h"38 35 39 36 #include "core/CoreIncludes.h" 40 37 #include "core/XMLPort.h" 38 #include "objects/pickup/DroppedItem.h" 39 #include "objects/worldentities/pawns/Pawn.h" 41 40 42 41 namespace orxonox -
code/trunk/src/orxonox/objects/pickup/items/Jump.h
r3079 r3196 39 39 #include "OrxonoxPrereqs.h" 40 40 41 #include <climits> 42 #include "util/Math.h" 41 43 #include "objects/pickup/UsableItem.h" 42 #include "util/Math.h"43 44 44 45 namespace orxonox
Note: See TracChangeset
for help on using the changeset viewer.