Code for some of the basic game design - selecting existing nodes, limiting edge distance

This commit is contained in:
2011-06-22 22:32:33 -04:00
parent 53f1560393
commit 48c45c2191
4 changed files with 64 additions and 9 deletions

View File

@ -41,10 +41,14 @@ class Graph
list<Vertex*> get_vertices() { return vertices; }
list<Edge> get_edges() { return edges; }
void add_vertex(int x, int y, int size);
void do_vertex(int x, int y, int size);
Vertex* get_current_vertex() { return current_vertex; }
private:
Vertex* last_vertex;
void add_vertex(int x, int y, int size);
void select_vertex(int x, int y);
Vertex* current_vertex;
list<Vertex*> vertices;
list<Edge> edges;
};