123456789101112131415161718192021222324252627282930313233 |
- #pragma once
- #include "Variablen.h"
- #include <Bild.h>
- 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 );
- };
|