First implementation of game logic and control
This commit is contained in:
10
graph.h
10
graph.h
@ -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;
|
||||
|
Reference in New Issue
Block a user