1234567891011121314151617181920212223242526272829 |
- #pragma once
- #include "Variablen.h"
- enum Richtung
- {
- OBEN,
- RECHTS,
- UNTEN,
- LINKS
- };
- class GameObject : public Variable
- {
- protected:
- float x, y, w, h;
- public:
- GameObject( VariableTyp typ, 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;
- };
|