This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Defines | |
#define | notify(a, b) mecha_notify(a,b) |
#define | notify_except(a, b, c, d) mecha_notify_except(a,b,c,d) |
#define | DOCHECK(a, b) if (a) { notify(player, b); return; } |
#define | DOCHECKMA(a, b) if (a) { mech_notify(mech, MECHALL, b); return; } |
#define | DOCHECKMA0(a, b) if (a) { mech_notify(mech, MECHALL, b); return 0; } |
#define | DOCHECKMP(a, b) if (a) { mech_notify(mech, MECHPILOT, b); return; } |
#define | DOCHECKMP0(a, b) if (a) { mech_notify(mech, MECHPILOT, b); return 0; } |
#define | DOCHECKMP1(a, b) if (a) { mech_notify(mech, MECHPILOT, b); return 1; } |
#define | DOCHECK0(a, b) if (a) { notify(player, b); return 0; } |
#define | DOCHECK1(a, b) if (a) { notify(player, b); return -1; } |
#define | DOCHECKN(a, b) if (a) { notify(player, b); return NULL; } |
#define | FUNCHECK(a, b) if (a) { safe_tprintf_str(buff, bufc, b); return; } |
#define | Number(a, b) |
#define | skipws(name) while (name && *name && isspace(*name)) name++ |
#define | readint(to, from) (!from || !*from || (!(to = atoi(from)) && strcmp(from, "0"))) |
#define | Readnum(tovar, fromvar) (!(tovar = atoi(fromvar)) && strcmp(fromvar, "0")) |
#define | SetBit(val, bit) (val |= bit) |
#define | UnSetBit(val, bit) (val &= ~(bit)) |
#define | EvalBit(val, bit, state) do {if (state) SetBit(val,bit); else UnSetBit(val,bit);} while (0) |
#define | ToggleBit(val, bit) do { if (!(val & bit)) SetBit(val,bit);else UnSetBit(val,bit); } while (0) |
#define | WizPo(p, fun) (fun(Owner(p)) && Inherits(p)) |
#define | Wiz(p) WizPo(p,Wizard) |
#define | WizR(p) WizPo(p,WizRoy) |
#define | WizP(p) WizPo(p,Security) |
#define | hush_teleport(p, t) move_via_teleport(p,t,1,7) |
#define | loud_teleport(p, t) move_via_teleport(p,t,1,0) |
#define | can_pass_lock(guy, lockobj, lockname) could_doit(guy,lockobj,lockname) |
#define can_pass_lock | ( | guy, | |||
lockobj, | |||||
lockname | ) | could_doit(guy,lockobj,lockname) |
Definition at line 103 of file macros.h.
Referenced by mech_embark(), mech_enter_event(), mech_enterbase(), and mech_enterbay().
#define DOCHECK | ( | a, | |||
b | ) | if (a) { notify(player, b); return; } |
#define DOCHECK0 | ( | a, | |||
b | ) | if (a) { notify(player, b); return 0; } |
Definition at line 45 of file macros.h.
Referenced by common_checks(), FindAndCheckAmmo(), FireSpot(), FireWeaponNumber(), mech_disableweap_func(), mech_toggle_mode_sub_func(), mech_unjamammo_func(), and parse_tacargs().
#define DOCHECK1 | ( | a, | |||
b | ) | if (a) { notify(player, b); return -1; } |
Definition at line 46 of file macros.h.
Referenced by doBSuitCommonChecks(), FindBSuitTarget(), FireSpot(), and FireWeaponNumber().
#define DOCHECKMA | ( | a, | |||
b | ) | if (a) { mech_notify(mech, MECHALL, b); return; } |
Definition at line 40 of file macros.h.
Referenced by aero_checklz(), ChargeMech(), FireWeapon(), mech_axe(), mech_charge(), mech_club(), mech_dump(), mech_grabclub(), mech_mace(), mech_pickup(), mech_saw(), mech_sword(), PhysicalAttack(), and pickup_mw().
#define DOCHECKMA0 | ( | a, | |||
b | ) | if (a) { mech_notify(mech, MECHALL, b); return 0; } |
Definition at line 41 of file macros.h.
Referenced by DeathFromAbove(), Leave_DS(), Leave_DS_Bay(), and Leave_Hangar().
#define DOCHECKMP | ( | a, | |||
b | ) | if (a) { mech_notify(mech, MECHPILOT, b); return; } |
#define DOCHECKMP0 | ( | a, | |||
b | ) | if (a) { mech_notify(mech, MECHPILOT, b); return 0; } |
#define DOCHECKMP1 | ( | a, | |||
b | ) | if (a) { mech_notify(mech, MECHPILOT, b); return 1; } |
#define DOCHECKN | ( | a, | |||
b | ) | if (a) { notify(player, b); return NULL; } |
#define EvalBit | ( | val, | |||
bit, | |||||
state | ) | do {if (state) SetBit(val,bit); else UnSetBit(val,bit);} while (0) |
#define FUNCHECK | ( | a, | |||
b | ) | if (a) { safe_tprintf_str(buff, bufc, b); return; } |
#define hush_teleport | ( | p, | |||
t | ) | move_via_teleport(p,t,1,7) |
Definition at line 83 of file macros.h.
Referenced by autoeject(), char_disembark(), char_eject(), mech_discard_event(), and tele_contents().
#define loud_teleport | ( | p, | |||
t | ) | move_via_teleport(p,t,1,0) |
Definition at line 84 of file macros.h.
Referenced by Leave_DS_Bay(), Leave_Hangar(), mech_embark(), mech_enter_event(), mech_enterbay_event(), mech_udisembark(), and tele_contents().
Definition at line 25 of file macros.h.
Referenced by damage_cf(), do_move(), do_pemit(), do_say(), mech_notify(), mech_printf(), turret_deinitialize(), and turret_initialize().
#define Number | ( | a, | |||
b | ) |
Value:
((a) + (random() >> ( \ ((b) - (a)) > 16777216 ? 0 : \ ((b) - (a)) > 65536 ? 8 : \ ((b) - (a)) > 4096 ? 16 : 20 \ )) % ((b)-(a)+1))
Definition at line 57 of file macros.h.
Referenced by AccumulateGunXPold(), aero_update(), aero_UpdateSpeed(), AMSMissiles(), armor_effect(), artillery_cluster_hit(), artillery_hit(), auto_parse_command(), auto_reply(), auto_roam_generate_target_hex(), BlowDumpingAmmo(), bomb_drop(), bsuit_attackleg(), CheckGenericFail(), checkVehicleInFire(), CheckWeaponFailed(), clear_hex(), crittable(), dam_to_pc_conversion(), domino_space_in_hex(), DoWeaponJamCrit(), FailureComputerScanner(), FailureRadioRange(), FailureRadioShort(), FailureWeaponDud(), FailureWeaponJammed(), FailureWeaponSpike(), FindAdvFasaVehicleHitLocation(), FindFasaHitLocation(), FindHitLocation(), FindHitLocation_CritProof(), FindKickLocation(), FindPunchLocation(), FindTCHitLoc(), fire_dissipation_event(), FireWeapon(), FuelCheck(), get_bsuit_hitloc(), growable(), growSnow(), HandleCritical(), HandleVehicleCrit(), ice_growth(), ice_melt(), mech_list_maker(), mech_masc_event(), mech_ood_event(), mech_Rsetmapindex(), mech_scharge_event(), mech_thrash(), mech_update(), MechFalls(), meltable(), meltSnowAndIce(), MissileHitIndex(), pc_to_dam_conversion(), pickRandomWeapon(), possibly_blow_bridge(), possibly_blow_ice(), possibly_drop_thru_ice(), Roll(), ScrambleInfraAndLiteAmp(), ScrambleMessage(), sendchannelstuff(), Sensor_Sees(), show_mines_in_hex(), sixth_sense_check(), StopSwarming(), UpdateHeat(), vehicle_burn_event(), and vehicle_start_burn().
#define readint | ( | to, | |||
from | ) | (!from || !*from || (!(to = atoi(from)) && strcmp(from, "0"))) |
#define Readnum | ( | tovar, | |||
fromvar | ) | (!(tovar = atoi(fromvar)) && strcmp(fromvar, "0")) |
Definition at line 63 of file macros.h.
Referenced by auto_jump(), bsuit_swarm(), debug_memory(), debug_xptop(), mech_bootlegger(), mech_brief(), mech_c3_message(), mech_c3i_message(), mech_lateral(), mech_set_channelfreq(), mech_set_channelmode(), mech_set_channeltitle(), mech_startup(), multi_weap_sel(), and tech_fix().
#define ToggleBit | ( | val, | |||
bit | ) | do { if (!(val & bit)) SetBit(val,bit);else UnSetBit(val,bit); } while (0) |
#define Wiz | ( | p | ) | WizPo(p,Wizard) |
Definition at line 79 of file macros.h.
Referenced by debug_xptop(), fun_btgetcharvalue(), fun_btsetcharvalue(), mech_shutdown(), mech_startup(), mech_udisembark(), and tele_contents().
#define WizP | ( | p | ) | WizPo(p,Security) |
Definition at line 81 of file macros.h.
Referenced by aero_takeoff(), mech_masc_event(), mech_scharge_event(), and mech_startup().
#define WizR | ( | p | ) | WizPo(p,WizRoy) |
Definition at line 80 of file macros.h.
Referenced by do_charclear(), do_charstatus(), fun_btaddstores(), fun_btarmorstatus(), fun_btarmorstatus_ref(), fun_btcritslot(), fun_btcritslot_ref(), fun_btcritstatus(), fun_btcritstatus_ref(), fun_btdamagemech(), fun_btdamages(), fun_btengrate(), fun_btengrate_ref(), fun_btfasabasecost_ref(), fun_btgetbv(), fun_btgetbv_ref(), fun_btgetpartcost(), fun_btgetrange(), fun_btgetrealmaxspeed(), fun_btgetweight(), fun_btgetxcodevalue(), fun_btgetxcodevalue_ref(), fun_bthexemit(), fun_bthexinblz(), fun_bthexlos(), fun_btid2db(), fun_btlistblz(), fun_btloadmap(), fun_btloadmech(), fun_btlosm2m(), fun_btmakepilotroll(), fun_btmapemit(), fun_btmapunits(), fun_btmechfreqs(), fun_btpartmatch(), fun_btpartname(), fun_btparttype(), fun_btpayload_ref(), fun_btremovestores(), fun_btsetarmorstatus(), fun_btsetmaxspeed(), fun_btsetpartcost(), fun_btsetxcodevalue(), fun_btsetxy(), fun_btshowcritstatus_ref(), fun_btshowstatus_ref(), fun_btshowwspecs_ref(), fun_btstores(), fun_bttechlist(), fun_bttechlist_ref(), fun_bttechstatus(), fun_btthreshold(), fun_btunitfixable(), fun_btweaponstatus(), fun_btweaponstatus_ref(), and fun_btweapstat().