Worms -- OOP Redo  2016-01
Worms-Redo Project as a learning vehicle.
Classes | Macros | Enumerations
worms.h File Reference
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <time.h>
Include dependency graph for worms.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
}
 

Macro Definition Documentation

#define CARROT   '.'

Definition at line 13 of file worms.h.

#define EOLN   "\n"

Definition at line 31 of file worms.h.

Referenced by userControl().

#define ESC   '\033'

Definition at line 12 of file worms.h.

#define getChar ( )    getch()

Definition at line 28 of file worms.h.

Referenced by getOneChar(), and userControl().

#define isDigit (   x)    ('0' <= x && x <= '9')

Definition at line 10 of file worms.h.

#define min (   a,
  b 
)    ((a) < (b)? (a) : (b))

Definition at line 11 of file worms.h.

#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 putString (   s)    addstr(s)

Definition at line 27 of file worms.h.

Referenced by showMsg().

#define random (   x)    (rand() % x)

Definition at line 9 of file worms.h.

#define screenClear ( )    clear()

Definition at line 30 of file worms.h.

#define screenFlush ( )    refresh()

Definition at line 29 of file worms.h.

Referenced by showMsg(), and showScreen().

Enumeration Type Documentation

enum DIRECTION
Enumerator
NORTH 
NORTHEAST 
EAST 
SE 
S 
SW 
W 
NW 

Definition at line 20 of file worms.h.

20  {
21  NORTH, NORTHEAST, EAST, SE, S, SW, W, NW
22 } DIRECTION; // as numbers: 0 .. 7
Definition: worms.h:21
Definition: worms.h:21
Definition: worms.h:21
Definition: worms.h:21
Definition: worms.h:21
DIRECTION
Definition: worms.h:20
Definition: worms.h:21
Definition: worms.h:21