Changeset 9667 for code/trunk/src/modules/tetris
- Timestamp:
- Aug 25, 2013, 9:08:42 PM (11 years ago)
- Location:
- code/trunk
- Files:
-
- 11 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/tetris/Tetris.cc
r9348 r9667 54 54 { 55 55 56 CreateUnloadableFactory(Tetris);56 RegisterUnloadableClass(Tetris); 57 57 58 58 /** … … 61 61 @ingroup Tetris 62 62 */ 63 Tetris::Tetris( BaseObject* creator) : Deathmatch(creator)63 Tetris::Tetris(Context* context) : Deathmatch(context) 64 64 { 65 65 RegisterObject(Tetris); … … 379 379 { 380 380 // create new futureBrick_ 381 this->futureBrick_ = new TetrisBrick(this->center_ );381 this->futureBrick_ = new TetrisBrick(this->center_->getContext()); 382 382 383 383 -
code/trunk/src/modules/tetris/Tetris.h
r9348 r9667 55 55 { 56 56 public: 57 Tetris( BaseObject* creator); //!< Constructor. Registers and initializes the object.57 Tetris(Context* context); //!< Constructor. Registers and initializes the object. 58 58 virtual ~Tetris(); //!< Destructor. Cleans up, if initialized. 59 59 -
code/trunk/src/modules/tetris/TetrisBrick.cc
r9348 r9667 44 44 namespace orxonox 45 45 { 46 CreateFactory(TetrisBrick);46 RegisterClass(TetrisBrick); 47 47 48 48 /** … … 51 51 @ingroup Tetris 52 52 */ 53 TetrisBrick::TetrisBrick( BaseObject* creator): ControllableEntity(creator)53 TetrisBrick::TetrisBrick(Context* context): ControllableEntity(context) 54 54 { 55 55 RegisterObject(TetrisBrick); … … 77 77 { 78 78 // Create a new stone and add it to the brick. 79 TetrisStone* stone = new TetrisStone(this );79 TetrisStone* stone = new TetrisStone(this->getContext()); 80 80 this->brickStones_.push_back(stone); 81 81 this->attach(stone); -
code/trunk/src/modules/tetris/TetrisBrick.h
r9348 r9667 54 54 { 55 55 public: 56 TetrisBrick( BaseObject* creator); //!< Constructor. Registers and initializes the object.56 TetrisBrick(Context* context); //!< Constructor. Registers and initializes the object. 57 57 virtual ~TetrisBrick() {} 58 58 -
code/trunk/src/modules/tetris/TetrisCenterpoint.cc
r9348 r9667 42 42 namespace orxonox 43 43 { 44 CreateFactory(TetrisCenterpoint);44 RegisterClass(TetrisCenterpoint); 45 45 46 46 /** … … 48 48 Constructor. Registers and initializes the object and checks whether the gametype is actually Tetris. 49 49 */ 50 TetrisCenterpoint::TetrisCenterpoint( BaseObject* creator) : StaticEntity(creator)50 TetrisCenterpoint::TetrisCenterpoint(Context* context) : StaticEntity(context) 51 51 { 52 52 RegisterObject(TetrisCenterpoint); -
code/trunk/src/modules/tetris/TetrisCenterpoint.h
r9348 r9667 59 59 { 60 60 public: 61 TetrisCenterpoint( BaseObject* creator); //!< Constructor. Registers and initializes the object and checks whether the gametype is actually Tetris.61 TetrisCenterpoint(Context* context); //!< Constructor. Registers and initializes the object and checks whether the gametype is actually Tetris. 62 62 virtual ~TetrisCenterpoint() {} 63 63 -
code/trunk/src/modules/tetris/TetrisScore.cc
r9348 r9667 45 45 namespace orxonox 46 46 { 47 CreateFactory(TetrisScore);47 RegisterClass(TetrisScore); 48 48 49 49 /** … … 52 52 @ingroup Tetris 53 53 */ 54 TetrisScore::TetrisScore( BaseObject* creator) : OverlayText(creator)54 TetrisScore::TetrisScore(Context* context) : OverlayText(context) 55 55 { 56 56 RegisterObject(TetrisScore); -
code/trunk/src/modules/tetris/TetrisScore.h
r9348 r9667 57 57 { 58 58 public: 59 TetrisScore( BaseObject* creator);59 TetrisScore(Context* context); 60 60 virtual ~TetrisScore(); 61 61 -
code/trunk/src/modules/tetris/TetrisStone.cc
r9348 r9667 42 42 namespace orxonox 43 43 { 44 CreateFactory(TetrisStone);44 RegisterClass(TetrisStone); 45 45 46 46 /** … … 48 48 Constructor. Registers and initializes the object. 49 49 */ 50 TetrisStone::TetrisStone( BaseObject* creator) : MovableEntity(creator)50 TetrisStone::TetrisStone(Context* context) : MovableEntity(context) 51 51 { 52 52 RegisterObject(TetrisStone); -
code/trunk/src/modules/tetris/TetrisStone.h
r9348 r9667 54 54 { 55 55 public: 56 TetrisStone( BaseObject* creator); //!< Constructor. Registers and initializes the object.56 TetrisStone(Context* context); //!< Constructor. Registers and initializes the object. 57 57 virtual ~TetrisStone() {} 58 58
Note: See TracChangeset
for help on using the changeset viewer.