#pragma once #include "Variablen.h" class GameObject : public Variable { protected: float x, y, w, h; public: GameObject( VariableTyp typ, int x, int y, int width, int height ); void setX( float x ); void setY( float y ); void setWidth( float width ); void setHeight( float height ); bool intersectsWith( GameObject *zObj ); float getX() const; float getY() const; float getWidth() const; float getHeight() const; float abstandZu( GameObject *zObj ); };