Combo Class Reference

#include <combo.h>

Collaboration diagram for Combo:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Combo (Shapes_vga_file *svga)
 Combo (const Combo &c2)
 ~Combo ()
Combo_memberget (int i)
void add (int tx, int ty, int tz, int shnum, int frnum)
void remove (int i)
void draw (Shape_draw *draw, int selected=-1, int xoff=0, int yoff=0)
int find (int mx, int my)
unsigned char * write (int &datalen)
unsigned char * read (unsigned char *buf, int bufsize)

Private Member Functions

Rectangle get_member_footprint (int i)

Private Attributes

Shapes_vga_fileshapes_file
std::vector< Combo_member * > members
short hot_index
short starttx
short startty
std::string name
Rectangle tilefoot

Friends

class Combo_editor
class Combo_chooser

Detailed Description

Definition at line 58 of file combo.h.


Constructor & Destructor Documentation

Combo::Combo ( Shapes_vga_file svga  ) 

Definition at line 247 of file combo.cc.

Combo::Combo ( const Combo c2  ) 

Definition at line 262 of file combo.cc.

References members.

Combo::~Combo (  ) 

Definition at line 282 of file combo.cc.


Member Function Documentation

Rectangle Combo::get_member_footprint ( int  i  )  [private]

Definition at line 227 of file combo.cc.

References Combo_member::framenum, Exult_server::info, Combo_member::shapenum, Combo_member::tx, and Combo_member::ty.

Combo_member* Combo::get ( int  i  )  [inline]

Definition at line 75 of file combo.h.

References members.

void Combo::add ( int  tx,
int  ty,
int  tz,
int  shnum,
int  frnum 
)

Definition at line 295 of file combo.cc.

References EStudio::Alert(), Rectangle::h, hot_spot_compare(), Exult_server::info, maxtiles, Rectangle::w, Rectangle::x, and Rectangle::y.

Here is the call graph for this function:

void Combo::remove ( int  i  ) 

Definition at line 352 of file combo.cc.

References Rectangle::add(), and hot_spot_compare().

Referenced by Combo_chooser::remove().

Here is the call graph for this function:

void Combo::draw ( Shape_draw draw,
int  selected = -1,
int  xoff = 0,
int  yoff = 0 
)

Definition at line 390 of file combo.cc.

References c_tilesize, Shape_draw::draw_shape(), Shape_draw::draw_shape_outline(), Combo_member::framenum, Shape_frame::get_xleft(), Shape_frame::get_yabove(), and Combo_member::shapenum.

Here is the call graph for this function:

int Combo::find ( int  mx,
int  my 
)

Definition at line 442 of file combo.cc.

References c_tilesize, and Ucscript::frame.

unsigned char * Combo::write ( int &  datalen  ) 

Definition at line 472 of file combo.cc.

unsigned char * Combo::read ( unsigned char *  buf,
int  bufsize 
)

Definition at line 504 of file combo.cc.

References Rectangle::add().

Referenced by Combo_chooser::load().

Here is the call graph for this function:


Friends And Related Function Documentation

friend class Combo_editor [friend]

Definition at line 70 of file combo.h.

friend class Combo_chooser [friend]

Definition at line 71 of file combo.h.


Member Data Documentation

Shapes_vga_file* Combo::shapes_file [private]

Definition at line 60 of file combo.h.

Referenced by Combo_chooser::drag_begin().

std::vector<Combo_member *> Combo::members [private]

Definition at line 61 of file combo.h.

Referenced by Combo(), Combo_chooser::drag_begin(), Combo_chooser::drag_data_get(), and get().

short Combo::hot_index [private]

Definition at line 62 of file combo.h.

Referenced by Combo_chooser::drag_begin(), and Combo_chooser::drag_data_get().

short Combo::starttx [private]

Definition at line 64 of file combo.h.

short Combo::startty [private]

Definition at line 64 of file combo.h.

std::string Combo::name [private]

Definition at line 65 of file combo.h.

Referenced by Combo_chooser::select().

Rectangle Combo::tilefoot [private]

Definition at line 66 of file combo.h.

Referenced by Combo_chooser::drag_data_get().


The documentation for this class was generated from the following files:
Generated on Mon Jul 9 14:49:09 2007 for ExultEngine by  doxygen 1.5.1