This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Functions | |
int | SomeoneRepairing_s (MECH *mech, int loc, int part, int t) |
int | SomeoneRepairing (MECH *mech, int loc, int part) |
int | SomeoneReplacingSuit (MECH *mech, int loc) |
int | SomeoneFixingA (MECH *mech, int loc) |
int | SomeoneFixingI (MECH *mech, int loc) |
int | SomeoneFixing (MECH *mech, int loc) |
int | SomeoneAttaching (MECH *mech, int loc) |
int | SomeoneResealing (MECH *mech, int loc) |
int | SomeoneScrappingLoc (MECH *mech, int loc) |
int | SomeoneScrappingPart (MECH *mech, int loc, int part) |
int | CanScrapLoc (MECH *mech, int loc) |
int | CanScrapPart (MECH *mech, int loc, int part) |
int | ValidGunPos (MECH *mech, int loc, int pos) |
void | tech_checkstatus (dbref player, void *data, char *buffer) |
void | tech_removegun (dbref player, void *data, char *buffer) |
void | tech_removepart (dbref player, void *data, char *buffer) |
int | Invalid_Scrap_Path (MECH *mech, int loc) |
void | tech_removesection (dbref player, void *data, char *buffer) |
void | tech_replacegun (dbref player, void *data, char *buffer) |
void | tech_repairgun (dbref player, void *data, char *buffer) |
void | tech_fixenhcrit (dbref player, void *data, char *buffer) |
void | tech_replacepart (dbref player, void *data, char *buffer) |
void | tech_repairpart (dbref player, void *data, char *buffer) |
void | tech_toggletype (dbref player, void *data, char *buffer) |
void | tech_reload (dbref player, void *data, char *buffer) |
void | tech_unload (dbref player, void *data, char *buffer) |
void | tech_fixarmor (dbref player, void *data, char *buffer) |
void | tech_fixinternal (dbref player, void *data, char *buffer) |
int | Invalid_Repair_Path (MECH *mech, int loc) |
int | unit_is_fixable (MECH *mech) |
void | tech_reattach (dbref player, void *data, char *buffer) |
void | tech_reseal (dbref player, void *data, char *buffer) |
void | tech_magic (dbref player, void *data, char *buffer) |
void | tech_replacesuit (dbref player, void *data, char *buffer) |
int CanScrapLoc | ( | MECH * | mech, | |
int | loc | |||
) |
Definition at line 158 of file mech.tech.commands.c.
References EVENT_REPAIR_RELO, EVENT_REPAIR_REPL, muxevent_gothru_type_data(), SomeoneFixing(), tech_check_loc(), tmp_flag, and tmp_loc.
Referenced by TECHCOMMANDH().
00159 { 00160 tmp_flag = 0; 00161 tmp_loc = loc % 8; 00162 muxevent_gothru_type_data(EVENT_REPAIR_REPL, (void *) mech, 00163 tech_check_loc); 00164 muxevent_gothru_type_data(EVENT_REPAIR_RELO, (void *) mech, 00165 tech_check_loc); 00166 return !tmp_flag && !SomeoneFixing(mech, loc); 00167 }
int CanScrapPart | ( | MECH * | mech, | |
int | loc, | |||
int | part | |||
) |
Definition at line 169 of file mech.tech.commands.c.
References SomeoneRepairing().
Referenced by TECHCOMMANDH().
00170 { 00171 return !(SomeoneRepairing(mech, loc, part)); 00172 }
int Invalid_Repair_Path | ( | MECH * | mech, | |
int | loc | |||
) |
Definition at line 682 of file mech.tech.commands.c.
References CHECK, CLASS_MECH, CTORSO, HEAD, LARM, LLEG, LTORSO, MechType, RARM, RLEG, and RTORSO.
Referenced by TECHCOMMANDH().
00683 { 00684 if(MechType(mech) != CLASS_MECH) 00685 return 0; 00686 switch (loc) { 00687 CHECK(HEAD, CTORSO); 00688 CHECK(LTORSO, CTORSO); 00689 CHECK(RTORSO, CTORSO); 00690 CHECK(LARM, LTORSO); 00691 CHECK(RARM, RTORSO); 00692 CHECK(LLEG, CTORSO); 00693 CHECK(RLEG, CTORSO); 00694 } 00695 return 0; 00696 }
int Invalid_Scrap_Path | ( | MECH * | mech, | |
int | loc | |||
) |
Definition at line 297 of file mech.tech.commands.c.
References CHECK, CHECK_S, CLASS_MECH, CTORSO, HEAD, LARM, LTORSO, MechType, RARM, and RTORSO.
Referenced by check_for_scrappage(), and TECHCOMMANDH().
00298 { 00299 if(loc < 0) 00300 return 0; 00301 if(MechType(mech) != CLASS_MECH) 00302 return 0; 00303 switch (loc) { 00304 CHECK(CTORSO, HEAD); 00305 CHECK_S(LTORSO); 00306 CHECK_S(RTORSO); 00307 break; 00308 CHECK(LTORSO, LARM); 00309 break; 00310 CHECK(RTORSO, RARM); 00311 break; 00312 } 00313 return 0; 00314 }
int SomeoneAttaching | ( | MECH * | mech, | |
int | loc | |||
) |
Definition at line 120 of file mech.tech.commands.c.
References CHECKL, EVENT_REPAIR_REAT, and tech_check_loc().
Referenced by is_under_repair(), and TECHCOMMANDH().
00121 { 00122 CHECKL(EVENT_REPAIR_REAT, tech_check_loc); 00123 }
int SomeoneFixing | ( | MECH * | mech, | |
int | loc | |||
) |
Definition at line 114 of file mech.tech.commands.c.
References SomeoneFixingA(), and SomeoneFixingI().
Referenced by CanScrapLoc(), is_under_repair(), and TECHCOMMANDH().
00115 { 00116 return SomeoneFixingA(mech, loc) || SomeoneFixingI(mech, loc); 00117 }
int SomeoneFixingA | ( | MECH * | mech, | |
int | loc | |||
) |
Definition at line 104 of file mech.tech.commands.c.
References CHECKL, EVENT_REPAIR_FIX, and tech_check_loc().
Referenced by SomeoneFixing(), and TECHCOMMANDH().
00105 { 00106 CHECKL(EVENT_REPAIR_FIX, tech_check_loc); 00107 }
int SomeoneFixingI | ( | MECH * | mech, | |
int | loc | |||
) |
Definition at line 109 of file mech.tech.commands.c.
References CHECKL, EVENT_REPAIR_FIXI, and tech_check_loc().
Referenced by SomeoneFixing(), and TECHCOMMANDH().
00110 { 00111 CHECKL(EVENT_REPAIR_FIXI, tech_check_loc); 00112 }
int SomeoneRepairing | ( | MECH * | mech, | |
int | loc, | |||
int | part | |||
) |
Definition at line 91 of file mech.tech.commands.c.
References DAT, EVENT_REPAIR_MOB, EVENT_REPAIR_RELO, EVENT_REPAIR_REPAG, EVENT_REPAIR_REPAP, EVENT_REPAIR_REPENHCRIT, EVENT_REPAIR_REPL, and EVENT_REPAIR_REPLG.
Referenced by CanScrapPart(), check_for_scrappage(), is_under_repair(), and TECHCOMMANDH().
00092 { 00093 DAT(EVENT_REPAIR_RELO); 00094 DAT(EVENT_REPAIR_REPL); 00095 DAT(EVENT_REPAIR_REPLG); 00096 DAT(EVENT_REPAIR_REPAP); 00097 DAT(EVENT_REPAIR_REPAG); 00098 DAT(EVENT_REPAIR_MOB); 00099 DAT(EVENT_REPAIR_REPENHCRIT); 00100 return 0; 00101 }
int SomeoneRepairing_s | ( | MECH * | mech, | |
int | loc, | |||
int | part, | |||
int | t | |||
) |
Definition at line 83 of file mech.tech.commands.c.
References CHECK, and tech_check_locpart().
00084 { 00085 CHECK(t, tech_check_locpart); 00086 }
int SomeoneReplacingSuit | ( | MECH * | mech, | |
int | loc | |||
) |
Definition at line 125 of file mech.tech.commands.c.
References CHECKL, EVENT_REPAIR_REPSUIT, and tech_check_loc().
Referenced by is_under_repair(), and TECHCOMMANDH().
00126 { 00127 CHECKL(EVENT_REPAIR_REPSUIT, tech_check_loc); 00128 }
int SomeoneResealing | ( | MECH * | mech, | |
int | loc | |||
) |
Definition at line 136 of file mech.tech.commands.c.
References CHECKL, EVENT_REPAIR_RESE, and tech_check_loc().
Referenced by is_under_repair(), and TECHCOMMANDH().
00137 { 00138 CHECKL(EVENT_REPAIR_RESE, tech_check_loc); 00139 }
int SomeoneScrappingLoc | ( | MECH * | mech, | |
int | loc | |||
) |
Definition at line 141 of file mech.tech.commands.c.
References CHECKL, EVENT_REPAIR_SCRL, and tech_check_loc().
Referenced by check_for_scrappage(), is_under_repair(), and TECHCOMMANDH().
00142 { 00143 CHECKL(EVENT_REPAIR_SCRL, tech_check_loc); 00144 }
int SomeoneScrappingPart | ( | MECH * | mech, | |
int | loc, | |||
int | part | |||
) |
Definition at line 146 of file mech.tech.commands.c.
References DAT, EVENT_REPAIR_SCRG, EVENT_REPAIR_SCRP, and EVENT_REPAIR_UMOB.
Referenced by check_for_scrappage(), is_under_repair(), and TECHCOMMANDH().
00147 { 00148 DAT(EVENT_REPAIR_SCRP); 00149 DAT(EVENT_REPAIR_SCRG); 00150 DAT(EVENT_REPAIR_UMOB); 00151 return 0; 00152 }
void tech_checkstatus | ( | dbref | player, | |
void * | data, | |||
char * | buffer | |||
) |
Definition at line 195 of file mech.tech.commands.c.
References DOCHECK, figure_latest_tech_event(), game_lag_time(), notify_printf(), and silly_get_uptime_to_string().
00196 { 00197 MECH *mech = (MECH *) data; 00198 int i = figure_latest_tech_event(mech); 00199 char *ms; 00200 00201 DOCHECK(!i, "The mech's ready to rock!"); 00202 ms = silly_get_uptime_to_string(game_lag_time(i)); 00203 notify_printf(player, "The 'mech has approximately %s until done.", ms); 00204 }
void tech_fixarmor | ( | dbref | player, | |
void * | data, | |||
char * | buffer | |||
) |
Referenced by fix_entry().
void tech_fixenhcrit | ( | dbref | player, | |
void * | data, | |||
char * | buffer | |||
) |
Referenced by fix_entry().
void tech_fixinternal | ( | dbref | player, | |
void * | data, | |||
char * | buffer | |||
) |
Referenced by fix_entry().
void tech_magic | ( | dbref | player, | |
void * | data, | |||
char * | buffer | |||
) |
void tech_reattach | ( | dbref | player, | |
void * | data, | |||
char * | buffer | |||
) |
Referenced by fix_entry().
void tech_reload | ( | dbref | player, | |
void * | data, | |||
char * | buffer | |||
) |
Referenced by fix_entry().
void tech_removegun | ( | dbref | player, | |
void * | data, | |||
char * | buffer | |||
) |
Referenced by fix_entry().
void tech_removepart | ( | dbref | player, | |
void * | data, | |||
char * | buffer | |||
) |
Referenced by fix_entry().
void tech_removesection | ( | dbref | player, | |
void * | data, | |||
char * | buffer | |||
) |
Referenced by fix_entry().
void tech_repairgun | ( | dbref | player, | |
void * | data, | |||
char * | buffer | |||
) |
Referenced by fix_entry().
void tech_repairpart | ( | dbref | player, | |
void * | data, | |||
char * | buffer | |||
) |
void tech_replacegun | ( | dbref | player, | |
void * | data, | |||
char * | buffer | |||
) |
Referenced by fix_entry().
void tech_replacepart | ( | dbref | player, | |
void * | data, | |||
char * | buffer | |||
) |
Referenced by fix_entry().
void tech_replacesuit | ( | dbref | player, | |
void * | data, | |||
char * | buffer | |||
) |
Referenced by fix_entry().
void tech_reseal | ( | dbref | player, | |
void * | data, | |||
char * | buffer | |||
) |
Referenced by fix_entry().
void tech_toggletype | ( | dbref | player, | |
void * | data, | |||
char * | buffer | |||
) |
void tech_unload | ( | dbref | player, | |
void * | data, | |||
char * | buffer | |||
) |
Referenced by fix_entry().
int unit_is_fixable | ( | MECH * | mech | ) |
Definition at line 698 of file mech.tech.commands.c.
References CLASS_MECH, CLASS_VEH_GROUND, CLASS_VTOL, CTORSO, GetSectOInt, MechType, NUM_SECTIONS, ROTOR, SectIsDestroyed, and TURRET.
Referenced by damages_func(), fun_btnumrepjobs(), fun_btunitfixable(), mech_embark(), show_mechs_damage(), tech_fix(), and TECHCOMMANDH().
00699 { 00700 int i; 00701 00702 for(i = 0; i < NUM_SECTIONS; i++) { 00703 if(!GetSectOInt(mech, i)) 00704 continue; 00705 if(!SectIsDestroyed(mech, i)) 00706 continue; 00707 if(MechType(mech) == CLASS_MECH) 00708 if(i == CTORSO) 00709 return 0; 00710 if(MechType(mech) == CLASS_VTOL) 00711 if(i != ROTOR) 00712 return 0; 00713 if(MechType(mech) == CLASS_VEH_GROUND) 00714 if(i != TURRET) 00715 return 0; 00716 } 00717 return 1; 00718 };
int ValidGunPos | ( | MECH * | mech, | |
int | loc, | |||
int | pos | |||
) |
Definition at line 178 of file mech.tech.commands.c.
References FindWeapons_Advanced(), and MAX_WEAPS_SECTION.
Referenced by TECHCOMMANDH().
00179 { 00180 unsigned char weaparray_f[MAX_WEAPS_SECTION]; 00181 unsigned char weapdata_f[MAX_WEAPS_SECTION]; 00182 int critical_f[MAX_WEAPS_SECTION]; 00183 int i, num_weaps_f; 00184 00185 if((num_weaps_f = 00186 FindWeapons_Advanced(mech, loc, weaparray_f, weapdata_f, 00187 critical_f, 1)) < 0) 00188 return 0; 00189 for(i = 0; i < num_weaps_f; i++) 00190 if(critical_f[i] == pos) 00191 return 1; 00192 return 0; 00193 }