Created GameVertex class so that we can store game-specific data in the vertices
This commit is contained in:
3
graph.h
3
graph.h
@ -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; }
|
||||
|
Reference in New Issue
Block a user