Created GameVertex class so that we can store game-specific data in the vertices

This commit is contained in:
2011-07-01 22:04:58 -04:00
parent e221f1990c
commit a2f36a447b
4 changed files with 39 additions and 11 deletions

View File

@ -48,8 +48,7 @@ class Graph
bool point_in_vertex(int x, int y, int z);
Vertex * vertex_at(int x, int y, int z);
virtual bool add_vertex(int x, int y, int z, int r, int colour = 0,
int score = 0, Vertex* src=NULL);
virtual bool add_vertex(Vertex* v, Vertex* src=NULL);
void remove_vertex(Vertex* target);
bool is_planar() const { return planar; }