livery.h

Go to the documentation of this file.
00001 /* $Id: livery.h 17248 2009-08-21 20:21:05Z 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 
00059 /* List of different livery classes, used only by the livery GUI. */
00060 enum LiveryClass {
00061   LC_OTHER,
00062   LC_RAIL,
00063   LC_ROAD,
00064   LC_SHIP,
00065   LC_AIRCRAFT,
00066   LC_END
00067 };
00068 
00069 
00070 struct Livery {
00071   bool in_use;  
00072   byte colour1; 
00073   byte colour2; 
00074 };
00075 
00081 void ResetCompanyLivery(Company *c);
00082 
00083 #endif /* LIVERY_H */

Generated on Tue Jan 5 21:02:54 2010 for OpenTTD by  doxygen 1.5.6