-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobals.h
39 lines (29 loc) · 992 Bytes
/
globals.h
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
//
// globals.h
// Vampires
//
// Created by Andrew K. Sloan on 1/12/20.
// Copyright © 2020 Andrew K. Sloan. All rights reserved.
//
#ifndef globals_h
#define globals_h
//////////////////////////////////////
// Manifest constants
//////////////////////////////////////
const int MAXROWS = 20; // max number of rows in the arena
const int MAXCOLS = 20; // max number of columns in the arena
const int MAXVAMPIRES = 100; // max number of vampires allowed
const int INITIAL_VAMPIRE_HEALTH = 2; // initial vampire health
const int POISONED_IDLE_TIME = 1; // poisoned vampire idles this many turns
// between moves
const int NORTH = 0;
const int EAST = 1;
const int SOUTH = 2;
const int WEST = 3;
const int NUMDIRS = 4;
const int EMPTY = 0;
const int HAS_POISON = 1;
bool decodeDirection(char ch, int& dir);
int randInt(int lowest, int highest);
void clearScreen();
#endif /* globals_h */