#include <shapeid.h>
Inheritance diagram for Shape_manager:
Public Member Functions | |
Shape_manager () | |
~Shape_manager () | |
void | load () |
void | reload_shapes (int dragtype) |
Vga_file & | get_file (enum ShapeFile f) |
Shapes_vga_file & | get_shapes () |
Xform_palette & | get_xform (int i) |
bool | can_use_paperdolls () const |
bool | get_bg_paperdolls () const |
void | set_bg_paperdolls (bool p) |
bool | can_use_multiracial () const |
void | paint_shape (int xoff, int yoff, Shape_frame *shape, int translucent=0) |
void | paint_invisible (int xoff, int yoff, Shape_frame *shape) |
void | paint_outline (int xoff, int yoff, Shape_frame *shape, Pixel_colors pix) |
unsigned char | get_special_pixel (Pixel_colors pix) |
int | paint_text_box (int fontnum, const char *text, int x, int y, int w, int h, int vert_lead=0, int pbreak=0, int shading=-1) |
int | paint_text (int fontnum, const char *text, int xoff, int yoff) |
int | paint_text (int fontnum, const char *text, int textlen, int xoff, int yoff) |
int | get_text_width (int fontnum, const char *text) |
int | get_text_width (int fontnum, const char *text, int textlen) |
int | get_text_height (int fontnum) |
int | get_text_baseline (int fontnum) |
Font * | get_font (int fontnum) |
Static Public Member Functions | |
static Shape_manager * | get_instance () |
Private Attributes | |
Shapes_vga_file | shapes |
Vga_file | files [(int) SF_COUNT] |
Fonts_vga_file * | fonts |
Xform_palette | xforms [11] |
Xform_palette * | invis_xform |
unsigned char | special_pixels [NPIXCOLORS] |
bool | bg_paperdolls_allowed |
bool | bg_paperdolls |
bool | bg_multiracial_allowed |
Static Private Attributes | |
static Shape_manager * | instance |
Friends | |
class | ShapeID |
Definition at line 56 of file shapeid.h.
Shape_manager::Shape_manager | ( | ) |
Definition at line 74 of file shapeid.cc.
References config, Configuration::set(), and Configuration::value().
Here is the call graph for this function:
Shape_manager::~Shape_manager | ( | ) |
static Shape_manager* Shape_manager::get_instance | ( | ) | [inline, static] |
Definition at line 75 of file shapeid.h.
References instance.
Referenced by ShapeBrowser::browse_shapes(), Effects_manager::center_text(), Cheat::change_skin(), Game_map::find_unused_shapes(), CheatScreen::FlagActivate(), Game_singletons::init(), CheatScreen::NormalActivate(), CheatScreen::NormalMenu(), CheatScreen::NPCActivate(), MenuChoice::paint(), MenuEntry::paint(), Paint_chunk_outline(), Game_render::paint_terrain_only(), ExultMenu::run(), Show_atts(), TextScroller::show_line(), and SoundTester::test_sound().
void Shape_manager::load | ( | ) |
Definition at line 92 of file shapeid.cc.
References Game_window::abort(), Palette::create_trans_table(), CURSED_PIXEL, FACES_VGA, Palette::find_color(), game, GAME_BG, Game::get_game_type(), Game_window::get_pal(), Game::get_resource(), GUMPS_VGA, gwin, HIT_PIXEL, len, Palette::load(), PALETTES_FLX, PAPERDOL, PATCH_FACES, PATCH_GUMPS, PATCH_PAPERDOL, PATCH_SPRITES, POISON_PIXEL, PROTECT_PIXEL, SERPENT_ISLE, SF_BG_SIGUMP_FLX, SF_BG_SISHAPES_VGA, SF_EXULT_FLX, SF_FACES_VGA, SF_GAME_FLX, SF_GUMPS_VGA, SF_PAPERDOL_VGA, SF_SPRITES_VGA, SPRITES_VGA, str_int_pair::str, U7exists(), and XFORMTBL.
Referenced by Game_window::init_files().
Here is the call graph for this function:
void Shape_manager::reload_shapes | ( | int | dragtype | ) |
Definition at line 200 of file shapeid.cc.
References FACES_VGA, GAME_BG, U7FileManager::get_ptr(), GUMPS_VGA, PAPERDOL, PATCH_FACES, PATCH_GUMPS, PATCH_PAPERDOL, PATCH_SPRITES, U7FileManager::reset(), SF_FACES_VGA, SF_GUMPS_VGA, SF_PAPERDOL_VGA, SF_SPRITES_VGA, SPRITES_VGA, U7_SHAPE_FACES, U7_SHAPE_FONTS, U7_SHAPE_GUMPS, U7_SHAPE_PAPERDOL, U7_SHAPE_SHAPES, and U7_SHAPE_SPRITES.
Here is the call graph for this function:
Shapes_vga_file& Shape_manager::get_shapes | ( | ) | [inline] |
Definition at line 81 of file shapeid.h.
References shapes.
Referenced by Game_map::find_unused_shapes(), CheatScreen::FlagActivate(), and CheatScreen::NPCActivate().
Xform_palette& Shape_manager::get_xform | ( | int | i | ) | [inline] |
Definition at line 83 of file shapeid.h.
References xforms.
Referenced by Game_render::paint_map(), and Game_render::paint_terrain_only().
bool Shape_manager::can_use_paperdolls | ( | ) | const [inline] |
Definition at line 86 of file shapeid.h.
References bg_paperdolls_allowed.
Referenced by Gump_manager::add_gump(), Actor::inventory_shapenum(), CheatScreen::NormalActivate(), CheatScreen::NormalMenu(), and GameplayOptions_gump::save_settings().
bool Shape_manager::get_bg_paperdolls | ( | ) | const [inline] |
Definition at line 89 of file shapeid.h.
References bg_paperdolls.
Referenced by Gump_manager::add_gump(), Actor::inventory_shapenum(), GameplayOptions_gump::load_settings(), CheatScreen::NormalActivate(), and CheatScreen::NormalMenu().
void Shape_manager::set_bg_paperdolls | ( | bool | p | ) | [inline] |
Definition at line 92 of file shapeid.h.
References bg_paperdolls.
Referenced by CheatScreen::NormalActivate(), and GameplayOptions_gump::save_settings().
bool Shape_manager::can_use_multiracial | ( | ) | const [inline] |
Definition at line 95 of file shapeid.h.
References bg_multiracial_allowed.
Referenced by Actor::set_actor_shape().
void Shape_manager::paint_shape | ( | int | xoff, | |
int | yoff, | |||
Shape_frame * | shape, | |||
int | translucent = 0 | |||
) | [inline] |
Definition at line 99 of file shapeid.h.
References CERR, Shape_frame::data, Shape_frame::paint(), Shape_frame::paint_rle(), Shape_frame::paint_rle_translucent(), Shape_frame::rle, ShapeID::shape, and xforms.
Referenced by ShapeBrowser::browse_shapes(), SI_Game::new_game(), BG_Game::new_game(), MenuChoice::paint(), MenuEntry::paint(), ShapeID::paint_shape(), SI_Game::play_intro(), Chunk_terrain::render_all(), ExultMenu::run(), BG_Game::scene_butterfly(), BG_Game::scene_desk(), BG_Game::scene_guardian(), BG_Game::scene_lord_british(), BG_Game::scene_moongate(), Show_atts(), Conversation::show_avatar_choices(), SI_Game::show_journey_failed(), BG_Game::show_journey_failed(), TextScroller::show_line(), SI_Game::top_menu(), and BG_Game::top_menu().
Here is the call graph for this function:
void Shape_manager::paint_invisible | ( | int | xoff, | |
int | yoff, | |||
Shape_frame * | shape | |||
) | [inline] |
Definition at line 113 of file shapeid.h.
References invis_xform, Shape_frame::paint_rle_transformed(), and ShapeID::shape.
Referenced by ShapeID::paint_invisible().
Here is the call graph for this function:
void Shape_manager::paint_outline | ( | int | xoff, | |
int | yoff, | |||
Shape_frame * | shape, | |||
Pixel_colors | pix | |||
) | [inline] |
Definition at line 119 of file shapeid.h.
References Shape_frame::paint_rle_outline(), ShapeID::shape, and special_pixels.
Referenced by Portrait_button::paint(), and ShapeID::paint_outline().
Here is the call graph for this function:
unsigned char Shape_manager::get_special_pixel | ( | Pixel_colors | pix | ) | [inline] |
Definition at line 125 of file shapeid.h.
References special_pixels.
Referenced by Game_render::paint_map(), and Game_render::paint_terrain_only().
int Shape_manager::paint_text_box | ( | int | fontnum, | |
const char * | text, | |||
int | x, | |||
int | y, | |||
int | w, | |||
int | h, | |||
int | vert_lead = 0 , |
|||
int | pbreak = 0 , |
|||
int | shading = -1 | |||
) |
Definition at line 246 of file shapeid.cc.
References Image_window::fill_translucent8(), fonts, Image_window8::get_ib8(), Game_window::get_win(), Game_singletons::gwin, Fonts_vga_file::paint_text_box(), and xforms.
Referenced by Conversation::show_avatar_choices(), and Conversation::show_npc_message().
Here is the call graph for this function:
int Shape_manager::paint_text | ( | int | fontnum, | |
const char * | text, | |||
int | xoff, | |||
int | yoff | |||
) |
Definition at line 256 of file shapeid.cc.
References fonts, Image_window8::get_ib8(), Game_window::get_win(), Game_singletons::gwin, and Fonts_vga_file::paint_text().
Referenced by VideoOptions_gump::paint(), Text_button::paint(), GameplayOptions_gump::paint(), CombatOptions_gump::paint(), AudioOptions_gump::paint(), Paint_chunk_outline(), Gump_manager::paint_num(), and Newfile_gump::PaintSaveName().
Here is the call graph for this function:
int Shape_manager::paint_text | ( | int | fontnum, | |
const char * | text, | |||
int | textlen, | |||
int | xoff, | |||
int | yoff | |||
) |
Definition at line 262 of file shapeid.cc.
References fonts, Image_window8::get_ib8(), Game_window::get_win(), Game_singletons::gwin, and Fonts_vga_file::paint_text().
Here is the call graph for this function:
int Shape_manager::get_text_width | ( | int | fontnum, | |
const char * | text | |||
) |
Definition at line 269 of file shapeid.cc.
References fonts, and Fonts_vga_file::get_text_width().
Referenced by Newfile_gump::AddCharacter(), Effects_manager::center_text(), Gump_manager::paint_num(), Newfile_gump::PaintSaveName(), and Conversation::show_avatar_choices().
Here is the call graph for this function:
int Shape_manager::get_text_width | ( | int | fontnum, | |
const char * | text, | |||
int | textlen | |||
) |
Definition at line 271 of file shapeid.cc.
References fonts, and Fonts_vga_file::get_text_width().
Here is the call graph for this function:
int Shape_manager::get_text_height | ( | int | fontnum | ) |
Definition at line 273 of file shapeid.cc.
References fonts, and Fonts_vga_file::get_text_height().
Referenced by Newfile_gump::PaintSaveName(), Conversation::show_avatar_choices(), and Conversation::show_face().
Here is the call graph for this function:
int Shape_manager::get_text_baseline | ( | int | fontnum | ) |
Definition at line 275 of file shapeid.cc.
References fonts, and Fonts_vga_file::get_text_baseline().
Here is the call graph for this function:
Font * Shape_manager::get_font | ( | int | fontnum | ) |
Definition at line 278 of file shapeid.cc.
References fonts, and Fonts_vga_file::get_font().
Referenced by Text_button::init(), and SoundTester::test_sound().
Here is the call graph for this function:
Shape_manager * Shape_manager::instance [static, private] |
Definition at line 58 of file shapeid.h.
Referenced by ShapeID::get_info(), get_instance(), and ~Shape_manager().
Shapes_vga_file Shape_manager::shapes [private] |
Definition at line 59 of file shapeid.h.
Referenced by ShapeID::cache_shape(), ShapeID::get_info(), ShapeID::get_num_frames(), and get_shapes().
Vga_file Shape_manager::files[(int) SF_COUNT] [private] |
Definition at line 60 of file shapeid.h.
Referenced by ShapeID::cache_shape(), get_file(), and ShapeID::get_num_frames().
Fonts_vga_file* Shape_manager::fonts [private] |
Definition at line 61 of file shapeid.h.
Referenced by get_font(), get_text_baseline(), get_text_height(), get_text_width(), paint_text(), paint_text_box(), and ~Shape_manager().
Xform_palette Shape_manager::xforms[11] [private] |
Definition at line 62 of file shapeid.h.
Referenced by get_xform(), paint_shape(), and paint_text_box().
Xform_palette* Shape_manager::invis_xform [private] |
unsigned char Shape_manager::special_pixels[NPIXCOLORS] [private] |
bool Shape_manager::bg_paperdolls_allowed [private] |
bool Shape_manager::bg_paperdolls [private] |
Definition at line 68 of file shapeid.h.
Referenced by get_bg_paperdolls(), and set_bg_paperdolls().
bool Shape_manager::bg_multiracial_allowed [private] |