Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 0fc3c815f4
Fetching contributors…

Cannot retrieve contributors at this time

executable file 22 lines (19 sloc) 0.501 kb
#ifndef OBJECT_MANAGER_H_
#define OBJECT_MANAGER_H_
#include "graphics.h"
#include "object.h"
class object_manager {
private:
static std::vector<object*> objects;
public:
void add_object(object*);
void remove_object(object*);
bool remove_object_at(int,int);
void update();
void handle_collision(vec2,object*,object*);
void move_objects(vec2,object*,object*);
double energy();
static double impulse_scale;
void draw(graphics*);
};
#endif /*OBJECT_MANAGER_H_*/
Jump to Line
Something went wrong with that request. Please try again.