1 /***************************************************************************
2  *   Free Heroes of Might and Magic II: https://github.com/ihhub/fheroes2  *
3  *   Copyright (C) 2020                                                    *
4  *                                                                         *
5  *   This program is free software; you can redistribute it and/or modify  *
6  *   it under the terms of the GNU General Public License as published by  *
7  *   the Free Software Foundation; either version 2 of the License, or     *
8  *   (at your option) any later version.                                   *
9  *                                                                         *
10  *   This program is distributed in the hope that it will be useful,       *
11  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
12  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
13  *   GNU General Public License for more details.                          *
14  *                                                                         *
15  *   You should have received a copy of the GNU General Public License     *
16  *   along with this program; if not, write to the                         *
17  *   Free Software Foundation, Inc.,                                       *
18  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
19  ***************************************************************************/
20 #ifndef H2PAL_H
21 #define H2PAL_H
22 
23 #include <cstdint>
24 #include <vector>
25 
26 namespace PAL
27 {
28     enum class PaletteType : int
29     {
30         STANDARD, // default
31         YELLOW_TEXT,
32         WHITE_TEXT,
33         GRAY_TEXT,
34         RED, // blood lust, ...
35         GRAY, // petrify, ...
36         BROWN,
37         TAN, // puzzle
38         NO_CYCLE,
39         MIRROR_IMAGE,
40         DARKENING, // for disabled buttons
41         CUSTOM
42     };
43 
44     std::vector<uint8_t> GetCyclingPalette( int stepId );
45     const std::vector<uint8_t> & GetPalette( const PaletteType type );
46     std::vector<uint8_t> CombinePalettes( const std::vector<uint8_t> & first, const std::vector<uint8_t> & second );
47 }
48 
49 #endif
50