#pragma once #include "Variablen.h" #include using namespace Framework; class GameObject : public Variable { protected: float x, y, w, h; Bild *textur; bool texturScale; bool intersectable; public: GameObject( VariableTyp typ, int x, int y, int width, int height ); virtual ~GameObject(); void setX( float x ); void setY( float y ); void setWidth( float width ); void setHeight( float height ); virtual bool intersectsWith( GameObject *zObj ); virtual void render( Bild &rObj ); float getX() const; float getY() const; float getWidth() const; float getHeight() const; bool isIntersectable() const; float abstandZu( GameObject *zObj ); };