1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
| #include "stdafx.h"
#include <cmath>
#include <iostream>
#include "bet.h"
Bet::Bet() : name_("none"), bet_(0), money_(0), bigBlind_(0), nbTurn_(0), changeCard_(false), fold_(false)
{}
Bet::Bet(std::string name, unsigned int bet, unsigned int money, unsigned int bigBlind, unsigned int nbTurn, bool changeCard, bool fold) :
name_(name), bet_(bet), money_(money), bigBlind_(bigBlind), nbTurn_(nbTurn), changeCard_(changeCard), fold_(fold)
{}
void Bet::setName(std::string name)
{
name_ = name;
}
void Bet::setBet(unsigned int bet)
{
bet_ = bet;
}
void Bet::setMoney(unsigned int money)
{
money_ = money;
}
void Bet::setBigBlind(unsigned int bigBlind)
{
bigBlind_ = bigBlind;
}
void Bet::setNbTurn(unsigned int nbTurn)
{
nbTurn_ = nbTurn;
}
void Bet::setChangeCard(bool changeCard)
{
changeCard_ = changeCard;
}
void Bet::setFold(bool fold)
{
fold_ = fold;
}
std::string Bet::getName() const
{
return name_;
}
unsigned int Bet::getBet() const
{
return bet_;
}
unsigned int Bet::getMoney() const
{
return money_;
}
unsigned int Bet::getBigBlind() const
{
return bigBlind_;
}
unsigned int Bet::getNbTurn() const
{
return nbTurn_;
}
bool Bet::getChangeCard() const
{
return changeCard_;
}
bool Bet::getFold() const
{
return fold_;
} |