Convenience macros to determine what kind of things we are dealing with.


Defines

#define IS_WEAPON(op)   (op->type == ARROW || op->type == BOW || op->type == WEAPON)
#define IS_ARMOR(op)
#define IS_SHIELD(op)   (op->type == SHIELD)
#define IS_LIVE(op)
#define IS_ARROW(op)

Define Documentation

#define IS_ARMOR ( op   ) 

Value:

(op->type == ARMOUR || op->type == HELMET || \
         op->type == BOOTS || op->type == GLOVES)

Definition at line 415 of file define.h.

#define IS_ARROW ( op   ) 

Value:

(op->type == ARROW || \
        (op->type == SPELL_EFFECT && (op->subtype == SP_BULLET || op->subtype == SP_MAGIC_MISSILE)))

Definition at line 427 of file define.h.

#define IS_LIVE ( op   ) 

Value:

((op->type == PLAYER || QUERY_FLAG(op, FLAG_MONSTER) || \
        (QUERY_FLAG(op, FLAG_ALIVE) && !QUERY_FLAG(op, FLAG_GENERATOR) && \
        !op->type == DOOR)) && (!QUERY_FLAG(op, FLAG_IS_A_TEMPLATE)))

Definition at line 422 of file define.h.

#define IS_SHIELD ( op   )     (op->type == SHIELD)

Definition at line 419 of file define.h.

#define IS_WEAPON ( op   )     (op->type == ARROW || op->type == BOW || op->type == WEAPON)

Definition at line 412 of file define.h.


Generated on Thu Mar 25 23:27:51 2010 for Crossfire Server, Branch 1.12 by  doxygen 1.5.8