#include <combo.h>
Collaboration diagram for Combo:

Public Member Functions | |
| Combo (Shapes_vga_file *svga) | |
| Combo (const Combo &c2) | |
| ~Combo () | |
| Combo_member * | get (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_file * | shapes_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 |
Definition at line 58 of file combo.h.
| Combo::Combo | ( | Shapes_vga_file * | svga | ) |
| 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] |
| 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 | |||
| ) |
| 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:

friend class Combo_editor [friend] |
friend class Combo_chooser [friend] |
Shapes_vga_file* Combo::shapes_file [private] |
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] |
short Combo::startty [private] |
std::string Combo::name [private] |
Rectangle Combo::tilefoot [private] |
1.5.1