First implementation of game logic and control

This commit is contained in:
2011-06-22 17:57:44 -04:00
parent 2aadb9ad7e
commit fc08adcade
5 changed files with 64 additions and 9 deletions

10
graph.h
View File

@ -15,10 +15,10 @@ struct Vertex
{
int x;
int y;
int min_x;
int min_y;
int max_x;
int max_y;
int x_min;
int x_max;
int y_min;
int y_max;
};
struct Edge
@ -37,7 +37,7 @@ class Graph
list<Vertex> get_vertices() { return vertices; }
list<Edge> get_edges() { return edges; }
void add_vertex(Vertex v);
void add_vertex(int x, int y, int size);
private:
Vertex last_vertex;