Looks like you guys don't have a POS_FIGHTING or STAT_FIGHTING...I'm
guessing that you just check if there is a value in IS_FIGHTING(ch) and go
from there...
BTW, to analyze this further, could you tell us what BIT_3 and BIT_4 are
defined as?
Rick
-----Original Message-----
From: Fafhrd <fafhrd@greyhawk.org>
To: CIRCLE@post.queensu.ca <CIRCLE@post.queensu.ca>
Date: Saturday, February 06, 1999 6:06 PM
Subject: Re: positions
>Here's the Duris method....
>/* these two work together to give us many possible positions. */
>/* postures */
>#define POS_PRONE 0
>#define POS_KNEELING 1
>#define POS_SITTING 2
>#define POS_STANDING 3
>#define NUM_POSITIONS 4
>
>/* status */
>#define STAT_DEAD BIT_3
>#define STAT_DYING BIT_4
>#define STAT_INCAP BIT_5
>#define STAT_STUNNED STAT_INCAP
>#define STAT_SLEEPING BIT_6
>#define STAT_RESTING BIT_7
>#define STAT_NORMAL BIT_8
>#define STAT_MASK (BIT_9 - 4)
>
>#define GET_POS(ch) ((ch)->char_specials.position & 3)
>#define GET_STAT(ch) ((ch)->char_specials.position & STAT_MASK)
>#define MIN_POS(ch, v) \
> ((GET_POS(ch) >= (ubyte)((v) & 3)) && \
> (GET_STAT(ch) >= (ubyte)((v) & STAT_MASK)))
>#define SET_POS(ch, v) ((ch)->char_specials.position = (ubyte)(v)
>
>Enjoy....
>
>Erik Madison
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST