7WALL::WALL(
int x,
int y,
int width,
int height,
const std::string&
id,
bool kill)
16void WALL::render(std::shared_ptr<SDL_Renderer> renderer, SDL_Color color1,SDL_Color color2) {
17 collider->render(renderer,color1,color2);
The CollidingObject class represents a generic colliding object.
std::shared_ptr< Collider > collider
The collider associated with the object.
void render(std::shared_ptr< SDL_Renderer > renderer, SDL_Color color1, SDL_Color color2) override
Renders the object on the screen.
WALL(int x, int y, int width, int height, const std::string &id, bool kill)