-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgame.h
105 lines (84 loc) · 1.49 KB
/
game.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
#include "xinaga.h"
#ifndef _GAME_H
#define _GAME_H
typedef enum { Title, Credits, EditParty, Map, Combat, Menu, SaveLoad, MapGen, Scenario } screenName;
extern int randseed;
extern byte strTemp[78];
void Demo(void);
//Title
screenName Update_Title();
//Add Character
screenName DrawAddCharacterScreen();
//Map
screenName MapUpdate();
//Combat
screenName Update_Combat();
//Credits
screenName Update_Credits();
//MapGen
screenName Update_MapGen();
//Scenario
screenName Update_Scenario();
//BFRPG
byte RollDice(byte count, byte diceSize);
typedef struct
{
int
CARRYING_WEIGHT,
CARRYING_CAPACITY,
GOLD;
}PartyDef;
extern PartyDef Party;
typedef struct
{
char
NAME[16];
byte
HITDICEMAX;
}RaceDescriptionDef;
extern RaceDescriptionDef RaceDescription[4];
typedef struct
{
char
NAME[16];
byte
HITDICE;
}ClassDescriptionDef;
extern ClassDescriptionDef ClassDescription[4];
extern int AbilityModifier[];
//Lists
//Roster
void create(void);
void delete_pos(byte pos);
byte CountRoster(void);
typedef struct playerChar
{
bool inParty;
byte
HP,
HPMAX,
STR,
DEX,
CON,
INT,
WIS,
CHR,
RACE,
CLASS,
HITDICE,
LEVEL;
int
EXP,
CARRYING_WEIGHT,
CARRYING_CAPACITY;
char
NAME[16];
struct playerChar *next;
};
struct playerChar *getPlayerChar(byte index);
//Party
void AddParty(byte index);
void RemoveParty(void);
byte CountParty(void);
struct playerChar *getPartyMember(byte index);
#endif