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