livery.h

Go to the documentation of this file.
00001 /* $Id: livery.h 19665 2010-04-17 22:27:49Z rubidium $ */
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 LIVERY_H
00013 #define LIVERY_H
00014 
00015 #include "company_type.h"
00016 
00017 /* List of different livery schemes. */
00018 enum LiveryScheme {
00019   LS_BEGIN = 0,
00020   LS_DEFAULT = 0,
00021 
00022   /* Rail vehicles */
00023   LS_STEAM,
00024   LS_DIESEL,
00025   LS_ELECTRIC,
00026   LS_MONORAIL,
00027   LS_MAGLEV,
00028   LS_DMU,
00029   LS_EMU,
00030   LS_PASSENGER_WAGON_STEAM,
00031   LS_PASSENGER_WAGON_DIESEL,
00032   LS_PASSENGER_WAGON_ELECTRIC,
00033   LS_PASSENGER_WAGON_MONORAIL,
00034   LS_PASSENGER_WAGON_MAGLEV,
00035   LS_FREIGHT_WAGON,
00036 
00037   /* Road vehicles */
00038   LS_BUS,
00039   LS_TRUCK,
00040 
00041   /* Ships */
00042   LS_PASSENGER_SHIP,
00043   LS_FREIGHT_SHIP,
00044 
00045   /* Aircraft */
00046   LS_HELICOPTER,
00047   LS_SMALL_PLANE,
00048   LS_LARGE_PLANE,
00049 
00050   /* Trams (appear on Road Vehicles tab) */
00051   LS_PASSENGER_TRAM,
00052   LS_FREIGHT_TRAM,
00053 
00054   LS_END
00055 };
00056 
00057 DECLARE_POSTFIX_INCREMENT(LiveryScheme);
00058 template <> struct EnumPropsT<LiveryScheme> : MakeEnumPropsT<LiveryScheme, byte, LS_BEGIN, LS_END, LS_END, 8> {};
00059 
00060 /* List of different livery classes, used only by the livery GUI. */
00061 enum LiveryClass {
00062   LC_OTHER,
00063   LC_RAIL,
00064   LC_ROAD,
00065   LC_SHIP,
00066   LC_AIRCRAFT,
00067   LC_END
00068 };
00069 
00070 
00071 struct Livery {
00072   bool in_use;  
00073   byte colour1; 
00074   byte colour2; 
00075 };
00076 
00082 void ResetCompanyLivery(Company *c);
00083 
00084 #endif /* LIVERY_H */

Generated on Sat Jul 17 18:43:18 2010 for OpenTTD by  doxygen 1.6.1