src/hcode/btech/btechstats_global.h File Reference

#include "p.btech.h"
#include "p.btechstats.h"

Include dependency graph for btechstats_global.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define VALUES_HEALTH   1
#define VALUES_SKILLS   2
#define VALUES_ATTRS   4
#define VALUES_ADVS   8
#define VALUES_ALL   15
#define VALUES_CO   6
#define CHAR_LASTSKILLTYPE   CHAR_SOCIAL
#define CHAR_VALUE   0
#define CHAR_SKILL   1
#define CHAR_ADVANTAGE   2
#define CHAR_ATTRIBUTE   3
#define CHAR_ATHLETIC   0x0001
#define CHAR_MENTAL   0x0002
#define CHAR_PHYSICAL   0x0004
#define CHAR_SOCIAL   0x0008
#define CAREER_CAVALRY   0x0010
#define CAREER_BMECH   0x0020
#define CAREER_AERO   0x0040
#define CAREER_ARTILLERY   0x0080
#define CAREER_DROPSHIP   0x0100
#define CAREER_TECHMECH   0x0200
#define CAREER_TECHVEH   0x0400
#define CAREER_TECH   (CAREER_TECHMECH|CAREER_TECHVEH)
#define CAREER_MISC   0x0800
#define CAREER_ACADMISC   0x1000
#define CAREER_RECON   0x2000
#define SK_XP   0x4000
#define XP_MAX   (256*256*256)
#define CHAR_ADV_VALUE   0
#define CHAR_ADV_BOOL   1
#define CHAR_ADV_EXCEPT   2
#define CHAR_BLD   1
#define CHAR_REF   2
#define CHAR_INT   4
#define CHAR_LRN   8
#define CHAR_CHA   16
#define GREEN   0
#define REGULAR   1
#define VETEREN   2
#define ELITE   3
#define HISTORICAL   4
#define char_gvalue   char_getstatvalue
#define char_svalue   char_setstatvalue
#define char_getlives(a)   char_getvalue(a, "lives")
#define char_getxp(a)   char_getvalue(a, "maxxp")
#define char_getxpavail(a)   char_getvalue(a, "xp")
#define char_getxp(a)   char_getvalue(a, "maxxp")
#define char_getxpavail(a)   char_getvalue(a, "xp")
#define char_getbruise(a)   char_getvalue((a), "bruise")
#define char_getmaxbruise(a)   char_getvalue((a), "maxbruise")
#define char_getlethal(a)   char_getvalue((a), "lethal")
#define char_getmaxlethal(a)   char_getvalue((a), "maxlethal")
#define char_glives(a)   char_gvalue(a, "lives")
#define char_gxp(a)   char_gvalue(a, "maxxp")
#define char_gxpavail(a)   char_gvalue(a, "xp")
#define char_gbruise(a)   char_gvalue((a), "bruise")
#define char_gmaxbruise(a)   (char_gvalue((a), "build")*10)
#define char_glethal(a)   char_gvalue((a), "lethal")
#define char_gmaxlethal(a)   (char_gvalue((a), "build")*10)
#define char_setlives(a, b)   char_setvalue((a), "lives", (b))
#define char_setbruise(a, b)   char_setvalue((a), "Bruise", (b))
#define char_setmaxbruise(a, b)   char_setvalue((a), "maxbruise", (b))
#define char_setlethal(a, b)   char_setvalue((a), "Lethal", (b))
#define char_setmaxlethal(a, b)   char_setvalue((a), "maxlethal", (b))
#define char_slives(a, b)   char_svalue((a), "lives", (b))
#define char_sbruise(a, b)   char_svalue((a), "bruise", (b))
#define char_smaxbruise(a, b)   char_svalue((a), "maxbruise", (b))
#define char_slethal(a, b)   char_svalue((a), "lethal", (b))
#define char_smaxlethal(a, b)   char_svalue((a), "maxlethal", (b))
#define EE_NUMBER   11
#define LIVES_NUMBER   5
#define char_getstatvaluebycode(s, code)   (code >= 0 ? (s->values[code] + (char_values[code].type == CHAR_SKILL ? char_xp_bonus(s,code) : 0) ): -1)
#define char_getstatvaluebycode(s, code)   (code >= 0 ? (s->values[code] + (char_values[code].type == CHAR_SKILL ? char_xp_bonus(s,code) : 0) ): -1)
#define char_setstatvaluebycode(s, code, value)
#define char_getvaluebycode(player, code)   char_getstatvaluebycode(retrieve_stats(player, VALUES_ALL), code)
#define char_setvaluebycode(player, code, value)


Define Documentation

#define CAREER_ACADMISC   0x1000

Definition at line 54 of file btechstats_global.h.

#define CAREER_AERO   0x0040

Definition at line 47 of file btechstats_global.h.

#define CAREER_ARTILLERY   0x0080

Definition at line 48 of file btechstats_global.h.

#define CAREER_BMECH   0x0020

Definition at line 46 of file btechstats_global.h.

#define CAREER_CAVALRY   0x0010

Definition at line 45 of file btechstats_global.h.

#define CAREER_DROPSHIP   0x0100

Definition at line 49 of file btechstats_global.h.

#define CAREER_MISC   0x0800

Definition at line 53 of file btechstats_global.h.

#define CAREER_RECON   0x2000

Definition at line 55 of file btechstats_global.h.

#define CAREER_TECH   (CAREER_TECHMECH|CAREER_TECHVEH)

Definition at line 52 of file btechstats_global.h.

#define CAREER_TECHMECH   0x0200

Definition at line 50 of file btechstats_global.h.

#define CAREER_TECHVEH   0x0400

Definition at line 51 of file btechstats_global.h.

#define CHAR_ADV_BOOL   1

Definition at line 64 of file btechstats_global.h.

Referenced by show_charstatus().

#define CHAR_ADV_EXCEPT   2

Definition at line 65 of file btechstats_global.h.

Referenced by show_charstatus().

#define CHAR_ADV_VALUE   0

Definition at line 63 of file btechstats_global.h.

Referenced by show_charstatus().

#define CHAR_ADVANTAGE   2

Definition at line 34 of file btechstats_global.h.

Referenced by do_show(), fun_btcharlist(), generic_store_stuff(), and show_charstatus().

#define CHAR_ATHLETIC   0x0001

Definition at line 39 of file btechstats_global.h.

Referenced by char_getskilltargetbycode_base().

#define CHAR_ATTRIBUTE   3

Definition at line 35 of file btechstats_global.h.

Referenced by clear_player(), do_show(), and fun_btcharlist().

#define CHAR_BLD   1

Definition at line 67 of file btechstats_global.h.

Referenced by show_charstatus().

#define CHAR_CHA   16

Definition at line 71 of file btechstats_global.h.

Referenced by show_charstatus().

#define char_gbruise (  )     char_gvalue((a), "bruise")

Definition at line 99 of file btechstats_global.h.

Referenced by fix_pilotdamage(), headhitmwdamage(), initialize_pc(), mw_ic_bth(), mwlethaldam(), and show_charstatus().

#define char_getbruise (  )     char_getvalue((a), "bruise")

Definition at line 91 of file btechstats_global.h.

#define char_getlethal (  )     char_getvalue((a), "lethal")

Definition at line 93 of file btechstats_global.h.

#define char_getlives (  )     char_getvalue(a, "lives")

Definition at line 86 of file btechstats_global.h.

#define char_getmaxbruise (  )     char_getvalue((a), "maxbruise")

Definition at line 92 of file btechstats_global.h.

#define char_getmaxlethal (  )     char_getvalue((a), "maxlethal")

Definition at line 94 of file btechstats_global.h.

#define char_getstatvaluebycode ( s,
code   )     (code >= 0 ? (s->values[code] + (char_values[code].type == CHAR_SKILL ? char_xp_bonus(s,code) : 0) ): -1)

Definition at line 120 of file btechstats_global.h.

#define char_getstatvaluebycode ( s,
code   )     (code >= 0 ? (s->values[code] + (char_values[code].type == CHAR_SKILL ? char_xp_bonus(s,code) : 0) ): -1)

Definition at line 120 of file btechstats_global.h.

Referenced by char_getskilltargetbycode_base(), and char_getstatvalue().

#define char_getvaluebycode ( player,
code   )     char_getstatvaluebycode(retrieve_stats(player, VALUES_ALL), code)

Definition at line 125 of file btechstats_global.h.

Referenced by char_getskillmargsucc(), char_getskillsuccess(), char_getvalue(), fun_btcharlist(), fun_btgetcharvalue(), and fun_btsetcharvalue().

#define char_getxp (  )     char_getvalue(a, "maxxp")

Definition at line 89 of file btechstats_global.h.

#define char_getxp (  )     char_getvalue(a, "maxxp")

Definition at line 89 of file btechstats_global.h.

#define char_getxpavail (  )     char_getvalue(a, "xp")

Definition at line 90 of file btechstats_global.h.

#define char_getxpavail (  )     char_getvalue(a, "xp")

Definition at line 90 of file btechstats_global.h.

#define char_glethal (  )     char_gvalue((a), "lethal")

Definition at line 101 of file btechstats_global.h.

Referenced by fix_pilotdamage(), headhitmwdamage(), initialize_pc(), mwlethaldam(), and show_charstatus().

#define char_glives (  )     char_gvalue(a, "lives")

Definition at line 96 of file btechstats_global.h.

Referenced by show_charstatus().

#define char_gmaxbruise (  )     (char_gvalue((a), "build")*10)

Definition at line 100 of file btechstats_global.h.

Referenced by show_charstatus().

#define char_gmaxlethal (  )     (char_gvalue((a), "build")*10)

Definition at line 102 of file btechstats_global.h.

Referenced by show_charstatus().

#define char_gvalue   char_getstatvalue

Definition at line 83 of file btechstats_global.h.

Referenced by char_getskilltargetbycode_base(), fix_pilotdamage(), HasBoolAdvantage(), headhitmwdamage(), initialize_pc(), mw_ic_bth(), mwlethaldam(), show_charstatus(), store_attrs(), and store_health().

#define char_gxp (  )     char_gvalue(a, "maxxp")

Definition at line 97 of file btechstats_global.h.

#define char_gxpavail (  )     char_gvalue(a, "xp")

Definition at line 98 of file btechstats_global.h.

#define CHAR_INT   4

Definition at line 69 of file btechstats_global.h.

Referenced by show_charstatus().

#define CHAR_LASTSKILLTYPE   CHAR_SOCIAL

Definition at line 28 of file btechstats_global.h.

#define CHAR_LRN   8

Definition at line 70 of file btechstats_global.h.

Referenced by show_charstatus().

#define CHAR_MENTAL   0x0002

Definition at line 40 of file btechstats_global.h.

Referenced by char_getskilltargetbycode_base().

#define CHAR_PHYSICAL   0x0004

Definition at line 41 of file btechstats_global.h.

Referenced by char_getskilltargetbycode_base().

#define CHAR_REF   2

Definition at line 68 of file btechstats_global.h.

Referenced by show_charstatus().

#define char_sbruise ( a,
 )     char_svalue((a), "bruise", (b))

Definition at line 111 of file btechstats_global.h.

Referenced by headhitmwdamage(), and mwlethaldam().

#define char_setbruise ( a,
 )     char_setvalue((a), "Bruise", (b))

Definition at line 105 of file btechstats_global.h.

#define char_setlethal ( a,
 )     char_setvalue((a), "Lethal", (b))

Definition at line 107 of file btechstats_global.h.

#define char_setlives ( a,
 )     char_setvalue((a), "lives", (b))

Definition at line 104 of file btechstats_global.h.

#define char_setmaxbruise ( a,
 )     char_setvalue((a), "maxbruise", (b))

Definition at line 106 of file btechstats_global.h.

#define char_setmaxlethal ( a,
 )     char_setvalue((a), "maxlethal", (b))

Definition at line 108 of file btechstats_global.h.

#define char_setstatvaluebycode ( s,
code,
value   ) 

Value:

if (code >= 0) \
  { if (code == EE_NUMBER) s->values[LIVES_NUMBER]+=value-s->values[code];\
  s->values[code] = value; }

Definition at line 121 of file btechstats_global.h.

Referenced by char_setstatvalue().

#define char_setvaluebycode ( player,
code,
value   ) 

Value:

{ PSTATS *hm = retrieve_stats(player, VALUES_ALL); \
    char_setstatvaluebycode(hm, code, value); \
    store_stats(player, hm, VALUES_ALL); \
  }

Definition at line 127 of file btechstats_global.h.

Referenced by char_setvalue(), and fun_btsetcharvalue().

#define CHAR_SKILL   1

Definition at line 33 of file btechstats_global.h.

Referenced by char_getskilltargetbycode_base(), debug_xptop(), do_show(), fun_btcharlist(), fun_btgetcharvalue(), fun_btsetcharvalue(), generic_store_stuff(), and show_charstatus().

#define char_slethal ( a,
 )     char_svalue((a), "lethal", (b))

Definition at line 113 of file btechstats_global.h.

Referenced by headhitmwdamage(), and mwlethaldam().

#define char_slives ( a,
 )     char_svalue((a), "lives", (b))

Definition at line 110 of file btechstats_global.h.

Referenced by clear_player().

#define char_smaxbruise ( a,
 )     char_svalue((a), "maxbruise", (b))

Definition at line 112 of file btechstats_global.h.

#define char_smaxlethal ( a,
 )     char_svalue((a), "maxlethal", (b))

Definition at line 114 of file btechstats_global.h.

#define CHAR_SOCIAL   0x0008

Definition at line 42 of file btechstats_global.h.

Referenced by char_getskilltargetbycode_base().

#define char_svalue   char_setstatvalue

Definition at line 84 of file btechstats_global.h.

Referenced by retrieve_attrs(), and retrieve_health().

#define CHAR_VALUE   0

Definition at line 32 of file btechstats_global.h.

Referenced by do_show().

#define EE_NUMBER   11

Definition at line 116 of file btechstats_global.h.

#define ELITE   3

Definition at line 76 of file btechstats_global.h.

#define GREEN   0

Definition at line 73 of file btechstats_global.h.

#define HISTORICAL   4

Definition at line 77 of file btechstats_global.h.

#define LIVES_NUMBER   5

Definition at line 117 of file btechstats_global.h.

#define REGULAR   1

Definition at line 74 of file btechstats_global.h.

#define SK_XP   0x4000

Definition at line 56 of file btechstats_global.h.

Referenced by char_gainxpbycode().

#define VALUES_ADVS   8

Definition at line 23 of file btechstats_global.h.

Referenced by HasBoolAdvantage(), headhitmwdamage(), mw_ic_bth(), mwlethaldam(), retrieve_stats(), and store_stats().

#define VALUES_ALL   15

Definition at line 24 of file btechstats_global.h.

Referenced by do_charstatus(), lower_xp(), retrieve_attrs(), and retrieve_health().

#define VALUES_ATTRS   4

Definition at line 22 of file btechstats_global.h.

Referenced by char_gainxpbycode(), fix_pilotdamage(), HasBoolAdvantage(), headhitmwdamage(), initialize_pc(), mw_ic_bth(), mwlethaldam(), retrieve_stats(), and store_stats().

#define VALUES_CO   6

Definition at line 25 of file btechstats_global.h.

Referenced by char_getskilltargetbycode(), and char_getskilltargetbycode_noxp().

#define VALUES_HEALTH   1

Definition at line 20 of file btechstats_global.h.

Referenced by fix_pilotdamage(), HasBoolAdvantage(), headhitmwdamage(), initialize_pc(), mw_ic_bth(), mwlethaldam(), retrieve_stats(), and store_stats().

#define VALUES_SKILLS   2

Definition at line 21 of file btechstats_global.h.

Referenced by char_gainxpbycode(), char_getxpbycode(), debug_xptop(), fun_btgetcharvalue(), initialize_pc(), retrieve_stats(), and store_stats().

#define VETEREN   2

Definition at line 75 of file btechstats_global.h.

#define XP_MAX   (256*256*256)

Definition at line 58 of file btechstats_global.h.

Referenced by char_gainxpbycode(), char_getxpbycode(), char_xp_bonus(), debug_xptop(), figure_xp_bonus(), and lower_xp().


Generated on Mon May 28 04:25:33 2007 for BattletechMUX by  doxygen 1.4.7