I need call a method with this signature in my Manager class:
void createPlayer(Player& player, PlayerType& playerType);
I have a P
add a static function say getForward:
class Player { public: Player(); void setType(PlayerType); static PlayerType getForward { return FORWARD; } private: PlayerType type; };
Then use it in main:
manager.createPlayer(player, Player::getForward());
This should work.