GameObject.h 360 B

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