-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTurnBuildingHandler.h
More file actions
38 lines (32 loc) · 1.35 KB
/
Copy pathTurnBuildingHandler.h
File metadata and controls
38 lines (32 loc) · 1.35 KB
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"
#include<vector>
class TurnBuildingHandler {
public:
void handle();
bool handleTurretBuildingPlayer();
void buildTurretPlayer(int costToBuild, Space* toBuild);
void displayTurretBuildingChoices(std::vector<Space*>& prop);
bool handleHotelBuildingPlayer();
void handleHotelSetBuildingPlayer(std::vector<std::vector<Space*>>& sets, int ans);
void displayHotelSetChoicesPlayer(std::vector<Space*>& propSet);
void buildHotelPlayer(int costToBuild, Space* toBuild);
bool checkIfHotelExists(Space* toBuild);
void displayBuildableSetsPlayer(std::vector<std::vector<Space*>>& sets);
bool handleHouseBuildingPlayer();
void handleHouseSetBuildingPlayer(std::vector<std::vector<Space*>>& sets, int ans);
void buildHousePlayer(int costToBuild, Space* toBuild);
bool checkIfEvenBuilding(std::vector<Space*>& propSet, Space* toBuild);
void displayBuildableHousesInSet(std::vector<Space*>& propSet);
void displayedOwnedSetsPlayer();
void displayBuildingChoices();
TurnBuildingHandler(Game& game, Player& player, std::vector<Player>& curPlayers, std::vector<Space*>& spaces,
std::vector<std::string>& gameOutput, std::vector<std::string>& colorSets);
private:
Game& game;
Player& player;
std::vector<Player>& curPlayers;
std::vector<Space*>& spaces;
std::vector<std::string>& gameOutput;
std::vector<std::string>& colorSets;
};