#pragma once #include "raylib.h" enum class ObstacleType { top = 0, bottom, both }; typedef struct Box { int x; int y; int bWidth; int bHeight; } Box ; class Obstacle { public: void Init(); void Update(); void Draw(); int GetPipePosition(); private: Box upPipe; Box downPipe; int upPipeHeight; int width; int middleHeight; int speed = 2; ObstacleType type = ObstacleType::top; };