Refactored Vertex and GameVertex classes into their own files, put some functions in GameVertex that made sense there

This commit is contained in:
2011-07-03 16:37:07 -04:00
parent 8ad4ec0672
commit f90c60b6ac
10 changed files with 192 additions and 169 deletions

17
graph.h
View File

@ -17,26 +17,11 @@
#ifndef _GRAPH_H_
#define _GRAPH_H_
#include "vertex.h"
#include <list>
using std::list;
class Vertex
{
public:
Vertex(int x, int y, int z, int r, int colour = 0, int score = 0);
virtual ~Vertex();
int x;
int y;
int z;
int r;
int colour;
int score;
list<Vertex*> neighbors;
};
class Graph
{