mirror of
https://github.com/jie65535/Ancient-Spider.git
synced 2024-07-27 18:54:53 +08:00
32 lines
570 B
C++
32 lines
570 B
C++
#pragma once
|
|
#include <vector>
|
|
#include "Card.h"
|
|
|
|
class CardsSlots
|
|
{
|
|
private:
|
|
std::vector<Card> _Cards;
|
|
int HideLevel;
|
|
public:
|
|
CardsSlots();
|
|
~CardsSlots();
|
|
|
|
int GetHideLevel() const { return HideLevel; }
|
|
void SetHideLevel(int level) { HideLevel = level; }
|
|
|
|
size_t Count() const { return _Cards.size(); }
|
|
|
|
void Clear() { _Cards.clear(); }
|
|
|
|
void Push(Card card);
|
|
|
|
void MoveCardsTo(CardsSlots &targetSlots, int first);
|
|
|
|
void Pop(int num);
|
|
|
|
std::vector<Card> & GetCards() { return _Cards; }
|
|
private:
|
|
void UpdateHideLevel();
|
|
};
|
|
|