-
Notifications
You must be signed in to change notification settings - Fork 0
/
Node.hpp
31 lines (23 loc) · 772 Bytes
/
Node.hpp
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
#ifndef NODE_HPP
#define NODE_HPP
#include <string>
#include <list>
#include <tuple>
#include "Ent.hpp"
#include "Triple.hpp"
class Node : public Ent {
public:
std::list<Node *> adj;
std::list<std::tuple <Ent *, double> > mods;
Node(std::string name = "", Triple pos = Triple());
void add_adj(Node *node);
bool is_adj(Node *adj);
void print_adj();
void print_node();
void add_mod(Ent *e, double c);
virtual void draw() const;
virtual void steer(unsigned int ticks, unsigned int delta_ticks);
virtual void update();
};
std::tuple<Triple, Triple> points(Node *n1, Node *n2);
#endif