mirror of
https://github.com/ZDoom/acc.git
synced 2025-03-03 07:21:03 +00:00
- Add x and b casts for ACS printing.
- Add ClassifyActor constants to zdefs.acs. SVN r1311 (trunk)
This commit is contained in:
parent
65ed9f744a
commit
96f9dcd051
4 changed files with 25 additions and 1 deletions
6
parse.c
6
parse.c
|
@ -2054,6 +2054,12 @@ static void BuildPrintString(void)
|
|||
case 'k': // [GRB] key binding
|
||||
printCmd = PCD_PRINTBIND;
|
||||
break;
|
||||
case 'b': // [RH] binary integer
|
||||
printCmd = PCD_PRINTBINARY;
|
||||
break;
|
||||
case 'x': // [RH] hexadecimal integer
|
||||
printCmd = PCD_PRINTHEX;
|
||||
break;
|
||||
default:
|
||||
printCmd = PCD_PRINTSTRING;
|
||||
ERR_Error(ERR_UNKNOWN_PRTYPE, YES);
|
||||
|
|
4
pcode.c
4
pcode.c
|
@ -458,7 +458,9 @@ static char *PCDNames[PCODE_COMMAND_COUNT] =
|
|||
"PCD_MORPHACTOR",
|
||||
"PCD_UNMORPHACTOR",
|
||||
"PCD_GETPLAYERINPUT",
|
||||
"PCD_CLASSIFYACTOR"
|
||||
"PCD_CLASSIFYACTOR",
|
||||
"PCD_PRINTBINARY",
|
||||
"PCD_PRINTHEX",
|
||||
};
|
||||
|
||||
// CODE --------------------------------------------------------------------
|
||||
|
|
2
pcode.h
2
pcode.h
|
@ -410,6 +410,8 @@ typedef enum
|
|||
PCD_UNMORPHACTOR,
|
||||
PCD_GETPLAYERINPUT,
|
||||
PCD_CLASSIFYACTOR,
|
||||
PCD_PRINTBINARY,
|
||||
PCD_PRINTHEX,
|
||||
|
||||
PCODE_COMMAND_COUNT
|
||||
} pcd_t;
|
||||
|
|
14
zdefs.acs
14
zdefs.acs
|
@ -608,6 +608,20 @@
|
|||
#define T_SPARK_DRIP 108
|
||||
|
||||
|
||||
// Flags returned by ClassifyActor
|
||||
|
||||
#define ACTOR_NONE 0
|
||||
#define ACTOR_WORLD 1
|
||||
#define ACTOR_PLAYER 2
|
||||
#define ACTOR_BOT 4
|
||||
#define ACTOR_VOODOODOLL 8
|
||||
#define ACTOR_MONSTER 16
|
||||
#define ACTOR_ALIVE 32
|
||||
#define ACTOR_DEAD 64
|
||||
#define ACTOR_MISSILE 128
|
||||
#define ACTOR_GENERIC 256
|
||||
|
||||
|
||||
// Events when you have input grabbed
|
||||
|
||||
#define EV_KeyDown 1 // data1: unshifted ASCII, data2: shifted ASCII
|
||||
|
|
Loading…
Reference in a new issue