23 if (
object.has<LifetimeComponent>() &&
object.get<LifetimeComponent>().dead(
object))
26 if (
object.has<PositionComponent>()) {
27 states.
transform.
translate(
object.get<PositionComponent>().x,
object.get<PositionComponent>().y);
30 if (
object.has<HitboxComponent>()) {
39 target.
draw(rect, states);
T y
Top coordinate of the rectangle.
void draw(const IDrawable &drawable, const RenderStates &states=RenderStates::Default)
void setColor(const Color &color)
static const Color White
White predefined color.
void setSize(float width, float height)
T x
Left coordinate of the rectangle.
void setWireframeMode(bool wireframeMode)
T width
Width of the rectangle.
void draw(const SceneObject &object, RenderTarget &target, RenderStates states)
T height
Height of the rectangle.