blob: c17b36b16edc99ea2f944ad24f6ff1a437f429ac (
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
37
38
39
40
41
42
43
|
#ifndef COORDINATE_H
#define COORDINATE_H
#include "incl.h"
#include "dummy.h"
using namespace std;
enum coordinate_type
{
Absolutecoord,
Relativecoord,
Beginningcoord,
windowSize,
TerminalSize,
TerminalCenter
};
struct coordinate
{
int y, x;
coordinate();
coordinate(coordinate_type type, dummy_window& r_win);
coordinate(coordinate_type type);
coordinate(int y, int x);
coordinate& set(coordinate_type type, dummy_window& r_win);
coordinate& set(coordinate_type type);
coordinate& left();
coordinate& right();
coordinate& up();
coordinate& down();
coordinate& left(int i);
coordinate& right(int i);
coordinate& up(int i);
coordinate& down(int i);
coordinate& displace(int i_y, int i_x);
};
#endif
|