-
Notifications
You must be signed in to change notification settings - Fork 0
/
SmartPlayer.h
41 lines (26 loc) · 1008 Bytes
/
SmartPlayer.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#pragma once
#include "Player.h"
#include "table.h"
#include "SmartNotes.h"
#include <vector>
#include <iostream>
class SmartPlayer : public Player
{
public:
SmartPlayer();
virtual void DoTurn() override;
virtual void Decide() override;
virtual void CardExchanged(std::shared_ptr<Player> Shower, std::shared_ptr<Player> Receiver, CardSet AskedCards) override;
virtual void CardNotExchanged(std::shared_ptr<Player> Shower, std::shared_ptr<Player> Receiver, CardSet AskedCards) override;
virtual CardSet OnAsked(CardSet Selection, std::shared_ptr<Player> Asker) override;
virtual void SetPlayers(std::vector<std::shared_ptr<Player>> players, int self) override;
bool CheckNotes();
void Reset() override;
SmartNotes smartnotes;
private:
// Used in decide to try to figure out information
void FigureOutCards();
// Call when discovered a card
void FoundCard(CardSet card, std::shared_ptr<Player> owner);
bool CheckCard(CardSet cardset);
};