callback_table.cpp

Go to the documentation of this file.
00001 /* $Id: callback_table.cpp 15299 2009-01-31 20:16:06Z smatz $ */
00002 
00005 #include "stdafx.h"
00006 #include "callback_table.h"
00007 #include "command_type.h"
00008 
00009 /* If you add a callback for DoCommandP, also add the callback in here
00010  *   see below for the full list!
00011  * If you don't do it, it won't work across the network!! */
00012 
00013 /* aircraft_gui.cpp */
00014 CommandCallback CcBuildAircraft;
00015 
00016 /* airport_gui.cpp */
00017 CommandCallback CcBuildAirport;
00018 
00019 /* bridge_gui.cpp */
00020 CommandCallback CcBuildBridge;
00021 
00022 /* dock_gui.cpp */
00023 CommandCallback CcBuildDocks;
00024 CommandCallback CcBuildCanal;
00025 
00026 /* depot_gui.cpp */
00027 CommandCallback CcCloneVehicle;
00028 
00029 /* main_gui.cpp */
00030 CommandCallback CcPlaySound10;
00031 CommandCallback CcPlaceSign;
00032 CommandCallback CcTerraform;
00033 CommandCallback CcBuildTown;
00034 CommandCallback CcGiveMoney;
00035 
00036 /* rail_gui.cpp */
00037 CommandCallback CcPlaySound1E;
00038 CommandCallback CcRailDepot;
00039 CommandCallback CcStation;
00040 CommandCallback CcBuildRailTunnel;
00041 
00042 /* road_gui.cpp */
00043 CommandCallback CcPlaySound1D;
00044 CommandCallback CcBuildRoadTunnel;
00045 CommandCallback CcRoadDepot;
00046 
00047 /* roadveh_gui.cpp */
00048 CommandCallback CcBuildRoadVeh;
00049 
00050 /* ship_gui.cpp */
00051 CommandCallback CcBuildShip;
00052 
00053 /* train_gui.cpp */
00054 CommandCallback CcBuildWagon;
00055 CommandCallback CcBuildLoco;
00056 
00057 /* ai/ai_core.cpp */
00058 CommandCallback CcAI;
00059 
00060 CommandCallback *_callback_table[] = {
00061   /* 0x00 */ NULL,
00062   /* 0x01 */ CcBuildAircraft,
00063   /* 0x02 */ CcBuildAirport,
00064   /* 0x03 */ CcBuildBridge,
00065   /* 0x04 */ CcBuildCanal,
00066   /* 0x05 */ CcBuildDocks,
00067   /* 0x06 */ CcBuildLoco,
00068   /* 0x07 */ CcBuildRoadVeh,
00069   /* 0x08 */ CcBuildShip,
00070   /* 0x09 */ CcBuildTown,
00071   /* 0x0A */ CcBuildRoadTunnel,
00072   /* 0x0B */ CcBuildRailTunnel,
00073   /* 0x0C */ CcBuildWagon,
00074   /* 0x0D */ CcRoadDepot,
00075   /* 0x0E */ CcRailDepot,
00076   /* 0x0F */ CcPlaceSign,
00077   /* 0x10 */ CcPlaySound10,
00078   /* 0x11 */ CcPlaySound1D,
00079   /* 0x12 */ CcPlaySound1E,
00080   /* 0x13 */ CcStation,
00081   /* 0x14 */ CcTerraform,
00082   /* 0x15 */ CcAI,
00083   /* 0x16 */ CcCloneVehicle,
00084   /* 0x17 */ CcGiveMoney,
00085 };
00086 
00087 const int _callback_table_count = lengthof(_callback_table);

Generated on Thu Sep 24 19:35:01 2009 for OpenTTD by  doxygen 1.5.6