-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTurnAIHandler.h
More file actions
38 lines (29 loc) · 1017 Bytes
/
Copy pathTurnAIHandler.h
File metadata and controls
38 lines (29 loc) · 1017 Bytes
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
#pragma once
#include "TurnHandler.h"
class TurnAIHandler {
public:
TurnAIHandler(Game& game, Player& player, std::vector<Player>& curPlayers, std::vector<Space*>& spaces,
std::vector<std::string>& gameOutput, std::vector<std::string>& colorSets);
bool handle();
void useCollectables();
void useCollectable(Card& card, std::vector<Card>& AIcards);
void buildTurrets();
void buildTurret(Space*& prop);
void buildHotels();
void buildHotel(Space*& prop);
void buildHouses();
void buildHousesOnSet(std::vector<Space*>& propSet);
void buildHouse(Space*& prop);
void liftMortgages();
void liftMortgage(int cost, Space*& prop);
void mortgageProperties();
void mortgageProperty(std::vector<Space*>& AIprop, int randIndex, int AImortValue);
int calculateMortgageValue(std::vector<Space*>& AIprop, int randIndex);
private:
Game& game;
Player& player;
std::vector<Player>& curPlayers;
std::vector<Space*>& spaces;
std::vector<std::string>& gameOutput;
std::vector<std::string>& colorSets;
};