projects
/
open-adventure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Correct return types for all of the action handling functions in actions, so it's...
[open-adventure.git]
/
advent.h
diff --git
a/advent.h
b/advent.h
index 87ee153dcb81136593236056fffc551732d155de..dc81ed5fd55b6e9c625bfc281493ffc4c441f243 100644
(file)
--- a/
advent.h
+++ b/
advent.h
@@
-102,7
+102,7
@@
typedef enum scorebonus {none, splatter, defeat, victory} score_t;
* These were at one time FORTRAN line numbers.
* The values don't matter, but perturb their order at your peril.
*/
* These were at one time FORTRAN line numbers.
* The values don't matter, but perturb their order at your peril.
*/
-
enum phase_codes
{
+
typedef enum
{
GO_TERMINATE,
GO_MOVE,
GO_TOP,
GO_TERMINATE,
GO_MOVE,
GO_TOP,
@@
-111,7
+111,7
@@
enum phase_codes {
GO_WORD2,
GO_UNKNOWN,
GO_DWARFWAKE,
GO_WORD2,
GO_UNKNOWN,
GO_DWARFWAKE,
-};
+}
phase_codes_t
;
typedef long vocab_t; // index into a vocabulary array */
typedef long verb_t; // index into an actions array */
typedef long vocab_t; // index into a vocabulary array */
typedef long verb_t; // index into an actions array */
@@
-235,7
+235,7
@@
extern int suspend(void);
extern int resume(void);
extern int restore(FILE *);
extern long initialise(void);
extern int resume(void);
extern int restore(FILE *);
extern long initialise(void);
-extern
in
t action(command_t);
+extern
phase_codes_
t action(command_t);
extern void state_change(obj_t, int);
extern bool is_valid(struct game_t);
extern void state_change(obj_t, int);
extern bool is_valid(struct game_t);