Code for some of the basic game design - selecting existing nodes, limiting edge distance
This commit is contained in:
8
graph.h
8
graph.h
@ -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;
|
||||
};
|
||||
|
Reference in New Issue
Block a user