Summary Files Commits Branches @commit @diff @stats
path: root / Year 1 / Object-oriented Programming / 07-Practice-05.04.2022 / GameCase.cpp
blob: f16e72bc64ef4b192b7a6faac27cfc2dcd89f414 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include "GameCase.h"

GameCase::GameCase() : GameCase('\0', nullptr)
{}

GameCase::GameCase(char command, bool func(double&)) {
	this->command = command;
	this->func = func;
}

char GameCase::get_comm() const {
	return this->command;
}

bool GameCase::exec(double& bet) const {
	return this->func(bet);
}