Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 14
diff options
context:
space:
mode:
Commitf1e6772e0b264388cf96500b75c6ae47272f2238 (patch)
Author
 angeld55 <angel_dimitriev@abv.bg>
2022-06-07 21:18:29 +0300
Committer
 angeld55 <angel_dimitriev@abv.bg>
2022-06-07 21:18:29 +0300
Filesba30e9f48d807ad1478ab985bc4e8781f2bf3341 /Sem. 14
Object-oriented_programming_FMI-f1e6772e0b264388cf96500b75c6ae47272f2238.tar
Object-oriented_programming_FMI-f1e6772e0b264388cf96500b75c6ae47272f2238.tar.gz
Object-oriented_programming_FMI-f1e6772e0b264388cf96500b75c6ae47272f2238.zip
Parent30601882aa51c1c6aa646c3bb6001f2c848adde7 (diff)
sem 15
diff --git a/Sem. 14/Chess_basic_prototype/ChessBoard/ChessBoard.cpp b/Sem. 14/Chess_basic_prototype/ChessBoard/ChessBoard.cpp
index ed9823d..70276df 100644
--- a/Sem. 14/Chess_basic_prototype/ChessBoard/ChessBoard.cpp
+++ b/Sem. 14/Chess_basic_prototype/ChessBoard/ChessBoard.cpp
@@ -60,7 +60,7 @@ void ChessBoard::moveFigure(size_t x, size_t y, size_t destX, size_t destY)
{
if (board[x][y].f && board[x][y].f->canBeMoved(x, y, destX, destY))
{
- delete board[destX][destY].f;
+ delete board[destX][destY].f; //взимане на фигура
board[destX][destY].f = board[x][y].f;
board[x][y].f = nullptr;
}
diff --git a/Sem. 14/Chess_basic_prototype/Figures/FigureBase/Figure.cpp b/Sem. 14/Chess_basic_prototype/Figures/FigureBase/Figure.cpp
index 4d94406..e69de29 100644
--- a/Sem. 14/Chess_basic_prototype/Figures/FigureBase/Figure.cpp
+++ b/Sem. 14/Chess_basic_prototype/Figures/FigureBase/Figure.cpp
@@ -1 +0,0 @@
-todo \ No newline at end of file
diff --git a/Sem. 14/Chess_basic_prototype/Figures/FigureBase/Figure.h b/Sem. 14/Chess_basic_prototype/Figures/FigureBase/Figure.h
index 9e2300a..53bbf85 100644
--- a/Sem. 14/Chess_basic_prototype/Figures/FigureBase/Figure.h
+++ b/Sem. 14/Chess_basic_prototype/Figures/FigureBase/Figure.h
@@ -17,5 +17,5 @@ public:
bool getIsWhite() const { return isWhite; };
FigureType getType() const { return type; }
- virtual ~Figure(){};
+ virtual ~Figure() = default;
}; \ No newline at end of file