GameObject.h 401 B

123456789101112131415161718192021
  1. #pragma once
  2. #include "Variablen.h"
  3. class GameObject : public Variable
  4. {
  5. protected:
  6. int x, y, w, h;
  7. public:
  8. GameObject();
  9. GameObject( int x, int y, int width, int height );
  10. void setX( int x );
  11. void setY( int y );
  12. void setWidth( int width );
  13. void setHeight( int height );
  14. int getX() const;
  15. int getY() const;
  16. int getWidth() const;
  17. int getHeight() const;
  18. };