I am currently programming a game engine, but I've come across some problems.
I have a main class (Game), that should take care of most of my stuff.
I also have another class (Player), that holds the values of the player and such.
But I have no idea how to use the Player class inside my Game class, so I can do like this:
Code: Select all
void Game::draw()
{
player.draw(player.x, player.y);
}
I want the Game class to be able to handle most of the Player class' functions.