Changeset 9629 for code/branches/core6/src/modules/tetris
- Timestamp:
- Aug 9, 2013, 9:26:46 PM (11 years ago)
- Location:
- code/branches/core6/src/modules/tetris
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core6/src/modules/tetris/Tetris.cc
r9348 r9629 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/branches/core6/src/modules/tetris/Tetris.h
r9348 r9629 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/branches/core6/src/modules/tetris/TetrisBrick.cc
r9348 r9629 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/branches/core6/src/modules/tetris/TetrisBrick.h
r9348 r9629 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/branches/core6/src/modules/tetris/TetrisCenterpoint.cc
r9348 r9629 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/branches/core6/src/modules/tetris/TetrisCenterpoint.h
r9348 r9629 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/branches/core6/src/modules/tetris/TetrisScore.cc
r9348 r9629 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/branches/core6/src/modules/tetris/TetrisScore.h
r9348 r9629 57 57 { 58 58 public: 59 TetrisScore( BaseObject* creator);59 TetrisScore(Context* context); 60 60 virtual ~TetrisScore(); 61 61 -
code/branches/core6/src/modules/tetris/TetrisStone.cc
r9348 r9629 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/branches/core6/src/modules/tetris/TetrisStone.h
r9348 r9629 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.