#ifndef WORLD #define WORLD #include #include "circle.h" class Ball; // for now, we can avoid the mutually-dependant // definition of class Ball class World { public: World(float w, float h, float g); World(float w, float h, float sx, float sy, float m); void SetDelay(float sec); float GetGravity() const; bool HasStar() const; float GetStarX() const; float GetStarY() const; float GetStarMass() const; float GetWidth() const; float GetHeight() const; ~World(); private: unsigned long delay; float width; float height; float grav; bool star; float starX; float starY; float starMass; SimpleWindow* win; bool InRange(const Ball& b) const; void AddBall(Ball& b); void CreateWindow(); friend class Controller; }; #endif