#include "item.h"
#include "player.h"
#include "genmacro.h"
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 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 | ) |
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, | |||||
... | ) |
#define GET_ARMOR_SPEED_DEC_MACRO | ( | p, | |||
amr, | |||||
... | ) | GET_ARMOR_BONUS_MACRO (p, amr, __VA_ARGS__) |
#define WITH_SUBCLASS | ( | sbc, | |||
sk, | |||||
... | ) |
if (fooarm.subclass == sbc) \ {struct skill *s = find_skill (foopl, sk); __VA_ARGS__}
int getacfromamr | ( | struct item | amr | ) |
int getacspeed | ( | struct player * | pl | ) |
int getarmorbonus | ( | struct player * | pl | ) |