-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathboardTile.h
More file actions
37 lines (31 loc) · 970 Bytes
/
boardTile.h
File metadata and controls
37 lines (31 loc) · 970 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 <iostream>
#include <vector>
#include <string>
using namespace std;
class player;
//boardTile abstract class, Parent class of all board tiles
class boardTile
{
//Private data members
private:
int maxTiles = 40;
int tilePosition;
string tileName;
public:
//Constructors and destructors
boardTile();
boardTile(int tilePosition, string tileName);
~boardTile();
//Gets all possible actions for the player at current tile
virtual vector<string> getActions(player& player);
//Gets player selection from the vector of actions
virtual int getPlayerSelection(vector<string> actionsVect);
//Responds to player selection
virtual void replyToPlayerSelection(vector<string>& actions, int selection, player& player);
//Getters and setters
int getTilePosition();
string getTileName();
void setTilePosition(int tilePosition);
void setTileName(string tileName);
};