#include "GameCase.h" GameCase::GameCase() : GameCase('\0', nullptr) {} GameCase::GameCase(char command, bool func(const Player&, double&)) { this->command = command; this->func = func; } bool GameCase::exec(const Player& player, double& bet) const { return this->func(player, bet); }