You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
396 B
21 lines
396 B
#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 |