callback_table.cpp

Go to the documentation of this file.
00001 /* $Id$ */
00002 
00003 /*
00004  * This file is part of OpenTTD.
00005  * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
00006  * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00007  * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
00008  */
00009 
00012 #include "stdafx.h"
00013 #include "callback_table.h"
00014 #include "command_type.h"
00015 
00016 /* If you add a callback for DoCommandP, also add the callback in here
00017  *   see below for the full list!
00018  * If you don't do it, it won't work across the network!! */
00019 
00020 /* aircraft_gui.cpp */
00021 CommandCallback CcBuildAircraft;
00022 
00023 /* airport_gui.cpp */
00024 CommandCallback CcBuildAirport;
00025 
00026 /* bridge_gui.cpp */
00027 CommandCallback CcBuildBridge;
00028 
00029 /* dock_gui.cpp */
00030 CommandCallback CcBuildDocks;
00031 CommandCallback CcBuildCanal;
00032 
00033 /* depot_gui.cpp */
00034 CommandCallback CcCloneVehicle;
00035 
00036 /* main_gui.cpp */
00037 CommandCallback CcPlaySound10;
00038 CommandCallback CcPlaceSign;
00039 CommandCallback CcTerraform;
00040 CommandCallback CcGiveMoney;
00041 
00042 /* rail_gui.cpp */
00043 CommandCallback CcPlaySound1E;
00044 CommandCallback CcRailDepot;
00045 CommandCallback CcStation;
00046 CommandCallback CcBuildRailTunnel;
00047 
00048 /* road_gui.cpp */
00049 CommandCallback CcPlaySound1D;
00050 CommandCallback CcBuildRoadTunnel;
00051 CommandCallback CcRoadDepot;
00052 
00053 /* roadveh_gui.cpp */
00054 CommandCallback CcBuildRoadVeh;
00055 
00056 /* ship_gui.cpp */
00057 CommandCallback CcBuildShip;
00058 
00059 /* train_gui.cpp */
00060 CommandCallback CcBuildWagon;
00061 CommandCallback CcBuildLoco;
00062 
00063 /* town_gui.cpp */
00064 CommandCallback CcFoundTown;
00065 CommandCallback CcFoundRandomTown;
00066 
00067 /* group_gui.cpp */
00068 CommandCallback CcCreateGroup;
00069 
00070 /* ai/ai_core.cpp */
00071 CommandCallback CcAI;
00072 
00073 CommandCallback * const _callback_table[] = {
00074   /* 0x00 */ NULL,
00075   /* 0x01 */ CcBuildAircraft,
00076   /* 0x02 */ CcBuildAirport,
00077   /* 0x03 */ CcBuildBridge,
00078   /* 0x04 */ CcBuildCanal,
00079   /* 0x05 */ CcBuildDocks,
00080   /* 0x06 */ CcBuildLoco,
00081   /* 0x07 */ CcBuildRoadVeh,
00082   /* 0x08 */ CcBuildShip,
00083   /* 0x09 */ CcFoundTown,
00084   /* 0x0A */ CcBuildRoadTunnel,
00085   /* 0x0B */ CcBuildRailTunnel,
00086   /* 0x0C */ CcBuildWagon,
00087   /* 0x0D */ CcRoadDepot,
00088   /* 0x0E */ CcRailDepot,
00089   /* 0x0F */ CcPlaceSign,
00090   /* 0x10 */ CcPlaySound10,
00091   /* 0x11 */ CcPlaySound1D,
00092   /* 0x12 */ CcPlaySound1E,
00093   /* 0x13 */ CcStation,
00094   /* 0x14 */ CcTerraform,
00095   /* 0x15 */ CcAI,
00096   /* 0x16 */ CcCloneVehicle,
00097   /* 0x17 */ CcGiveMoney,
00098   /* 0x18 */ CcCreateGroup,
00099   /* 0x19 */ CcFoundRandomTown,
00100 };
00101 
00102 const int _callback_table_count = lengthof(_callback_table);

Generated on Sat Dec 26 20:05:59 2009 for OpenTTD by  doxygen 1.5.6