Shape Class Reference

#include <vgafile.h>

Inheritance diagram for Shape:

Inheritance graph
[legend]
Collaboration diagram for Shape:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Shape ()
 Shape (Shape_frame *fr)
 Shape (int n)
virtual ~Shape ()
void reset ()
void take (Shape *s2)
void load (DataSource *shape_source)
void write (std::ostream &out)
Shape_frameget (DataSource *shapes, int shnum, int frnum, DataSource *shapes2=0, int count1=-1, int count2=-1)
int get_num_frames ()
Shape_frameget_frame (int framenum)
void resize (int newsize)
void set_frame (Shape_frame *f, int framenum)
void add_frame (Shape_frame *f, int framenum)
void del_frame (int framenum)

Protected Member Functions

Shape_framereflect (DataSource *shapes, int shnum, int frnum)
void enlarge (int newsize)
void create_frames_list (int nframes)
Shape_frameread (DataSource *shapes, int shnum, int frnum, DataSource *shapes2=0, int count1=-1, int count2=-1)
Shape_framestore_frame (Shape_frame *frame, int framenum)

Protected Attributes

Shape_frame ** frames
unsigned char frames_size
unsigned char num_frames

Friends

class Vga_file

Detailed Description

Definition at line 150 of file vgafile.h.


Constructor & Destructor Documentation

Shape::Shape (  )  [inline]

Definition at line 168 of file vgafile.h.

Shape::Shape ( Shape_frame fr  ) 

Definition at line 989 of file vgafile.cc.

References frames, and frames_size.

Shape::Shape ( int  n  ) 

Definition at line 1001 of file vgafile.cc.

Shape::~Shape (  )  [virtual]

Definition at line 1063 of file vgafile.cc.

References reset().

Here is the call graph for this function:


Member Function Documentation

Shape_frame * Shape::reflect ( DataSource shapes,
int  shnum,
int  frnum 
) [protected]

Definition at line 750 of file vgafile.cc.

References Shape_frame::reflect().

Here is the call graph for this function:

void Shape::enlarge ( int  newsize  )  [protected]

Definition at line 776 of file vgafile.cc.

void Shape::create_frames_list ( int  nframes  )  [inline, protected]

Definition at line 825 of file vgafile.cc.

Shape_frame * Shape::read ( DataSource shapes,
int  shnum,
int  frnum,
DataSource shapes2 = 0,
int  count1 = -1,
int  count2 = -1 
) [protected]

Definition at line 842 of file vgafile.cc.

References Ucscript::frame, DataSource::read4(), s, and DataSource::seek().

Referenced by get().

Here is the call graph for this function:

Shape_frame * Shape::store_frame ( Shape_frame frame,
int  framenum 
) [protected]

Definition at line 964 of file vgafile.cc.

References Ucscript::frame.

void Shape::reset (  ) 

Definition at line 1008 of file vgafile.cc.

References frames, and frames_size.

Referenced by ~Shape().

void Shape::take ( Shape s2  ) 

Definition at line 1027 of file vgafile.cc.

References frames, frames_size, and num_frames.

void Shape::load ( DataSource shape_source  ) 

Reimplemented in Shape_file.

Definition at line 1044 of file vgafile.cc.

References Ucscript::frame, and DataSource::read4().

Referenced by Fonts_vga_file::init(), Shape_file::load(), and Shape_file::Shape_file().

Here is the call graph for this function:

void Shape::write ( std::ostream &  out  ) 

Referenced by Write_exult(), and Image_file_info::write_file().

Shape_frame* Shape::get ( DataSource shapes,
int  shnum,
int  frnum,
DataSource shapes2 = 0,
int  count1 = -1,
int  count2 = -1 
) [inline]

Definition at line 177 of file vgafile.h.

References frames, frames_size, read(), and Vga_file::shapes.

Referenced by Vga_file::get_shape().

Here is the call graph for this function:

int Shape::get_num_frames (  )  [inline]

Definition at line 184 of file vgafile.h.

References num_frames.

Referenced by Font::calc_highlow(), Shape_chooser::del_frame(), Shape_chooser::export_tiled_png(), Extract(), Get_max_height(), Get_x_offset(), Import_png_tiles(), Mouse::Init(), Shape_chooser::new_frame(), SI_Game::play_intro(), Shape_chooser::render_frames(), and Write_tiled_frames().

Shape_frame* Shape::get_frame ( int  framenum  )  [inline]

Definition at line 186 of file vgafile.h.

References frames, and frames_size.

Referenced by Font::calc_highlow(), Shape_chooser::export_tiled_png(), Extract(), Get_max_height(), Get_x_offset(), Mouse::Init(), Shape_chooser::new_frame(), BG_Game::new_game(), SI_Game::play_intro(), Shape_chooser::render_frames(), Shape_chooser::scroll_to_frame(), TextScroller::show_line(), and Write_tiled_frames().

void Shape::resize ( int  newsize  ) 

Definition at line 796 of file vgafile.cc.

void Shape::set_frame ( Shape_frame f,
int  framenum 
)

Definition at line 1073 of file vgafile.cc.

References Ucscript::frame.

Referenced by Import_png(), Import_png_tiles(), and Write_exult().

void Shape::add_frame ( Shape_frame f,
int  framenum 
)

Definition at line 1088 of file vgafile.cc.

References Ucscript::frame.

Referenced by Shape_chooser::create_new_shape(), and Shape_chooser::new_frame().

void Shape::del_frame ( int  framenum  ) 

Definition at line 1106 of file vgafile.cc.

Referenced by Shape_chooser::del_frame().


Friends And Related Function Documentation

friend class Vga_file [friend]

Definition at line 166 of file vgafile.h.


Member Data Documentation

Shape_frame** Shape::frames [protected]

Definition at line 153 of file vgafile.h.

Referenced by get(), get_frame(), Shape_file::get_size(), reset(), Shape_file::save(), Shape(), and take().

unsigned char Shape::frames_size [protected]

Definition at line 154 of file vgafile.h.

Referenced by get(), get_frame(), reset(), Shape(), and take().

unsigned char Shape::num_frames [protected]

Definition at line 155 of file vgafile.h.

Referenced by Vga_file::get_num_frames(), get_num_frames(), and take().


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