Deuxieme commit
This commit is contained in:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user