aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.cpp
blob: e679134cd30e30aa9d9a638207dcb06153995fcd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
 *
 * description:		Displays the A* Algorithm on a grid.
 *
 * author:          Yann Herklotz <ymherklotz@gmail.com>
 * date created:    DD-MM-YYYY
 *
 */

#include "tilemap.hpp"
#include "astar.hpp"
#include "priority_queue.hpp"

#include <SFML/Graphics.hpp>

#include <iostream>
#include <cstdlib>
#include <vector>

using namespace std;

int main(int argc, char *argv[]) {
	PriorityQueue<Node> pq;

	Node n, n2, n3, n4, n5, n6;
	pq.push(n);
	pq.push(n2);
	pq.push(n3);
	pq.push(n4);
	pq.push(n5);
	pq.push(n6);

	cout << "Node in first queue: " << pq.pop() << endl;

	return 0;
}