2017-05-23 16:40:02 -04:00
|
|
|
#include <iostream>
|
2017-05-24 16:15:38 -04:00
|
|
|
#include <vector>
|
2017-05-23 16:40:02 -04:00
|
|
|
|
|
|
|
#include "GraphicsObject.h"
|
|
|
|
#include "Ball.h"
|
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
{
|
2017-05-24 16:15:38 -04:00
|
|
|
std::vector<GraphicsObject*> objects;
|
2017-05-23 16:40:02 -04:00
|
|
|
|
|
|
|
GraphicsObject graphics_obj(7);
|
2017-05-24 16:15:38 -04:00
|
|
|
objects.push_back(&graphics_obj);
|
2017-05-23 16:40:02 -04:00
|
|
|
Ball ball1;
|
2017-05-24 16:15:38 -04:00
|
|
|
objects.push_back(&ball1);
|
2017-05-23 16:40:02 -04:00
|
|
|
Ball ball2;
|
2017-05-24 16:15:38 -04:00
|
|
|
objects.push_back(&ball2);
|
2017-05-23 16:40:02 -04:00
|
|
|
|
2017-05-24 16:15:38 -04:00
|
|
|
for(auto obj : objects)
|
2017-05-23 16:40:02 -04:00
|
|
|
for(auto i = 0; i < 5; ++i)
|
|
|
|
std::cout << obj->X() << std::endl;
|
|
|
|
}
|