tron@2186: /* $Id$ */ tron@2186: rubidium@9111: /** @file callback_table.cpp All command callbacks. */ belugas@6123: truelight@543: #include "stdafx.h" Darkvater@1891: #include "openttd.h" tron@2762: #include "callback_table.h" truelight@543: belugas@6123: /* If you add a callback for DoCommandP, also add the callback in here belugas@6123: * see below for the full list! belugas@6123: * If you don't do it, it won't work across the network!! */ truelight@543: belugas@6123: /* aircraft_gui.cpp */ truelight@543: CommandCallback CcBuildAircraft; truelight@543: belugas@6123: /* airport_gui.cpp */ truelight@543: CommandCallback CcBuildAirport; truelight@543: belugas@6123: /* bridge_gui.cpp */ truelight@543: CommandCallback CcBuildBridge; truelight@543: belugas@6123: /* dock_gui.cpp */ truelight@543: CommandCallback CcBuildDocks; truelight@543: CommandCallback CcBuildCanal; truelight@543: belugas@6123: /* depot_gui.cpp */ peter1138@4689: CommandCallback CcCloneVehicle; peter1138@4689: belugas@6123: /* main_gui.cpp */ truelight@543: CommandCallback CcPlaySound10; truelight@543: CommandCallback CcPlaceSign; truelight@543: CommandCallback CcTerraform; truelight@543: CommandCallback CcBuildTown; rubidium@6847: CommandCallback CcGiveMoney; truelight@543: belugas@6123: /* rail_gui.cpp */ truelight@543: CommandCallback CcPlaySound1E; truelight@543: CommandCallback CcRailDepot; truelight@543: CommandCallback CcStation; truelight@543: CommandCallback CcBuildRailTunnel; truelight@543: belugas@6123: /* road_gui.cpp */ truelight@543: CommandCallback CcPlaySound1D; truelight@543: CommandCallback CcBuildRoadTunnel; truelight@543: CommandCallback CcRoadDepot; truelight@543: belugas@6123: /* roadveh_gui.cpp */ truelight@543: CommandCallback CcBuildRoadVeh; truelight@543: belugas@6123: /* ship_gui.cpp */ truelight@543: CommandCallback CcBuildShip; truelight@543: belugas@6123: /* train_gui.cpp */ truelight@543: CommandCallback CcBuildWagon; truelight@543: CommandCallback CcBuildLoco; truelight@543: tron@3946: CommandCallback CcAI; tron@3946: truelight@543: CommandCallback *_callback_table[] = { truelight@543: /* 0x00 */ NULL, truelight@543: /* 0x01 */ CcBuildAircraft, truelight@543: /* 0x02 */ CcBuildAirport, truelight@543: /* 0x03 */ CcBuildBridge, truelight@543: /* 0x04 */ CcBuildCanal, truelight@543: /* 0x05 */ CcBuildDocks, truelight@543: /* 0x06 */ CcBuildLoco, truelight@543: /* 0x07 */ CcBuildRoadVeh, truelight@543: /* 0x08 */ CcBuildShip, truelight@543: /* 0x09 */ CcBuildTown, truelight@543: /* 0x0A */ CcBuildRoadTunnel, truelight@543: /* 0x0B */ CcBuildRailTunnel, truelight@543: /* 0x0C */ CcBuildWagon, truelight@543: /* 0x0D */ CcRoadDepot, truelight@543: /* 0x0E */ CcRailDepot, truelight@543: /* 0x0F */ CcPlaceSign, truelight@543: /* 0x10 */ CcPlaySound10, truelight@543: /* 0x11 */ CcPlaySound1D, truelight@543: /* 0x12 */ CcPlaySound1E, truelight@543: /* 0x13 */ CcStation, bjarni@2244: /* 0x14 */ CcTerraform, rubidium@7478: /* 0x15 */ CcAI, rubidium@7478: /* 0x16 */ CcCloneVehicle, rubidium@7478: /* 0x17 */ CcGiveMoney, truelight@543: }; truelight@543: tron@1568: const int _callback_table_count = lengthof(_callback_table);