I am wondering if it is a good practice to use the same name for both a member variable and a function parameter in C++.
I come from a Java backgro
I would suggest you to follow some coding style convention. Personally I use the:
class Player { public: void setState(PlayerState *state) { _state = state; } private: PlayerState* _state; }