You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
threedee/stuff/objects/entityList2D.h

19 lines
287 B

#pragma once
#include <vector>
#include "SDL.h"
#include "square.h"
/*
entityList2D is the 2D entity container class
*/
class entityList2D : public std::vector<square*>
{
public:
void run(SDL_Renderer* renderer)
{
for (square* entity : *this)
{
entity->run(renderer);
}
}
};