#include "AppHdr.h"#include "colour.h"#include "areas.h"#include "cloud.h"#include "dgn-height.h"#include "env.h"#include "libutil.h"#include "options.h"#include "player.h"#include "random.h"#include <utility>#include <math.h>

Classes | |
| struct | random_element_colour_calc |
Typedefs | |
| typedef std::vector< std::pair < int, int > > | random_colour_map |
| typedef int(* | randomized_element_colour_calculator )(int, const coord_def &, random_colour_map) |
Functions | |
| uint8_t | random_colour (void) |
| uint8_t | random_uncommon_colour () |
| bool | is_low_colour (uint8_t colour) |
| bool | is_high_colour (uint8_t colour) |
| uint8_t | make_low_colour (uint8_t colour) |
| uint8_t | make_high_colour (uint8_t colour) |
| bool | is_element_colour (int col) |
| void | add_element_colour (element_colour_calc *colour) |
| void | init_element_colours () |
| void | clear_colours_on_exit () |
| int | element_colour (int element, bool no_random, const coord_def &loc) |
| const std::string | colour_to_str (uint8_t colour) |
| int | str_to_colour (const std::string &str, int default_colour, bool accept_number) |
| unsigned | real_colour (unsigned raw_colour, const coord_def &loc) |
Variables | |
| const std::string | cols [16] |
| typedef std::vector< std::pair<int, int> > random_colour_map |
| typedef int(* randomized_element_colour_calculator)(int, const coord_def &, random_colour_map) |
| void add_element_colour | ( | element_colour_calc * | colour | ) |
| void clear_colours_on_exit | ( | ) |
| const std::string colour_to_str | ( | uint8_t | colour | ) |
| int element_colour | ( | int | element, | |
| bool | no_random, | |||
| const coord_def & | loc | |||
| ) |

| void init_element_colours | ( | ) |

| bool is_element_colour | ( | int | col | ) |
| bool is_high_colour | ( | uint8_t | colour | ) |
| bool is_low_colour | ( | uint8_t | colour | ) |
| uint8_t make_high_colour | ( | uint8_t | colour | ) |

| uint8_t make_low_colour | ( | uint8_t | colour | ) |

| uint8_t random_colour | ( | void | ) |

| uint8_t random_uncommon_colour | ( | ) |

| unsigned real_colour | ( | unsigned | raw_colour, | |
| const coord_def & | loc | |||
| ) |

| int str_to_colour | ( | const std::string & | str, | |
| int | default_colour, | |||
| bool | accept_number | |||
| ) |
| const std::string cols[16] |
Initial value:
{
"black", "blue", "green", "cyan", "red", "magenta", "brown",
"lightgrey", "darkgrey", "lightblue", "lightgreen", "lightcyan",
"lightred", "lightmagenta", "yellow", "white"
}
1.5.6