bool Entity::collide(Entity const& target) const { Hitbox *self; Hitbox *op; if ((self = getComponent<Hitbox>()) && (op = target.getComponent<Hitbox>())) { return (self->isInTouch(*op)); } return (false); }