(svn r19191) -Codechange: move AirportTileSpec to newgrf_airporttiles.h

This commit is contained in:
yexo
2010-02-22 14:09:30 +00:00
parent 5052777d0b
commit 40f6e69ae9
6 changed files with 19 additions and 24 deletions

View File

@@ -18,7 +18,6 @@
#include "settings_type.h"
#include "table/airporttile_ids.h"
#include "table/airport_defaults.h"
#include "table/airporttiles.h"
AirportSpec AirportSpec::dummy = {NULL, NULL, 0, 0, 0, 0, 0, MIN_YEAR, MIN_YEAR};
AirportSpec AirportSpec::oilrig = {NULL, NULL, 0, 1, 1, 0, 4, MIN_YEAR, MIN_YEAR};
@@ -37,18 +36,6 @@ AirportSpec AirportSpec::oilrig = {NULL, NULL, 0, 1, 1, 0, 4, MIN_YEAR, MIN_YEAR
return &_origin_airport_specs[type];
}
/**
* Retrieve airport tile spec for the given airport tile
* @param gfx index of airport tile
* @return A pointer to the corresponding AirportTileSpec
*/
/* static */ const AirportTileSpec *AirportTileSpec::Get(StationGfx gfx)
{
assert(gfx < NUM_AIRPORTTILES);
extern const AirportTileSpec _origin_airporttile_specs[];
return &_origin_airporttile_specs[gfx];
}
/* Uncomment this to print out a full report of the airport-structure
* You should either use
* - true: full-report, print out every state and choice with string-names