Reformatting code using Kernighan & Ritchie style, tabs, tab width=4.
Command line: astyle --style=kr --indent=force-tab=4 --lineend=linux -n -r <file names>
This commit is contained in:
@@ -30,35 +30,62 @@ class PlayerInterface;
|
||||
class HandInterface;
|
||||
|
||||
|
||||
class LocalBoard : public BoardInterface{
|
||||
class LocalBoard : public BoardInterface
|
||||
{
|
||||
public:
|
||||
LocalBoard(unsigned dealerPosition);
|
||||
LocalBoard(unsigned dealerPosition);
|
||||
~LocalBoard();
|
||||
|
||||
void setPlayerLists(PlayerList, PlayerList, PlayerList);
|
||||
|
||||
void setMyCards(int* theValue) { int i; for(i=0; i<5; i++) myCards[i] = theValue[i]; }
|
||||
void getMyCards(int* theValue) { int i; for(i=0; i<5; i++) theValue[i] = myCards[i]; }
|
||||
void setMyCards(int* theValue) {
|
||||
int i;
|
||||
for(i=0; i<5; i++) myCards[i] = theValue[i];
|
||||
}
|
||||
void getMyCards(int* theValue) {
|
||||
int i;
|
||||
for(i=0; i<5; i++) theValue[i] = myCards[i];
|
||||
}
|
||||
|
||||
void setAllInCondition(bool theValue) { allInCondition = theValue; }
|
||||
void setLastActionPlayer(unsigned theValue) { lastActionPlayer = theValue; }
|
||||
void setAllInCondition(bool theValue) {
|
||||
allInCondition = theValue;
|
||||
}
|
||||
void setLastActionPlayer(unsigned theValue) {
|
||||
lastActionPlayer = theValue;
|
||||
}
|
||||
|
||||
int getPot() const { return pot;}
|
||||
void setPot(int theValue) { pot = theValue;}
|
||||
int getSets() const { return sets; }
|
||||
void setSets(int theValue) { sets = theValue; }
|
||||
int getPot() const {
|
||||
return pot;
|
||||
}
|
||||
void setPot(int theValue) {
|
||||
pot = theValue;
|
||||
}
|
||||
int getSets() const {
|
||||
return sets;
|
||||
}
|
||||
void setSets(int theValue) {
|
||||
sets = theValue;
|
||||
}
|
||||
|
||||
void collectSets() ;
|
||||
void collectPot() ;
|
||||
|
||||
void distributePot();
|
||||
void determinePlayerNeedToShowCards();
|
||||
void determinePlayerNeedToShowCards();
|
||||
|
||||
std::list<unsigned> getWinners() const { return winners; }
|
||||
void setWinners(const std::list<unsigned> &w) { winners = w; }
|
||||
std::list<unsigned> getWinners() const {
|
||||
return winners;
|
||||
}
|
||||
void setWinners(const std::list<unsigned> &w) {
|
||||
winners = w;
|
||||
}
|
||||
|
||||
std::list<unsigned> getPlayerNeedToShowCards() const { return playerNeedToShowCards; }
|
||||
void setPlayerNeedToShowCards(const std::list<unsigned> &p) { playerNeedToShowCards = p; }
|
||||
std::list<unsigned> getPlayerNeedToShowCards() const {
|
||||
return playerNeedToShowCards;
|
||||
}
|
||||
void setPlayerNeedToShowCards(const std::list<unsigned> &p) {
|
||||
playerNeedToShowCards = p;
|
||||
}
|
||||
|
||||
|
||||
private:
|
||||
@@ -67,14 +94,14 @@ private:
|
||||
PlayerList runningPlayerList;
|
||||
|
||||
std::list<unsigned> winners;
|
||||
std::list<unsigned> playerNeedToShowCards;
|
||||
std::list<unsigned> playerNeedToShowCards;
|
||||
|
||||
int myCards[5];
|
||||
int pot;
|
||||
int sets;
|
||||
unsigned dealerPosition;
|
||||
bool allInCondition;
|
||||
unsigned lastActionPlayer;
|
||||
unsigned dealerPosition;
|
||||
bool allInCondition;
|
||||
unsigned lastActionPlayer;
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user