#ifndef _BILLIARD_H #define _BILLIARD_H #include #include "texture.h" #include "vector.h" #include "circle.h" class KueBilliard : public circle { public: KueBilliard(double x, double y, double r, const KueTexture &texure = KueTexture::null()); ~KueBilliard(); void step(double seconds); bool isStopped(); void reflect(double normal); void collide(KueBilliard &other_billiard); vector& velocity(); void setVelocity(const vector &velocity); KueTexture& texture(); void setTexture(const KueTexture &); protected: KueTexture _texture; vector _velocity; }; #endif