ArmedEntity
Public member functions
// Construct a new Armed Entity object
ArmedEntity(Room &room, u_int id, short x, short y, short w, short h);
// Construct a new Armed Entity object
ArmedEntity(Room &room, u_int id, const std::pair<short, short> &pos, const std::pair<short, short> &size);
// Refresh the entity (move, shoot, etc.)
virtual void refresh() = 0;Protected member functions
// Refresh the missiles of the entity (move, delete, etc.)
virtual void refreshMissiles();
// Check if any missile of the entity collide with another entity
virtual bool missilesCollide(const IEntity &other);
// Fire a new missile
virtual void fireMissile(Missile::Type type);