-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathboardTile.cpp
More file actions
61 lines (54 loc) · 1.22 KB
/
boardTile.cpp
File metadata and controls
61 lines (54 loc) · 1.22 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#include <iostream>
#include <vector>
#include <string>
#include "boardTile.h"
using namespace std;
//Constructor for boardTile
boardTile::boardTile()
{
this->tilePosition = 0;
this->tileName = "Go";
}
//Constructor for boardTile with parameters
boardTile::boardTile(int tilePosition, string tileName)
{
this->tilePosition = tilePosition;
this->tileName = tileName;
}
//Destructor for boardTile
boardTile::~boardTile()
{
}
//Getters and setters
string boardTile::getTileName()
{
return tileName;
}
int boardTile::getTilePosition()
{
return tilePosition;
}
void boardTile::setTileName(string tileName)
{
this->tileName = tileName;
}
void boardTile::setTilePosition(int tilePosition)
{
this->tilePosition = tilePosition;
}
//Overloaded functions by derived classes
vector<string> boardTile::getActions(player& player)
{
vector<string> actionsVector;
cout << "overload me" << endl;
return actionsVector;
}
int boardTile::getPlayerSelection(vector<string> actionsVect)
{
cout << "overload me" << endl;
return 0;
}
void boardTile::replyToPlayerSelection(vector<string>& actions, int selection, player& player)
{
cout << "overload me" << endl;
}