-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnode.h
More file actions
40 lines (28 loc) · 643 Bytes
/
Copy pathnode.h
File metadata and controls
40 lines (28 loc) · 643 Bytes
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
37
38
39
40
#include <iostream>
#include<SDL/SDL.h>
#ifndef NODE_H
#define NODE_H
using namespace std;
class node
{
private:
SDL_Rect sqr;
bool b[4];
node *next;
void Node_Stop();
bool Limits(int,int,int);
node *Get_Last();
void Herit_Pred(node*,int);
public:
node(int,int,int,int);
void Add_Node(int);
SDL_Rect *Get_Sqr();
node* Get_Next();
void Go_Up();
void Go_Down();
void Go_Left();
void Go_Right();
bool Move_On(int);
~node();
};
#endif