Deuxieme commit

This commit is contained in:
YANNIS
2025-05-29 16:53:26 +02:00
parent 33c6f3ccff
commit bd9bc5e2e2
5 changed files with 14 additions and 14 deletions
-2
View File
@@ -10,11 +10,9 @@ class Bomb {
bool _active;
public:
Bomb(): _position({0, 0}), _timer(3), _active(false) {
std::cout << "Bomb created at default position " << std::endl;
};
Bomb(Position position) : _position(position), _timer(3), _active(false) {
std::cout << "Bomb created at " << position << std::endl;
}
void activate() { _active = true; }