Use enums instead of magic values
This commit is contained in:
@@ -420,7 +420,7 @@ E void NDECL(save_currentstate);
|
||||
E void FDECL(u_collide_m, (struct monst *));
|
||||
E void FDECL(goto_level, (d_level *, BOOLEAN_P, BOOLEAN_P, BOOLEAN_P));
|
||||
E void NDECL(maybe_lvltport_feedback);
|
||||
E void FDECL(schedule_goto, (d_level *, BOOLEAN_P, BOOLEAN_P, int,
|
||||
E void FDECL(schedule_goto, (d_level *, int,
|
||||
const char *, const char *));
|
||||
E void NDECL(deferred_goto);
|
||||
E boolean FDECL(revive_corpse, (struct obj *));
|
||||
|
||||
@@ -334,6 +334,15 @@ enum utraptypes {
|
||||
TT_BURIEDBALL = 5
|
||||
};
|
||||
|
||||
enum utotypes {
|
||||
UTOTYPE_NONE = 0x00,
|
||||
UTOTYPE_ATSTAIRS = 0x01,
|
||||
UTOTYPE_FALLING = 0x02,
|
||||
UTOTYPE_PORTAL = 0x04,
|
||||
UTOTYPE_RMPORTAL = 0x10, /* remove portal */
|
||||
UTOTYPE_DEFERRED = 0x20, /* deferred_goto */
|
||||
};
|
||||
|
||||
/*** Information about the player ***/
|
||||
struct you {
|
||||
xchar ux, uy; /* current map coordinates */
|
||||
|
||||
Reference in New Issue
Block a user