Changeset 9667 for code/trunk/src/modules/pong/Pong.cc
- Timestamp:
- Aug 25, 2013, 9:08:42 PM (11 years ago)
- Location:
- code/trunk
- Files:
-
- 2 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 }
Note: See TracChangeset
for help on using the changeset viewer.