You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
336 B
27 lines
336 B
9 years ago
|
#pragma once
|
||
|
#include <SFML/Graphics.hpp>
|
||
|
#include "App.h"
|
||
|
|
||
|
class node {
|
||
|
public:
|
||
|
|
||
|
node(sf::Vector2i XY, int h, int cF, int cL, node* p, Pather* pather_);
|
||
|
node();
|
||
|
~node();
|
||
|
|
||
|
sf::Vector2i xy;
|
||
|
|
||
|
// Ugh, pointers, ugh c++
|
||
|
node* parent;
|
||
|
int hueristic;
|
||
|
int cameFrom;
|
||
|
int closedList;
|
||
|
Pather* pather;
|
||
|
|
||
|
void neighbors();
|
||
|
private:
|
||
|
|
||
|
};
|
||
|
|
||
|
|