colour.cc File Reference

#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>

Include dependency graph for colour.cc:


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 Documentation

typedef std::vector< std::pair<int, int> > random_colour_map


Function Documentation

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 
)

Here is the call graph for this function:

void init_element_colours (  ) 

Here is the call graph for this function:

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  ) 

Here is the call graph for this function:

uint8_t make_low_colour ( uint8_t  colour  ) 

Here is the call graph for this function:

uint8_t random_colour ( void   ) 

Here is the call graph for this function:

uint8_t random_uncommon_colour (  ) 

Here is the call graph for this function:

unsigned real_colour ( unsigned  raw_colour,
const coord_def loc 
)

Here is the call graph for this function:

int str_to_colour ( const std::string str,
int  default_colour,
bool  accept_number 
)


Variable Documentation

const std::string cols[16]

Initial value:

{
    "black", "blue", "green", "cyan", "red", "magenta", "brown",
    "lightgrey", "darkgrey", "lightblue", "lightgreen", "lightcyan",
    "lightred", "lightmagenta", "yellow", "white"
}


Generated on Thu Jan 13 13:03:35 2011 by  doxygen 1.5.6