#include <drag.h>
Inheritance diagram for Dragging_info:
Public Member Functions | |
Dragging_info (Game_object *newobj) | |
Dragging_info (int x, int y) | |
~Dragging_info () | |
bool | moved (int x, int y) |
void | paint () |
bool | drop (int x, int y, bool moved) |
Private Member Functions | |
bool | start (int x, int y) |
void | put_back () |
bool | drop_on_gump (int x, int y, Game_object *to_drop, Gump *gump) |
bool | drop_on_map (int x, int y, Game_object *to_drop) |
bool | drop (int x, int y) |
Private Attributes | |
Game_object * | obj |
bool | is_new |
Gump * | gump |
Gump_button * | button |
Tile_coord | old_pos |
Rectangle | old_foot |
int | old_lift |
int | quantity |
int | readied_index |
int | mousex |
int | mousey |
int | paintx |
int | painty |
Rectangle | rect |
Image_buffer * | save |
bool | okay |
bool | possible_theft |
Friends | |
class | Game_window |
Definition at line 29 of file drag.h.
Dragging_info::Dragging_info | ( | Game_object * | newobj | ) |
Definition at line 49 of file drag.cc.
References Image_window::create_buffer(), Rectangle::enlarge(), Game_window::get_shape_rect(), Game_window::get_win(), gwin, and Exult_server::obj.
Here is the call graph for this function:
Dragging_info::Dragging_info | ( | int | x, | |
int | y | |||
) |
Definition at line 69 of file drag.cc.
References Game_window::find_object(), Audio::game_sfx(), Audio::get_ptr(), Game_window::get_shape_location(), gwin, Exult_server::obj, Audio::play_sound_effect(), and Game_window::set_painted().
Here is the call graph for this function:
bool Dragging_info::start | ( | int | x, | |
int | y | |||
) | [private] |
Definition at line 144 of file drag.cc.
References Mouse::blocked, cheat, Game_window::clip_to_win(), Image_window::create_buffer(), Container_game_object::find_readied(), Mouse::flash_shape(), Game_window::get_main_actor(), Game_window::get_shape_rect(), Game_object::get_tile(), Game_window::get_win(), gwin, Cheat::in_hack_mover(), Fast_pathfinder_client::is_grabable(), Mouse::mouse, Exult_server::obj, Game_window::paint(), and Mouse::tooheavy.
Here is the call graph for this function:
void Dragging_info::put_back | ( | ) | [private] |
bool Dragging_info::drop_on_gump | ( | int | x, | |
int | y, | |||
Game_object * | to_drop, | |||
Gump * | gump | |||
) | [private] |
Definition at line 360 of file drag.cc.
References Gump::add(), Check_weight(), Mouse::flash_shape(), Gump::get_cont_or_actor(), Game_object::get_quantity(), gwin, Mouse::mouse, Exult_server::obj, and Mouse::wontfit.
Here is the call graph for this function:
bool Dragging_info::drop_on_map | ( | int | x, | |
int | y, | |||
Game_object * | to_drop | |||
) | [private] |
Definition at line 392 of file drag.cc.
References Mouse::blocked, cheat, Check_weight(), Tile_coord::distance(), Game_object::drop(), Game_window::drop_at_lift(), Game_window::find_object(), Mouse::flash_shape(), Audio::game_sfx(), Shape_info::get_3d_height(), ShapeID::get_info(), Game_object::get_lift(), Game_window::get_main_actor(), Audio::get_ptr(), Game_window::get_render_skip_lift(), Game_object::get_tile(), gwin, Cheat::in_hack_mover(), Mouse::mouse, Exult_server::obj, Audio::play_sound_effect(), and Mouse::redx.
Here is the call graph for this function:
bool Dragging_info::drop | ( | int | x, | |
int | y | |||
) | [private] |
Definition at line 453 of file drag.cc.
References c_tiles_per_chunk, Container_game_object::call_readied_usecode(), cheat, Container_game_object::find_readied(), Audio::game_sfx(), Gump::get_cont_or_actor(), Game_object::get_flag(), Game_window::get_moving_barge(), Audio::get_ptr(), Map_chunk::gravity(), gwin, Cheat::in_hack_mover(), Game_window::is_in_dungeon(), Game_object::modify_quantity(), Exult_server::obj, Obj_flags::okay_to_take, Audio::play_sound_effect(), Usecode_machine::readied, Game_object::set_flag(), Barge_object::set_to_gather(), Game_window::theft(), and Usecode_machine::unreadied.
Here is the call graph for this function:
bool Dragging_info::moved | ( | int | x, | |
int | y | |||
) |
Definition at line 208 of file drag.cc.
References Game_window::add_dirty(), Game_window::clip_to_win(), Game_window::get_win(), gwin, Exult_server::obj, Image_window::put(), and Game_window::set_painted().
Here is the call graph for this function:
void Dragging_info::paint | ( | ) |
Definition at line 240 of file drag.cc.
References Image_window::get(), Game_window::get_win(), gwin, Obj_flags::invisible, and Exult_server::obj.
Here is the call graph for this function:
bool Dragging_info::drop | ( | int | x, | |
int | y, | |||
bool | moved | |||
) |
Definition at line 267 of file drag.cc.
References gwin, Exult_server::obj, and Game_window::paint().
Here is the call graph for this function:
friend class Game_window [friend] |
Game_object* Dragging_info::obj [private] |
bool Dragging_info::is_new [private] |
Gump* Dragging_info::gump [private] |
Gump_button* Dragging_info::button [private] |
Tile_coord Dragging_info::old_pos [private] |
Rectangle Dragging_info::old_foot [private] |
int Dragging_info::old_lift [private] |
int Dragging_info::quantity [private] |
int Dragging_info::readied_index [private] |
int Dragging_info::mousex [private] |
int Dragging_info::mousey [private] |
int Dragging_info::paintx [private] |
int Dragging_info::painty [private] |
Rectangle Dragging_info::rect [private] |
Image_buffer* Dragging_info::save [private] |
bool Dragging_info::okay [private] |
bool Dragging_info::possible_theft [private] |