//Bomb.hpp #pragma once #include "Position.hpp" #include class Bomb { private: Position _position; unsigned short _timer; bool _active; public: Bomb(): _position({0, 0}), _timer(3), _active(false) { }; Bomb(Position position) : _position(position), _timer(3), _active(false) { } void activate() { _active = true; } void deactivate() { _active = false; } bool isActive() const { return _active; } void setPosition(Position position) { _position = position; } Position getPosition() const { return _position; } unsigned short getTimer() const { return _timer; } };