Changeset 9667 for code/trunk/src/orxonox/items
- Timestamp:
- Aug 25, 2013, 9:08:42 PM (11 years ago)
- Location:
- code/trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/core6 merged: 9552-9554,9556-9574,9577-9579,9585-9593,9596-9612,9626-9662
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/items/Engine.cc
r8858 r9667 30 30 31 31 #include "core/CoreIncludes.h" 32 #include "core/ ConfigValueIncludes.h"32 #include "core/config/ConfigValueIncludes.h" 33 33 #include "core/Template.h" 34 34 #include "core/XMLPort.h" … … 40 40 namespace orxonox 41 41 { 42 CreateFactory(Engine);42 RegisterClass(Engine); 43 43 44 44 /** … … 46 46 Constructor. Registers and initializes the object. 47 47 */ 48 Engine::Engine( BaseObject* creator) : Item(creator)48 Engine::Engine(Context* context) : Item(context) 49 49 { 50 50 RegisterObject(Engine); -
code/trunk/src/orxonox/items/Engine.h
r8727 r9667 56 56 { 57 57 public: 58 Engine( BaseObject* creator);58 Engine(Context* context); 59 59 virtual ~Engine(); 60 60 -
code/trunk/src/orxonox/items/Item.cc
r5781 r9667 32 32 namespace orxonox 33 33 { 34 Item::Item(BaseObject* creator) : BaseObject(creator), Synchronisable(creator) 34 RegisterClass(Item); 35 36 Item::Item(Context* context) : BaseObject(context), Synchronisable(context) 35 37 { 36 38 RegisterObject(Item); -
code/trunk/src/orxonox/items/Item.h
r5781 r9667 40 40 { 41 41 public: 42 Item( BaseObject* creator);42 Item(Context* context); 43 43 virtual ~Item() {} 44 44 }; -
code/trunk/src/orxonox/items/MultiStateEngine.cc
r8727 r9667 49 49 static const float MAX_VELOCITY_BOOST = 221; 50 50 51 CreateFactory(MultiStateEngine);52 53 MultiStateEngine::MultiStateEngine( BaseObject* creator) : Engine(creator)51 RegisterClass(MultiStateEngine); 52 53 MultiStateEngine::MultiStateEngine(Context* context) : Engine(context) 54 54 { 55 55 RegisterObject(MultiStateEngine); … … 57 57 if (GameMode::isMaster()) 58 58 { 59 this->defEngineSndNormal_ = new WorldSound(this );60 this->defEngineSndBoost_ = new WorldSound(this );59 this->defEngineSndNormal_ = new WorldSound(this->getContext()); 60 this->defEngineSndBoost_ = new WorldSound(this->getContext()); 61 61 this->defEngineSndNormal_->setLooping(true); 62 62 this->defEngineSndBoost_->setLooping(true); -
code/trunk/src/orxonox/items/MultiStateEngine.h
r8727 r9667 49 49 }; 50 50 51 MultiStateEngine( BaseObject* creator);51 MultiStateEngine(Context* context); 52 52 virtual ~MultiStateEngine(); 53 53
Note: See TracChangeset
for help on using the changeset viewer.