00001 /* Vehicles: Boats, carriages, penis pumps. 00002 */ 00003 00004 00005 #define VEHICLE_FILE "vehicles.data" // Vehicle file to load/save upon. 00006 typedef struct vehicle_data VDATA; 00007 00008 struct vehicle_data 00009 { 00010 ROOM_INDEX_DATA * room; /* This is the main stuff. Such as 00011 * vnum, descs, owner, etc, etc. 00012 */ 00013 unsigned long int vnum; /* vnum of room to go to and stuff */ 00014 unsigned int armor; /* armor of the vehicle. Numeric value 00015 * for it. XXX change this or modify 00016 * it evetually. 00017 */ 00018 unsigned int max_armor; 00019 00020 unsigned int max_riders; /* Max riders of the vehicle. 00021 * remember not to set to zero 00022 * or the future code will not 00023 * allow for people to board. 00024 */ 00025 char * path; /* This will be the 'pre-defined' path 00026 * that the vehicle will follow. This 00027 * does not have to be set if it is PC 00028 * controled. XXX: if you really want 00029 * to be able to make vehicles go 'off 00030 * course' then we'll need to add some 00031 * more stuff in this. 00032 */ 00033 int terrain; /* This is the terrain that the vehicle can 00034 * travel upon. A new command will be added 00035 * soon that will show you the 'terrain types' 00036 * with that command, you can set the terrain 00037 * that the vehicle can travel upon. 00038 * XXX: in the future, we may want to add 00039 * multiple terrains. If so, then just make 00040 * this an array of int with perhaps a 00041 * MAX_TERAIN type setting so that you can add 00042 * them to it. Shouldn't be too hard to add 00043 * at all in the future. 00044 */ 00045 int speed; /* Current speed of the vehicle. This might as 00046 * well be a variable speed setting since we'll 00047 * also have a max_speed setting. This will be more 00048 * suited towards carriages than ships. 00049 */ 00050 int max_speed; /* Max speed of the vehicle.*/ 00051 int type; /* This is the 'type' of vehicle. A list shall need to be 00052 * made eventually of what these types actually are. for 00053 * now we'll just give it the option of a type. :) 00054 */ 00055 char * name; /* Vehicle Name */ 00056 unsigned long int i_vnum; /* Currently in's vnum. */ 00057 unsigned long int s_vnum; /* Starting vnum */ 00058 unsigned long int cur_path_pos; /* Current postion within it's 'path' */ 00059 bool loaded; 00060 00061 VDATA * next; //DUH! 00062 }; 00063 00064 VDATA *v_list; 00065 VDATA *v_free;
1.4.0