Bomb
The Bomb class inherite from the AEntity abstract class
class Bomb : public AEntity
{
public:
Bomb(Room &room, u_int id, short x, short y, bool &front);
virtual ~Bomb() = default;
virtual void refresh();
private:
short _yCounter;
short _vx;
bool &_front;
};
Constructor
Parameters:
The room where the entity will be created
The id of the entity
The position x
The position y
If the weapon will be used in front or in back of the ship
Bomb(Room &room, u_int id, short x, short y, bool &front);
Refresh
The refresh function move the bomb
virtual void refresh();
Last updated