// Play a piece to the game map public void PlayPiece(GamePiece playedPiece) { pieces.Add(playedPiece); DecrementPlayedCardResources(playedPiece.GetCard()); gameData.AddPlayedCard(playedPiece.GetCard()); // Update hand //hand.PlayCard(selectedCard); SetSelectedCard(null); // Clear playble map actionMap.ClearActionTiles(); fogMap.CreateFogMap(pieces); }
// Draw fog of war map public void DrawFogMap(List <GamePiece> pieces) { ClearPaintedTiles(); fogMap.CreateFogMap(pieces); PaintFogMap(); }