Bah, this board is so slow with replys I had to reply to my own problem..
I got a constructor working and I improved the "clenliness" of my Game class. It looks like this:
Code:
Game::Game(unsigned int player_w, unsigned int player_h, int player_lives,
unsigned int ball_w, unsigned int ball_h,
int brick_x, int brick_y, unsigned int brick_w, unsigned int brick_h, int brick_hp,
int rows, int columns):
player1(0,0,player_w, player_h, player_lives),
ball(0,0,ball_w, ball_h,0,0)
{
bricks.reserve(rows);
for(int y = 0; y < rows; y++)
{
bricks[y].reserve(columns);
for(int x = 0; x < columns; x++)
{
bricks[y][x].SetWidth(brick_w);
bricks[y][x].SetHeight(brick_h);
bricks[y][x].SetHP(brick_hp);
bricks[y][x].SetX( brick_x + (brick_w * x) );
bricks[y][x].SetY( brick_y + (brick_h * y) );
}
}
Reset();
}
I compiled it and everything is running great. ^^
Although it would still help if other people showed me an example of theirs.
Edit: notice the time of my posts, it took me 4 freaking hours to do that. T_T