# airporttiles.h

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 #ifndef AIRPORTTILES_H
    00013 #define AIRPORTTILES_H
    00014
    00016 #define AT(num_frames, anim_speed) {{num_frames, ANIM_STATUS_LOOPING, anim_speed, 0}, STR_NULL, 0, 0, true, GRFFileProps(INVALID_AIRPORTTILE)}
    00017
    00018 #define AT_NOANIM {{0, ANIM_STATUS_NO_ANIMATION, 2, 0}, STR_NULL, 0, 0, true, GRFFileProps(INVALID_AIRPORTTILE)}
    00019
    00024 static const AirportTileSpec _origin_airporttile_specs[] = {
    00025   /* 0..9 */
    00026   AT_NOANIM,
    00027   AT_NOANIM,
    00028   AT_NOANIM,
    00029   AT_NOANIM,
    00030   AT_NOANIM,
    00031   AT_NOANIM,
    00032   AT_NOANIM,
    00033   AT_NOANIM,
    00034   AT_NOANIM,
    00035   AT_NOANIM,
    00036
    00037   AT_NOANIM,
    00038   AT_NOANIM,
    00039   AT_NOANIM,
    00040   AT_NOANIM,
    00041   AT_NOANIM,
    00042   AT_NOANIM,
    00043   AT_NOANIM,
    00044   AT_NOANIM,
    00045   AT_NOANIM,
    00046   AT_NOANIM,
    00047
    00048   AT_NOANIM,
    00049   AT_NOANIM,
    00050   AT_NOANIM,
    00051   AT_NOANIM,
    00052   AT_NOANIM,
    00053   AT_NOANIM,
    00054   AT_NOANIM,
    00055   AT_NOANIM,
    00056   AT_NOANIM,
    00057   AT_NOANIM,
    00058
    00059   AT_NOANIM,
    00060   AT(11, 2), // APT_RADAR_GRASS_FENCE_SW
    00061   AT_NOANIM,
    00062   AT_NOANIM,
    00063   AT_NOANIM,
    00064   AT_NOANIM,
    00065   AT_NOANIM,
    00066   AT_NOANIM,
    00067   AT_NOANIM,
    00068   AT(3, 1), // APT_GRASS_FENCE_NE_FLAG
    00069
    00070   AT_NOANIM,
    00071   AT_NOANIM,
    00072   AT_NOANIM,
    00073   AT_NOANIM,
    00074   AT_NOANIM,
    00075   AT_NOANIM,
    00076   AT_NOANIM,
    00077   AT_NOANIM,
    00078   AT_NOANIM,
    00079   AT_NOANIM,
    00080
    00081   AT_NOANIM,
    00082   AT(11, 2), // APT_RADAR_FENCE_SW
    00083   AT(11, 2), // APT_RADAR_FENCE_NE
    00084   AT_NOANIM,
    00085   AT_NOANIM,
    00086   AT_NOANIM,
    00087   AT_NOANIM,
    00088   AT_NOANIM,
    00089   AT_NOANIM,
    00090   AT_NOANIM,
    00091
    00092   AT_NOANIM,
    00093   AT_NOANIM,
    00094   AT_NOANIM,
    00095   AT_NOANIM,
    00096   AT_NOANIM,
    00097   AT_NOANIM,
    00098   AT_NOANIM,
    00099   AT_NOANIM,
    00100   AT_NOANIM,
    00101   AT_NOANIM,
    00102
    00103   AT_NOANIM,
    00104   AT_NOANIM,
    00105   AT_NOANIM,
    00106   AT(3, 1), // APT_GRASS_FENCE_NE_FLAG_2
    00107 };
    00108
    00109 assert_compile(NEW_AIRPORTTILE_OFFSET == lengthof(_origin_airporttile_specs));
    00110
    00111 #undef AT_NOANIM
    00112 #undef AT
    00113
    00114 #endif /* AIRPORTTILES_H */