Changeset 9667 for code/trunk/src/modules/pong
- Timestamp:
- Aug 25, 2013, 9:08:42 PM (11 years ago)
- Location:
- code/trunk
- Files:
-
- 15 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/modules/pong/Pong.cc
r9348 r9667 37 37 #include "core/EventIncludes.h" 38 38 #include "core/command/Executor.h" 39 #include "core/ ConfigValueIncludes.h"39 #include "core/config/ConfigValueIncludes.h" 40 40 41 41 #include "gamestates/GSLevel.h" … … 53 53 CreateEventName(PongCenterpoint, left); 54 54 55 CreateUnloadableFactory(Pong);55 RegisterUnloadableClass(Pong); 56 56 57 57 /** … … 59 59 Constructor. Registers and initializes the object. 60 60 */ 61 Pong::Pong( BaseObject* creator) : Deathmatch(creator)61 Pong::Pong(Context* context) : Deathmatch(context) 62 62 { 63 63 RegisterObject(Pong); … … 129 129 if (this->ball_ == NULL) // If there is no ball, create a new ball. 130 130 { 131 this->ball_ = new PongBall(this->center_ );131 this->ball_ = new PongBall(this->center_->getContext()); 132 132 // Apply the template for the ball specified by the centerpoint. 133 133 this->ball_->addTemplate(this->center_->getBalltemplate()); … … 147 147 if (this->bat_[i] == NULL) 148 148 { 149 this->bat_[i] = new PongBat(this->center_ );149 this->bat_[i] = new PongBat(this->center_->getContext()); 150 150 this->bat_[i]->addTemplate(this->center_->getBattemplate()); 151 151 } -
code/trunk/src/modules/pong/Pong.h
r9348 r9667 65 65 { 66 66 public: 67 Pong( BaseObject* creator); //!< Constructor. Registers and initializes the object.67 Pong(Context* context); //!< Constructor. Registers and initializes the object. 68 68 virtual ~Pong(); //!< Destructor. Cleans up, if initialized. 69 69 -
code/trunk/src/modules/pong/PongAI.cc
r8952 r9667 35 35 36 36 #include "core/CoreIncludes.h" 37 #include "core/ ConfigValueIncludes.h"37 #include "core/config/ConfigValueIncludes.h" 38 38 #include "core/command/Executor.h" 39 39 #include "tools/Timer.h" … … 45 45 namespace orxonox 46 46 { 47 CreateUnloadableFactory(PongAI);47 RegisterUnloadableClass(PongAI); 48 48 49 49 const static float MAX_REACTION_TIME = 0.4f; … … 53 53 Constructor. Registers and initializes the object. 54 54 */ 55 PongAI::PongAI( BaseObject* creator) : Controller(creator)55 PongAI::PongAI(Context* context) : Controller(context) 56 56 { 57 57 RegisterObject(PongAI); -
code/trunk/src/modules/pong/PongAI.h
r9016 r9667 44 44 45 45 #include "controllers/Controller.h" 46 #include "PongBall.h" 46 47 47 48 namespace orxonox … … 60 61 { 61 62 public: 62 PongAI( BaseObject* creator); //!< Constructor. Registers and initializes the object.63 PongAI(Context* context); //!< Constructor. Registers and initializes the object. 63 64 virtual ~PongAI(); 64 65 -
code/trunk/src/modules/pong/PongBall.cc
r8108 r9667 43 43 namespace orxonox 44 44 { 45 CreateFactory(PongBall);45 RegisterClass(PongBall); 46 46 47 47 const float PongBall::MAX_REL_Z_VELOCITY = 1.5; … … 51 51 Constructor. Registers and initializes the object. 52 52 */ 53 PongBall::PongBall( BaseObject* creator)54 : MovableEntity(c reator)53 PongBall::PongBall(Context* context) 54 : MovableEntity(context) 55 55 { 56 56 RegisterObject(PongBall); -
code/trunk/src/modules/pong/PongBall.h
r8108 r9667 59 59 { 60 60 public: 61 PongBall( BaseObject* creator);61 PongBall(Context* context); 62 62 virtual ~PongBall(); 63 63 -
code/trunk/src/modules/pong/PongBat.cc
r8108 r9667 39 39 namespace orxonox 40 40 { 41 CreateFactory(PongBat);41 RegisterClass(PongBat); 42 42 43 43 /** … … 45 45 Constructor. Registers and initializes the object. 46 46 */ 47 PongBat::PongBat( BaseObject* creator) : ControllableEntity(creator)47 PongBat::PongBat(Context* context) : ControllableEntity(context) 48 48 { 49 49 RegisterObject(PongBat); -
code/trunk/src/modules/pong/PongBat.h
r8706 r9667 57 57 { 58 58 public: 59 PongBat( BaseObject* creator); //!< Constructor. Registers and initializes the object.59 PongBat(Context* context); //!< Constructor. Registers and initializes the object. 60 60 virtual ~PongBat() {} 61 61 -
code/trunk/src/modules/pong/PongBot.cc
r8108 r9667 39 39 namespace orxonox 40 40 { 41 CreateFactory(PongBot);41 RegisterClass(PongBot); 42 42 43 43 /** … … 45 45 Constructor. Registers the object and creates a PongAI controller. 46 46 */ 47 PongBot::PongBot( BaseObject* creator) : Bot(creator)47 PongBot::PongBot(Context* context) : Bot(context) 48 48 { 49 49 RegisterObject(PongBot); -
code/trunk/src/modules/pong/PongBot.h
r8108 r9667 56 56 { 57 57 public: 58 PongBot( BaseObject* creator);58 PongBot(Context* context); 59 59 virtual ~PongBot() {} 60 60 }; -
code/trunk/src/modules/pong/PongCenterpoint.cc
r8108 r9667 41 41 namespace orxonox 42 42 { 43 CreateFactory(PongCenterpoint);43 RegisterClass(PongCenterpoint); 44 44 45 45 /** … … 47 47 Constructor. Registers and initializes the object and checks whether the gametype is actually Pong. 48 48 */ 49 PongCenterpoint::PongCenterpoint( BaseObject* creator) : StaticEntity(creator)49 PongCenterpoint::PongCenterpoint(Context* context) : StaticEntity(context) 50 50 { 51 51 RegisterObject(PongCenterpoint); -
code/trunk/src/modules/pong/PongCenterpoint.h
r8108 r9667 121 121 { 122 122 public: 123 PongCenterpoint( BaseObject* creator); //!< Constructor. Registers and initializes the object and checks whether the gametype is actually Pong.123 PongCenterpoint(Context* context); //!< Constructor. Registers and initializes the object and checks whether the gametype is actually Pong. 124 124 virtual ~PongCenterpoint() {} 125 125 -
code/trunk/src/modules/pong/PongScore.cc
r9264 r9667 44 44 namespace orxonox 45 45 { 46 CreateFactory(PongScore);46 RegisterClass(PongScore); 47 47 48 48 /** … … 50 50 Constructor. Registers and initializes the object. 51 51 */ 52 PongScore::PongScore( BaseObject* creator) : OverlayText(creator)52 PongScore::PongScore(Context* context) : OverlayText(context) 53 53 { 54 54 RegisterObject(PongScore); -
code/trunk/src/modules/pong/PongScore.h
r9258 r9667 57 57 { 58 58 public: 59 PongScore( BaseObject* creator);59 PongScore(Context* context); 60 60 virtual ~PongScore(); 61 61
Note: See TracChangeset
for help on using the changeset viewer.