Worms -- OOP Redo
2016-01
Worms-Redo Project as a learning vehicle.
|
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <time.h>
Go to the source code of this file.
Classes | |
struct | ASOG |
Macros | |
#define | CARROT '.' |
#define | EOLN "\n" |
#define | ESC '\033' |
#define | getChar() getch() |
#define | isDigit(x) ('0' <= x && x <= '9') |
#define | min(a, b) ((a) < (b)? (a) : (b)) |
#define | mvCursor(y, x) move(y, x) |
#define | putChar(c) addch(c) |
#define | putString(s) addstr(s) |
#define | random(x) (rand() % x) |
#define | screenClear() clear() |
#define | screenFlush() refresh() |
Enumerations | |
enum | DIRECTION { NORTH, NORTHEAST, EAST, SE, S, SW, W, NW } |
#define EOLN "\n" |
Definition at line 31 of file worms.h.
Referenced by userControl().
#define getChar | ( | ) | getch() |
Definition at line 28 of file worms.h.
Referenced by getOneChar(), and userControl().
#define mvCursor | ( | y, | |
x | |||
) | move(y, x) |
Definition at line 25 of file worms.h.
Referenced by showMsg(), and showScreen().
#define putChar | ( | c | ) | addch(c) |
Definition at line 26 of file worms.h.
Referenced by showScreen().
#define screenFlush | ( | ) | refresh() |
Definition at line 29 of file worms.h.
Referenced by showMsg(), and showScreen().
enum DIRECTION |
Enumerator | |
---|---|
NORTH | |
NORTHEAST | |
EAST | |
SE | |
S | |
SW | |
W | |
NW |
Definition at line 20 of file worms.h.