callback_table.cpp
Go to the documentation of this file.00001
00002
00005 #include "stdafx.h"
00006 #include "callback_table.h"
00007 #include "command_type.h"
00008
00009
00010
00011
00012
00013
00014 CommandCallback CcBuildAircraft;
00015
00016
00017 CommandCallback CcBuildAirport;
00018
00019
00020 CommandCallback CcBuildBridge;
00021
00022
00023 CommandCallback CcBuildDocks;
00024 CommandCallback CcBuildCanal;
00025
00026
00027 CommandCallback CcCloneVehicle;
00028
00029
00030 CommandCallback CcPlaySound10;
00031 CommandCallback CcPlaceSign;
00032 CommandCallback CcTerraform;
00033 CommandCallback CcBuildTown;
00034 CommandCallback CcGiveMoney;
00035
00036
00037 CommandCallback CcPlaySound1E;
00038 CommandCallback CcRailDepot;
00039 CommandCallback CcStation;
00040 CommandCallback CcBuildRailTunnel;
00041
00042
00043 CommandCallback CcPlaySound1D;
00044 CommandCallback CcBuildRoadTunnel;
00045 CommandCallback CcRoadDepot;
00046
00047
00048 CommandCallback CcBuildRoadVeh;
00049
00050
00051 CommandCallback CcBuildShip;
00052
00053
00054 CommandCallback CcBuildWagon;
00055 CommandCallback CcBuildLoco;
00056
00057
00058 CommandCallback CcAI;
00059
00060 CommandCallback *_callback_table[] = {
00061 NULL,
00062 CcBuildAircraft,
00063 CcBuildAirport,
00064 CcBuildBridge,
00065 CcBuildCanal,
00066 CcBuildDocks,
00067 CcBuildLoco,
00068 CcBuildRoadVeh,
00069 CcBuildShip,
00070 CcBuildTown,
00071 CcBuildRoadTunnel,
00072 CcBuildRailTunnel,
00073 CcBuildWagon,
00074 CcRoadDepot,
00075 CcRailDepot,
00076 CcPlaceSign,
00077 CcPlaySound10,
00078 CcPlaySound1D,
00079 CcPlaySound1E,
00080 CcStation,
00081 CcTerraform,
00082 CcAI,
00083 CcCloneVehicle,
00084 CcGiveMoney,
00085 };
00086
00087 const int _callback_table_count = lengthof(_callback_table);