Refactored Vertex and GameVertex classes into their own files, put some functions in GameVertex that made sense there
This commit is contained in:
17
graph.h
17
graph.h
@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user