Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 22, 2012, 5:06:56 PM (12 years ago)
Author:
landauf
Message:

small refactoring of tetris gametype, fixed memory leak

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2012merge/src/modules/tetris/Tetris.h

    r9286 r9326  
    5656        public:
    5757            Tetris(BaseObject* creator); //!< Constructor. Registers and initializes the object.
    58             virtual ~Tetris(); //!< Destructor. Cleans up, if initialized.           
     58            virtual ~Tetris(); //!< Destructor. Cleans up, if initialized.
    5959
    6060            virtual void start(void); //!< Starts the Tetris minigame.
     
    8888            void clearRow(unsigned int row);
    8989
    90            
     90
    9191            PlayerInfo* player_;
    9292
    9393            WeakPtr<TetrisCenterpoint> center_; //!< The playing field.
    94             std::vector<TetrisBrick*> bricks_; //!< A list of all bricks in play.
    95             std::vector<TetrisStone*> stones_; //!< A list of all stones in play.
    96             std::vector< std::vector<bool> > grid_;
     94            std::list<TetrisStone*> stones_; //!< A list of all stones in play.
    9795            TetrisBrick* activeBrick_;
    9896            TetrisBrick* futureBrick_;
    99            
     97
    10098            Timer starttimer_; //!< A timer to delay the start of the game.
    10199            float endGameCriteria_; //<! Works as a timer which is resetted, whenever a brick is created.
Note: See TracChangeset for help on using the changeset viewer.