armor.h File Reference

#include "item.h"
#include "player.h"
#include "genmacro.h"
Include dependency graph for armor.h:
This graph shows which files directly or indirectly include this file:

Defines

#define A_PLAYER   foopl
#define A_ARMOR   fooarm
#define A_SKILL   s
#define GET_AC_FROM_ARMOR_MACRO(amr,...)   int ac = 0; SWITCH_MACRO (amr.id, __VA_ARGS__) return ac;
#define BIND_ARMOR_AC(type, tac)
#define GET_ARMOR_BONUS_MACRO(p, amr,...)
#define WITH_SUBCLASS(sbc, sk,...)
#define ADD_LEVEL_TO_VALUE   value += s->level;
#define DEC_LEVEL_FROM_VALUE   value -= s->level;
#define BIND_STATUS_VALUE(st, cac)   if (s->status == st) value += cac;
#define GET_ARMOR_SPEED_DEC_MACRO(p, amr,...)   GET_ARMOR_BONUS_MACRO (p, amr, __VA_ARGS__)

Functions

int getacfromamr (struct item amr)
int getarmorbonus (struct player *pl)
int getacspeed (struct player *pl)

Define Documentation

#define A_ARMOR   fooarm
#define A_PLAYER   foopl
#define A_SKILL   s
#define ADD_LEVEL_TO_VALUE   value += s->level;
#define BIND_ARMOR_AC ( type,
tac   ) 
Value:
case type: \
    ac += tac; break;
#define BIND_STATUS_VALUE ( st,
cac   )     if (s->status == st) value += cac;
#define DEC_LEVEL_FROM_VALUE   value -= s->level;
#define GET_AC_FROM_ARMOR_MACRO ( amr,
...   )     int ac = 0; SWITCH_MACRO (amr.id, __VA_ARGS__) return ac;
#define GET_ARMOR_BONUS_MACRO ( p,
amr,
...   ) 
Value:
int value = 0;  \
    struct player *foopl = p;  struct item fooarm = amr; __VA_ARGS__ return value;
#define GET_ARMOR_SPEED_DEC_MACRO ( p,
amr,
...   )     GET_ARMOR_BONUS_MACRO (p, amr, __VA_ARGS__)
#define WITH_SUBCLASS ( sbc,
sk,
...   ) 
Value:
if (fooarm.subclass == sbc) \
    {struct skill *s = find_skill (foopl, sk); __VA_ARGS__}

Function Documentation

int getacfromamr ( struct item  amr  ) 
int getacspeed ( struct player pl  ) 
int getarmorbonus ( struct player pl  ) 
Generated on Mon Nov 15 10:26:41 2010 for Tales of Paraverse by  doxygen 1.6.3