#include <image.hpp>
Public Types | |
enum | type { NONE, FILE, SUB_FILE } |
Public Member Functions | |
locator () | |
locator (const locator &a, const std::string &mods="") | |
locator (const char *filename) | |
locator (const char *filename, const std::string &modifications) | |
locator (const std::string &filename) | |
locator (const std::string &filename, const std::string &modifications) | |
locator (const std::string &filename, const gamemap::location &loc, const std::string &modifications="") | |
locator (const std::string &filename, const gamemap::location &loc, int center_x, int center_y, const std::string &modifications="") | |
locator & | operator= (const locator &a) |
bool | operator== (const locator &a) const |
bool | operator!= (const locator &a) const |
bool | operator< (const locator &a) const |
const std::string & | get_filename () const |
const gamemap::location & | get_loc () const |
const std::string & | get_modifications () const |
type | get_type () const |
bool | is_void () const |
surface | load_from_disk () const |
bool | in_cache (const std::vector< cache_item< surface > > &cache) const |
surface | locate_in_cache (const std::vector< cache_item< surface > > &cache) const |
void | add_to_cache (std::vector< cache_item< surface > > &cache, const surface &image) const |
bool | in_cache (const std::vector< cache_item< locator > > &cache) const |
locator | locate_in_cache (const std::vector< cache_item< locator > > &cache) const |
void | add_to_cache (std::vector< cache_item< locator > > &cache, const locator &image) const |
Static Protected Attributes | |
static int | last_index_ = 0 |
Private Member Functions | |
void | init_index () |
void | parse_arguments () |
surface | load_image_file () const |
surface | load_image_sub_file () const |
Private Attributes | |
int | index_ |
value | val_ |
Classes | |
struct | value |
Definition at line 52 of file image.hpp.
enum image::locator::type |
image::locator::locator | ( | ) |
image::locator::locator | ( | const locator & | a, | |
const std::string & | mods = "" | |||
) |
Definition at line 146 of file image.cpp.
References index_, init_index(), image::locator::value::modifications_, SUB_FILE, image::locator::value::type_, and val_.
image::locator::locator | ( | const char * | filename | ) |
image::locator::locator | ( | const char * | filename, | |
const std::string & | modifications | |||
) |
image::locator::locator | ( | const std::string & | filename | ) |
image::locator::locator | ( | const std::string & | filename, | |
const std::string & | modifications | |||
) |
image::locator::locator | ( | const std::string & | filename, | |
const gamemap::location & | loc, | |||
const std::string & | modifications = "" | |||
) |
image::locator::locator | ( | const std::string & | filename, | |
const gamemap::location & | loc, | |||
int | center_x, | |||
int | center_y, | |||
const std::string & | modifications = "" | |||
) |
void image::locator::init_index | ( | ) | [private] |
Definition at line 105 of file image.cpp.
References brightened_images_, hexed_images_, images_, index_, last_index_, locator_finder, scaled_to_hex_images_, scaled_to_zoom_, semi_brightened_images_, unmasked_images_, and val_.
Referenced by locator().
void image::locator::parse_arguments | ( | ) | [private] |
Definition at line 126 of file image.cpp.
References image::locator::value::filename_, image::locator::value::modifications_, SUB_FILE, image::locator::value::type_, and val_.
Referenced by locator().
bool image::locator::operator== | ( | const locator & | a | ) | const [inline] |
bool image::locator::operator!= | ( | const locator & | a | ) | const [inline] |
bool image::locator::operator< | ( | const locator & | a | ) | const [inline] |
const std::string& image::locator::get_filename | ( | ) | const [inline] |
Definition at line 101 of file image.hpp.
References image::locator::value::filename_, and val_.
Referenced by image::exists(), display::get_terrain_images(), unit_frame::invalidate(), unit_frame::merge_parameters(), unit_frame::redraw(), and unit::redraw_unit().
const gamemap::location& image::locator::get_loc | ( | ) | const [inline] |
const std::string& image::locator::get_modifications | ( | ) | const [inline] |
Definition at line 103 of file image.hpp.
References image::locator::value::modifications_, and val_.
type image::locator::get_type | ( | ) | const [inline] |
Definition at line 104 of file image.hpp.
References image::locator::value::type_, and val_.
Referenced by image::exists().
bool image::locator::is_void | ( | ) | const [inline] |
Definition at line 109 of file image.hpp.
References NONE, image::locator::value::type_, and val_.
Referenced by image::get_image(), unit_frame::invalidate(), unit_frame::merge_parameters(), unit_frame::redraw(), and unit::redraw_unit().
surface image::locator::load_from_disk | ( | ) | const |
Definition at line 422 of file image.cpp.
References FILE, load_image_file(), load_image_sub_file(), SUB_FILE, image::locator::value::type_, and val_.
Referenced by image::get_image().
bool image::locator::in_cache | ( | const std::vector< cache_item< surface > > & | cache | ) | const [inline] |
surface image::locator::locate_in_cache | ( | const std::vector< cache_item< surface > > & | cache | ) | const [inline] |
void image::locator::add_to_cache | ( | std::vector< cache_item< surface > > & | cache, | |
const surface & | image | |||
) | const [inline] |
bool image::locator::in_cache | ( | const std::vector< cache_item< locator > > & | cache | ) | const [inline] |
locator image::locator::locate_in_cache | ( | const std::vector< cache_item< locator > > & | cache | ) | const [inline] |
void image::locator::add_to_cache | ( | std::vector< cache_item< locator > > & | cache, | |
const locator & | image | |||
) | const [inline] |
surface image::locator::load_image_file | ( | ) | const [private] |
Definition at line 281 of file image.cpp.
References ERR_DP, image::locator::value::filename_, get_binary_file_location(), surface::null(), and val_.
Referenced by load_from_disk().
surface image::locator::load_image_sub_file | ( | ) | const [private] |
Definition at line 308 of file image.cpp.
References image::locator::value::center_x_, image::locator::value::center_y_, game_config::color_info(), cut_surface(), ERR_DP, image::locator::value::filename_, flip_surface(), flop_surface(), image::get_image(), lexical_cast(), image::locator::value::loc_, mask_surface(), config::error::message, image::locator::value::modifications_, utils::paranthetical_split(), recolor_image(), recolor_range(), utils::split(), game_config::tc_info(), team_colors, game_config::terrain_mask_image, image::tile_size, image::UNSCALED, val_, gamemap::location::x, and gamemap::location::y.
Referenced by load_from_disk().
int image::locator::last_index_ = 0 [static, protected] |
int image::locator::index_ [private] |
Definition at line 145 of file image.hpp.
Referenced by add_to_cache(), in_cache(), init_index(), locate_in_cache(), locator(), operator!=(), operator<(), operator=(), and operator==().
value image::locator::val_ [private] |
Definition at line 146 of file image.hpp.
Referenced by get_filename(), get_loc(), get_modifications(), get_type(), init_index(), is_void(), load_from_disk(), load_image_file(), load_image_sub_file(), locator(), operator=(), and parse_arguments().
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |