This commit is contained in:
doitux
2007-01-13 22:29:17 +00:00
parent ccd74ccb92
commit 507ffdd2a8
21 changed files with 176 additions and 85 deletions
+9 -7
View File
@@ -20,20 +20,22 @@
#ifndef LOCALBOARD_H
#define LOCALBOARD_H
#include "boardinterface.h"
#include <iostream>
class LocalPlayer;
class LocalHand;
class PlayerInterface;
class HandInterface;
class LocalBoard{
class LocalBoard : public BoardInterface{
public:
LocalBoard();
~LocalBoard();
void setPlayer(LocalPlayer**);
void setHand(LocalHand*);
void setPlayer(PlayerInterface**);
void setHand(HandInterface*);
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]; }
@@ -47,8 +49,8 @@ public:
private:
LocalPlayer **playerArray;
LocalHand *actualHand;
PlayerInterface **playerArray;
HandInterface *actualHand;
int myCards[5];
int pot;