00001
00002
00003
00004 #ifndef _P_MECH_DAMAGE_H
00005 #define _P_MECH_DAMAGE_H
00006
00007 int cause_armordamage(MECH * wounded, MECH * attacker, int LOS,
00008 int attackPilot, int isrear, int iscritical, int hitloc, int damage,
00009 int *crits, int wWeapIndx, int wAmmoMode);
00010 int cause_internaldamage(MECH * wounded, MECH * attacker, int LOS,
00011 int attackPilot, int isrear, int hitloc, int intDamage, int weapindx,
00012 int *crits);
00013 void DamageMech(MECH * wounded, MECH * attacker, int LOS, int attackPilot,
00014 int hitloc, int isrear, int iscritical, int damage, int intDamage,
00015 int cause, int bth, int wWeapIndx, int wAmmoMode, int tIgnoreSwarmers);
00016 void DestroyWeapon(MECH * wounded, int hitloc, int type, int startCrit,
00017 int numcrits, int totalcrits);
00018 int CountWeaponsInLoc(MECH * mech, int loc);
00019 int FindWeaponTypeNumInLoc(MECH * mech, int loc, int num);
00020 void LoseWeapon(MECH * mech, int hitloc);
00021 void DestroyHeatSink(MECH * mech, int hitloc);
00022 void DestroySection(MECH * wounded, MECH * attacker, int LOS, int hitloc);
00023 char *setarmorstatus_func(MECH * mech, char *sectstr, char *typestr,
00024 char *valuestr);
00025 int dodamage_func(dbref player, MECH * mech, int totaldam, int clustersize,
00026 int direction, int critical, char *mechmsg, char *mechbroadcast);
00027 void mech_damage(dbref player, MECH * mech, char *buffer);
00028
00029 #endif