Fixed a compile bug, general code cleanup

This commit is contained in:
2011-06-23 14:42:07 -04:00
parent 00d2efa31f
commit 9d36120f6d
2 changed files with 8 additions and 6 deletions

12
graph.h
View File

@ -35,16 +35,18 @@ class Graph
bool vertex_present(int x, int y, int size);
list<Vertex*> get_vertices() { return vertices; }
list<Edge> get_edges() { return edges; }
list<Vertex*> get_vertices() const { return vertices; }
list<Edge> get_edges() const { return edges; }
void select_vertex(int x, int y);
void do_vertex(int x, int y, int r);
Vertex* get_current_vertex() { return current_vertex; }
Vertex* get_current_vertex() const { return current_vertex; }
void clear_current_vertex() { current_vertex = NULL; }
private:
bool vertex_would_overlap(int x, int y, int r);
bool crosses_edge(Edge e);
bool vertex_would_overlap(int x, int y, int r) const;
bool crosses_edge(Edge e) const;
void add_vertex(int x, int y, int r);
Vertex* current_vertex;