I've just started the SFML Game Development book. The first chapter deals with setting up a game loop and rendering basic shapes to a window. All good so far, but I don't quite understand a small section of the class constructor.
Simply, I don't understand why mPlayer() is included in the initialiser list?
When the default constructor is called, the functions for setting radius/position/colour are triggered regardless of mPlayer being included, at least as far as I can see. Removing it has no perceivable effect on the program (just moving a shape around a window with WASD).
I can see why mWindow is called, to initialise the RenderWindow with resulution and title, but I can't see what purpose mPlayer() serves. Could this be explained to me please?