Vga_file Class Reference

#include <vgafile.h>

Inheritance diagram for Vga_file:

Inheritance graph
[legend]
Collaboration diagram for Vga_file:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Vga_file (const char *nm, int u7drag=-1, const char *nm2=0)
 Vga_file ()
int get_u7drag_type () const
void load (const char *nm, const char *nm2=0)
void reset ()
virtual ~Vga_file ()
int get_num_shapes () const
int is_good () const
bool is_flex () const
Shape_frameget_shape (int shapenum, int framenum=0)
Shapeextract_shape (int shapenum)
int get_num_frames (int shapenum)
Shapenew_shape (int shapenum)

Protected Attributes

int num_shapes
int num_shapes1
int num_shapes2
Shapeshapes

Private Attributes

std::ifstream file
DataSourceshape_source
std::ifstream file2
DataSourceshape_source2
int u7drag_type
bool flex

Detailed Description

Definition at line 219 of file vgafile.h.


Constructor & Destructor Documentation

Vga_file::Vga_file ( const char *  nm,
int  u7drag = -1,
const char *  nm2 = 0 
)

Definition at line 1210 of file vgafile.cc.

Vga_file::Vga_file (  ) 

Definition at line 1222 of file vgafile.cc.

Vga_file::~Vga_file (  )  [virtual]

Definition at line 1301 of file vgafile.cc.

References reset().

Here is the call graph for this function:


Member Function Documentation

int Vga_file::get_u7drag_type (  )  const [inline]

Definition at line 239 of file vgafile.h.

References u7drag_type.

Referenced by Shape_chooser::drag_data_get().

void Vga_file::load ( const char *  nm,
const char *  nm2 = 0 
)

Definition at line 1236 of file vgafile.cc.

References file, get_system_path(), Flex::is_flex(), DataSource::read4(), DataSource::seek(), U7exists(), and U7open().

Referenced by ExultMenu::ExultMenu(), Game::Game(), and Shapes_vga_file::init().

Here is the call graph for this function:

void Vga_file::reset (  ) 

Definition at line 1280 of file vgafile.cc.

References file, file2, num_shapes, num_shapes1, num_shapes2, shape_source, shape_source2, and shapes.

Referenced by ~Vga_file().

int Vga_file::get_num_shapes (  )  const [inline]

Definition at line 244 of file vgafile.h.

References num_shapes, and num_shapes2.

Referenced by ShapeBrowser::browse_shapes(), Extract(), Game_map::find_unused_shapes(), CheatScreen::FlagActivate(), Shape_chooser::new_shape(), and CheatScreen::NPCActivate().

int Vga_file::is_good (  )  const [inline]

Definition at line 246 of file vgafile.h.

References shapes.

Referenced by Shape_file_set::create(), and ShapeID::get_num_frames().

bool Vga_file::is_flex (  )  const [inline]

Definition at line 248 of file vgafile.h.

References flex.

Referenced by Shape_chooser::del_frame().

Shape_frame* Vga_file::get_shape ( int  shapenum,
int  framenum = 0 
) [inline]

Definition at line 251 of file vgafile.h.

References Shape::get(), num_shapes1, num_shapes2, shape_source, shape_source2, and shapes.

Referenced by ShapeBrowser::browse_shapes(), ShapeID::cache_shape(), Shape_chooser::drag_begin(), Combo_chooser::drag_begin(), Shape_chooser::export_png(), extract_shape(), get_num_frames(), SI_Game::new_game(), BG_Game::new_game(), Shape_chooser::next_row(), ExultStudio::open_shape_window(), Shape_chooser::render(), ExultMenu::run(), ExultStudio::save_shape_window(), BG_Game::scene_butterfly(), BG_Game::scene_desk(), BG_Game::scene_guardian(), BG_Game::scene_lord_british(), BG_Game::scene_moongate(), ExultMenu::setup(), SI_Game::show_journey_failed(), BG_Game::show_journey_failed(), Game::show_menu(), SI_Game::top_menu(), and BG_Game::top_menu().

Here is the call graph for this function:

Shape* Vga_file::extract_shape ( int  shapenum  )  [inline]

Definition at line 273 of file vgafile.h.

References get_num_frames(), get_shape(), and shapes.

Referenced by Shape_chooser::del_frame(), Extract(), Import_png(), Import_png_tiles(), Shape_chooser::new_frame(), Shape_chooser::render_frames(), ExultMenu::run(), Shape_chooser::scroll_to_frame(), SI_Game::show_credits(), BG_Game::show_credits(), SI_Game::show_quotes(), and BG_Game::show_quotes().

Here is the call graph for this function:

int Vga_file::get_num_frames ( int  shapenum  )  [inline]

Definition at line 283 of file vgafile.h.

References get_shape(), Shape::num_frames, and shapes.

Referenced by ShapeBrowser::browse_shapes(), Shape_chooser::create_new_shape(), extract_shape(), Shape_chooser::frame_changed(), ShapeID::get_num_frames(), Shape_chooser::new_shape(), Shape_chooser::on_shapes_popup_edtiles_activate(), ExultStudio::open_shape_window(), and Shape_chooser::select().

Here is the call graph for this function:

Shape * Vga_file::new_shape ( int  shapenum  ) 

Definition at line 1313 of file vgafile.cc.

Referenced by Shape_chooser::create_new_shape().


Member Data Documentation

std::ifstream Vga_file::file [private]

Definition at line 221 of file vgafile.h.

Referenced by reset().

DataSource* Vga_file::shape_source [private]

Definition at line 222 of file vgafile.h.

Referenced by get_shape(), and reset().

std::ifstream Vga_file::file2 [private]

Definition at line 223 of file vgafile.h.

Referenced by reset().

DataSource* Vga_file::shape_source2 [private]

Definition at line 224 of file vgafile.h.

Referenced by get_shape(), and reset().

int Vga_file::u7drag_type [private]

Definition at line 225 of file vgafile.h.

Referenced by get_u7drag_type().

bool Vga_file::flex [private]

Definition at line 226 of file vgafile.h.

Referenced by is_flex().

int Vga_file::num_shapes [protected]

Definition at line 232 of file vgafile.h.

Referenced by get_num_shapes(), Shapes_vga_file::init(), Shapes_vga_file::read_info(), reset(), and Shapes_vga_file::Shapes_vga_file().

int Vga_file::num_shapes1 [protected]

Definition at line 233 of file vgafile.h.

Referenced by get_shape(), and reset().

int Vga_file::num_shapes2 [protected]

Definition at line 234 of file vgafile.h.

Referenced by get_num_shapes(), get_shape(), and reset().

Shape* Vga_file::shapes [protected]

Definition at line 235 of file vgafile.h.

Referenced by extract_shape(), Shape::get(), get_num_frames(), get_shape(), is_good(), and reset().


The documentation for this class was generated from the following files:
Generated on Mon Jul 9 15:05:41 2007 for ExultEngine by  doxygen 1.5.1