From b79bb26ba55a98f1adb378cd8fac9b75aca1ac62 Mon Sep 17 00:00:00 2001 From: pc9y8rffn <920448271@qq.com> Date: Wed, 19 Jun 2024 14:01:07 +0800 Subject: [PATCH] ADD file via upload --- Player.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Player.h diff --git a/Player.h b/Player.h new file mode 100644 index 0000000..7ae6e96 --- /dev/null +++ b/Player.h @@ -0,0 +1,21 @@ +#ifndef PLAYER_H +#define PLAYER_H + +#include +#include "Card.h" + +class Player { +private: + std::vector hand; + int chips; + // 其他成员变量... + +public: + void addCardToHand(const Card& card); + void removeCardFromHand(const Card& card); + void updateChips(int amount); + const std::vector& getHand() const; + int getChips() const; +}; + +#endif \ No newline at end of file