- Add x and b casts for ACS printing.

- Add ClassifyActor constants to zdefs.acs.

SVN r1311 (trunk)
This commit is contained in:
Randy Heit 2008-12-07 03:59:06 +00:00
parent 65ed9f744a
commit 96f9dcd051
4 changed files with 25 additions and 1 deletions

View file

@ -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);

View file

@ -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 --------------------------------------------------------------------

View file

@ -410,6 +410,8 @@ typedef enum
PCD_UNMORPHACTOR,
PCD_GETPLAYERINPUT,
PCD_CLASSIFYACTOR,
PCD_PRINTBINARY,
PCD_PRINTHEX,
PCODE_COMMAND_COUNT
} pcd_t;

View file

@ -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