#ifndef FLOPPY_BIRD_BIRD_H #define FLOPPY_BIRD_BIRD_H #include #include #include #include const float gravity = 9.8; class Bird : public sf::Drawable { sf::Sprite sprite; std::shared_ptr> texture_list; sf::Vector2f position; float momentum; public: Bird(float x, float y, const std::shared_ptr> texture_list); void impulse(float p); void tick(float step); bool collides(sf::FloatRect bounds); virtual void draw(sf::RenderTarget& target, sf::RenderStates states) const; }; #endif //FLOPPY_BIRD_BIRD_H