# livery.h

Go to the documentation of this file.

    00001 /* $Id: livery.h 11874 2008-01-16 11:25:15Z rubidium $ */
    00002
    00005 #ifndef LIVERY_H
    00006 #define LIVERY_H
    00007
    00008 #include "player_type.h"
    00009
    00010 /* List of different livery schemes. */
    00011 enum LiveryScheme {
    00012   LS_BEGIN = 0,
    00013   LS_DEFAULT = 0,
    00014
    00015   /* Rail vehicles */
    00016   LS_STEAM,
    00017   LS_DIESEL,
    00018   LS_ELECTRIC,
    00019   LS_MONORAIL,
    00020   LS_MAGLEV,
    00021   LS_DMU,
    00022   LS_EMU,
    00023   LS_PASSENGER_WAGON_STEAM,
    00024   LS_PASSENGER_WAGON_DIESEL,
    00025   LS_PASSENGER_WAGON_ELECTRIC,
    00026   LS_PASSENGER_WAGON_MONORAIL,
    00027   LS_PASSENGER_WAGON_MAGLEV,
    00028   LS_FREIGHT_WAGON,
    00029
    00030   /* Road vehicles */
    00031   LS_BUS,
    00032   LS_TRUCK,
    00033
    00034   /* Ships */
    00035   LS_PASSENGER_SHIP,
    00036   LS_FREIGHT_SHIP,
    00037
    00038   /* Aircraft */
    00039   LS_HELICOPTER,
    00040   LS_SMALL_PLANE,
    00041   LS_LARGE_PLANE,
    00042
    00043   /* Trams (appear on Road Vehicles tab) */
    00044   LS_PASSENGER_TRAM,
    00045   LS_FREIGHT_TRAM,
    00046
    00047   LS_END
    00048 };
    00049
    00050 DECLARE_POSTFIX_INCREMENT(LiveryScheme);
    00051
    00052 /* List of different livery classes, used only by the livery GUI. */
    00053 enum LiveryClass {
    00054   LC_OTHER,
    00055   LC_RAIL,
    00056   LC_ROAD,
    00057   LC_SHIP,
    00058   LC_AIRCRAFT,
    00059   LC_END
    00060 };
    00061
    00062
    00063 struct Livery {
    00064   bool in_use;
    00065   byte colour1;
    00066   byte colour2;
    00067 };
    00068
    00074 void ResetPlayerLivery(Player *p);
    00075
    00076 #endif /* LIVERY_H */