parent
5adb6fc70e
commit
b79bb26ba5
@ -0,0 +1,21 @@
|
||||
#ifndef PLAYER_H
|
||||
#define PLAYER_H
|
||||
|
||||
#include <vector>
|
||||
#include "Card.h"
|
||||
|
||||
class Player {
|
||||
private:
|
||||
std::vector<Card> hand;
|
||||
int chips;
|
||||
// 其他成员变量...
|
||||
|
||||
public:
|
||||
void addCardToHand(const Card& card);
|
||||
void removeCardFromHand(const Card& card);
|
||||
void updateChips(int amount);
|
||||
const std::vector<Card>& getHand() const;
|
||||
int getChips() const;
|
||||
};
|
||||
|
||||
#endif
|
Loading…
Reference in new issue