Skip to content

Commit 9e654b3

Browse files
committed
Added comments
1 parent a0702d0 commit 9e654b3

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/GameBoard.cpp

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,9 @@ std::vector<Settlement*> GameBoard::GetNeighboringSettlements(Coordinate locatio
9595
return v;
9696
}
9797

98-
/* initialize board with a set of resources. Currently only the standard configuration (no custom shapes or expansion packs) is implemented. Board tiles and roll numbers are randomized.
99-
@todo Change the dummy board to the actual board
98+
/*
99+
* Initialize board with a set of resources. Currently only the standard configuration (no custom shapes or expansion packs) is implemented.
100+
* Board tiles and roll numbers are randomized.
100101
*/
101102

102103
void GameBoard::init_resources()
@@ -134,6 +135,13 @@ void GameBoard::PlaceSettlement(Coordinate location, Player& Owner){
134135
corners[location] = std::unique_ptr<GamePiece>(new Settlement(*this, location, Owner));
135136
}
136137

138+
/*
139+
* Adds a resource and roll tile combo to the board
140+
* @param x The first coordinate
141+
* @param y The second coordinate
142+
* @param res The resource type to be added
143+
* @param val The roll tile to be added
144+
*/
137145
void GameBoard::addResource(int x, int y, resourceType res, int val)
138146
{
139147
this->resources[Coordinate(x,y)] = std::unique_ptr<GamePiece>(new ResourceTile(*this, Coordinate(x,y), res, val));

0 commit comments

Comments
 (0)