src/hcode/btech/mech.events.h

Go to the documentation of this file.
00001 
00002 /*
00003  * $Id: mech.events.h,v 1.2 2005/08/03 21:40:54 av1-op Exp $
00004  *
00005  * Author: Markus Stenberg <fingon@iki.fi>
00006  *
00007  *  Copyright (c) 1996 Markus Stenberg
00008  *  Copyright (c) 1998-2002 Thomas Wouters
00009  *  Copyright (c) 2000-2002 Cord Awtry
00010  *  Copyright (c) 1999-2005 Kevin Stevens
00011  *       All rights reserved
00012  *
00013  * Created: Fri Aug 30 15:32:12 1996 fingon
00014  * Last modified: Sat Jun  6 20:14:55 1998 fingon
00015  *
00016  */
00017 
00018 #ifndef MECH_EVENTS_H
00019 #define MECH_EVENTS_H
00020 
00021 #include "mech.h"
00022 #include "muxevent.h"
00023 #include "p.event.h"
00024 
00025 /* Semi-combat-related events */
00026 #define EVENT_MOVE         1    /* mech */
00027         /* Updates mech's position and the positionchanged flag */
00028 #define EVENT_DHIT         2    /* <artydata> */
00029 #define EVENT_STARTUP      3    /* mech,timer */
00030         /* Starts up da mech (timer = int which shows da stage of startup) */
00031 #define EVENT_LOCK         4    /* mech,target */
00032         /* Engages lock between <mech>,and <target> (breaking LOS stops this) */
00033 #define EVENT_STAND        5    /* mech */
00034         /* Makes da mech stand */
00035 #define EVENT_JUMP         6
00036         /* Advances us one jump 'step' */
00037 #define EVENT_RECYCLE      7    /* CONVERTED. mech */
00038         /* Weapons recycling.. */
00039 #define EVENT_JUMPSTABIL   8    /* mech */
00040         /* If event of this type doesn't exist for mech, we've finished
00041            stabilizing after last jump */
00042 #define EVENT_RECOVERY     9    /* mech */
00043        /* Mech's pilot has chance of recovering from uncon */
00044 #define EVENT_SCHANGE     10    /* mech, <modes> (with first as higher bytes) */
00045        /* Sensor mode's changing.. */
00046 #define EVENT_DECORATION  11    /* timed decoration removal/happening thingy */
00047        /* map, mapobj */
00048 #define EVENT_SPOT_LOCK   12    /* spot-lock (Nim's stuff) */
00049 #define EVENT_PLOS        13    /* Possible-lock (mech) */
00050 #define EVENT_SPOT_CHECK  14    /* Range-check for IDF */
00051 #define EVENT_TAKEOFF     15    /* Aero takeoff (mech, secstilllaunch) */
00052 #define EVENT_FALL        16    /* Shutdown mech falling */
00053 #define EVENT_BREGEN      17    /* Building regeneration */
00054 #define EVENT_BREBUILD    18    /* Building rebuild */
00055 #define EVENT_DUMP        19    /* mech, loc : Dump something */
00056 
00057 #define EVENT_MASC_FAIL   20    /* MASC roll for failure of stuff */
00058 #define EVENT_MASC_REGEN  21    /* MASC recovery during non-use */
00059 #define EVENT_AMMOWARN    22    /* CONVERTED. NO EVENT NEEDED NOW.  Warn of running out of ammo */
00060 
00061 #define FIRST_AUTO_EVENT        23
00062 #define EVENT_AUTOGOTO          23  /* Autopilot goto */
00063 #define EVENT_AUTOLEAVE         24  /* Autopilot leavebase */
00064 #define EVENT_AUTOCOM           25  /* Autopilot next command */
00065 #define EVENT_AUTOGUN           26  /* Autopilot gun control */
00066 #define EVENT_AUTO_SENSOR       27  /* CONVERTED Autopilot gun/sensor change */
00067 #define EVENT_AUTOFOLLOW        28  /* Autopilot follow */
00068 #define EVENT_AUTOENTERBASE     29  /* Autopilot enterbase */
00069 #define EVENT_AUTO_REPLY        30  /* Autopilot reply */
00070 #define EVENT_AUTO_PROFILE      31  /* Autopilot profile change */
00071 #define EVENT_AUTO_ROAM         32
00072 #define LAST_AUTO_EVENT         EVENT_AUTO_ROAM 
00073 
00074 #define EVENT_MRECOVERY     33  /* mech */
00075 #define EVENT_BLINDREC      34
00076 #define EVENT_BURN          35
00077 #define EVENT_SS            36
00078 
00079 #define EVENT_HIDE          37
00080 #define EVENT_OOD           38
00081 #define EVENT_NUKEMECH      39
00082 #define EVENT_LATERAL       40
00083 #define EVENT_EXPLODE       41
00084 #define EVENT_DIG           42
00085 
00086 #define FIRST_TECH_EVENT    43
00087 
00088 #define EVENT_REPAIR_REPL       FIRST_TECH_EVENT        /* mech,<part> */
00089 #define EVENT_REPAIR_REPLG      (FIRST_TECH_EVENT+1)    /* mech,<part> */
00090 #define EVENT_REPAIR_REAT       (FIRST_TECH_EVENT+2)    /* mech,<location> */
00091 #define EVENT_REPAIR_RELO       (FIRST_TECH_EVENT+3)    /* mech,<part/amount> */
00092 #define EVENT_REPAIR_FIX        (FIRST_TECH_EVENT+4)    /* mech,<loc/amount/type> */
00093 #define EVENT_REPAIR_FIXI       (FIRST_TECH_EVENT+5)    /* mech,<loc/amount/type> */
00094 #define EVENT_REPAIR_SCRL       (FIRST_TECH_EVENT+6)    /* mech, loc */
00095 #define EVENT_REPAIR_SCRP       (FIRST_TECH_EVENT+7)    /* mech, loc, part */
00096 #define EVENT_REPAIR_SCRG       (FIRST_TECH_EVENT+8)    /* mech, loc, part */
00097 #define EVENT_REPAIR_REPAG      (FIRST_TECH_EVENT+9)    /* mech,<part> */
00098 #define EVENT_REPAIR_REPAP      (FIRST_TECH_EVENT+10)   /* mech,<part> */
00099 #define EVENT_REPAIR_MOB        (FIRST_TECH_EVENT+11)   /* mech,<part> */
00100 #define EVENT_REPAIR_UMOB       (FIRST_TECH_EVENT+12)   /* mech,<part> */
00101 #define EVENT_REPAIR_RESE       (FIRST_TECH_EVENT+13)   /* mech,<location> */
00102 #define EVENT_REPAIR_REPSUIT    (FIRST_TECH_EVENT+14)   /* mech */
00103 #define EVENT_REPAIR_REPENHCRIT (FIRST_TECH_EVENT+15)   /* mech */
00104 
00105 #define LAST_TECH_EVENT    EVENT_REPAIR_REPENHCRIT
00106 
00107 #define EVENT_STANDFAIL             60 
00108 #define EVENT_SLITECHANGING         61 
00109 #define EVENT_HEATCUTOFFCHANGING    62 
00110 #define EVENT_VEHICLEBURN           63  /* Burn a side of a vehicle */
00111 #define EVENT_UNSTUN_CREW           64  /* Unstun the crew */
00112 #define EVENT_CREWSTUN              65
00113 #define EVENT_UNJAM_TURRET          66 
00114 #define EVENT_UNJAM_AMMO            67
00115 #define EVENT_STEALTH_ARMOR         68
00116 #define EVENT_NSS                   69
00117 #define EVENT_TAG_RECYCLE           70
00118 #define EVENT_REMOVE_PODS           71
00119 #define EVENT_VEHICLE_EXTINGUISH    72
00120 #define EVENT_ENTER_HANGAR          73
00121 #define EVENT_CHANGING_HULLDOWN     74
00122 
00123 /* Not used in the stable branch, just devel */
00124 /* EVENT_BOGDOWNWAIT                75 */
00125 
00126 #define EVENT_SCHARGE_FAIL          76  /* SCHARGE roll for failure of stuff */
00127 #define EVENT_SCHARGE_REGEN         77  /* SCHARGE recovery during non-use */
00128 
00129 #define EVENT_CHECK_STAGGER         78
00130 #define EVENT_MOVEMODE              79
00131 #define EVENT_SIDESLIP              80
00132 
00133 #define ETEMPL(a) void a (MUXEVENT *e)
00134 
00135 static char *muxevent_names[] = {
00136     "NONAME",           /* 0 - */
00137     "Move",             /* 1 */
00138     "DHIT",             /* 2 */
00139     "Startup",          /* 3 */
00140     "Lock",             /* 4 */
00141     "Stand",            /* 5 */
00142     "Jump",             /* 6 */
00143     "Recycle",          /* 7 */
00144     "JumpSt",           /* 8 */
00145     "PRecov",           /* 9 */
00146     "SChange",          /* 10 */
00147     "DecRemv",          /* 11 */
00148     "SpotLck",          /* 12 */
00149     "PLos",             /* 13 */
00150     "ChkRng",           /* 14 */
00151     "Takeoff",          /* 15 */
00152 
00153     "Fall",             /* 16 */
00154     "BRegen",           /* 17 */
00155     "BRebuild",         /* 18 */
00156     "Dump",             /* 19 */
00157 
00158     "MASCF",            /* 20 */
00159     "MASCR",            /* 21 */
00160     "AmmoWarn",         /* 22 */
00161 
00162     "AutoGoto",         /* 23 */
00163     "AutoLeave",        /* 24 */
00164     "AutoCo",           /* 25 */
00165     "AutoGun",          /* 26 */
00166     "AutoSensor",       /* 27 */
00167     "AutoFollow",       /* 28 */
00168     "AutoEnter",        /* 29 */
00169     "AutoReply",        /* 30 */
00170     "AutoProfile",      /* 31 */
00171     "AutoRoam",         /* 32 */
00172     "MRec",             /* 33 */
00173 
00174     "BlindR",           /* 34 */
00175     "Burn",             /* 35 */
00176     "SixthS",           /* 36 */
00177 
00178     "Hidin",            /* 37 */
00179     "OOD",              /* 38 */
00180 
00181     "Misc",             /* 39 */
00182     "Lateral",          /* 40 */
00183     "SelfExp",          /* 41 */
00184 
00185     "DigIn",            /* 42 */
00186 
00187     "TRepl",            /* 43 */
00188     "TReplG",           /* 44 */
00189     "TReat",            /* 45 */
00190     "TRelo",            /* 46 */
00191     "TFix",             /* 47 */
00192     "TFixI",            /* 48 */
00193     "TScrL",            /* 49 */
00194     "TScrP",            /* 50 */
00195     "TScrG",            /* 51 */
00196     "TRepaG",           /* 52 */
00197     "TRepaP",           /* 53 */
00198     "TMoB",             /* 54 */
00199     "TUMoB",            /* 55 */
00200     "TRese",            /* 56 */
00201     "TRepSuit",         /* 57 */
00202     "TRepNHCrit",       /* 58 */
00203     "59",
00204     "StandF",           /* 60 */
00205     "SliteC",           /* 61 */
00206     "HeatCutOff",       /* 62 */
00207     "VechBurn",         /* 63 */
00208     "UnStunCrew",       /* 64 */
00209     "StunCrew",         /* 65 */
00210     "UnJamTurret",      /* 66 */
00211     "UnJamAmmo",        /* 67 */
00212     "StArmor",          /* 68 */
00213     "NSS",              /* 69 */
00214     "TagRecycle",       /* 70 */
00215     "RemPods",          /* 71 */
00216     "Extinguish",       /* 72 */
00217     "EntHangar",        /* 73 */
00218     "Hulldown",         /* 74 */
00219     "75",               /* 75 */
00220     "SchFail",          /* 76 */
00221     "SchRegen",         /* 77 */
00222     "CkStagger",        /* 78 */
00223     "MoveMode",         /* 79 */
00224     "Sideslip",         /* 80 */
00225     NULL
00226 };
00227 
00228 #include "p.aero.move.h"
00229 #include "p.mech.move.h"
00230 #include "p.mech.events.h"
00231 
00232 #endif                          /* MECH_EVENTS_H */

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