2 * This file is part of OpenTTD.
3 * 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.
4 * 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.
5 * 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/>.
8 /** @file livery.h Functions/types related to livery colours. */
13 #include "company_type.h"
16 static const byte LIT_NONE
= 0; ///< Don't show the liveries at all
17 static const byte LIT_COMPANY
= 1; ///< Show the liveries of your own company
18 static const byte LIT_ALL
= 2; ///< Show the liveries of all companies
20 /** List of different livery schemes. */
21 enum LiveryScheme
: byte
{
33 LS_PASSENGER_WAGON_STEAM
,
34 LS_PASSENGER_WAGON_DIESEL
,
35 LS_PASSENGER_WAGON_ELECTRIC
,
36 LS_PASSENGER_WAGON_MONORAIL
,
37 LS_PASSENGER_WAGON_MAGLEV
,
53 /* Trams (appear on Road Vehicles tab) */
60 DECLARE_POSTFIX_INCREMENT(LiveryScheme
)
62 /** List of different livery classes, used only by the livery GUI. */
63 enum LiveryClass
: byte
{
75 DECLARE_ENUM_AS_ADDABLE(LiveryClass
)
77 /** Information about a particular livery. */
79 byte in_use
; ///< Bit 0 set if this livery should override the default livery first colour, Bit 1 for the second colour.
80 Colours colour1
; ///< First colour, for all vehicles.
81 Colours colour2
; ///< Second colour, for vehicles with 2CC support.
84 void ResetCompanyLivery(Company
*c
);