diff --git a/src/object.hpp b/src/object.hpp new file mode 100644 index 0000000..01dd0d2 --- /dev/null +++ b/src/object.hpp @@ -0,0 +1,20 @@ +#ifndef __OBJECT_H_ +#define __OBJECT_H_ + +#include + +class Object { +protected: + double x, y; + const unsigned short radius; + + sf::CircleShape appearance; + +protected: + Object(double x, double y, unsigned short radius); + +public: + virtual bool collide(const Object& other); +}; + +#endif // __OBJECT_H_ diff --git a/src/umwelt.hpp b/src/umwelt.hpp new file mode 100644 index 0000000..ed371ae --- /dev/null +++ b/src/umwelt.hpp @@ -0,0 +1,11 @@ +#ifndef __UMWELT_H_ +#define __UMWELT_H_ + +#include +#include "object.hpp" + +struct Umwelt { + std::vector objects; +}; + +#endif // __UMWELT_H_