Dragging_info Class Reference

#include <drag.h>

Inheritance diagram for Dragging_info:

Inheritance graph
[legend]
Collaboration diagram for Dragging_info:

Collaboration graph
[legend]
List of all members.

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_objectobj
bool is_new
Gumpgump
Gump_buttonbutton
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_buffersave
bool okay
bool possible_theft

Friends

class Game_window

Detailed Description

Definition at line 29 of file drag.h.


Constructor & Destructor Documentation

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:

Dragging_info::~Dragging_info (  ) 

Definition at line 131 of file drag.cc.


Member Function Documentation

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]

Definition at line 334 of file drag.cc.

References Exult_server::obj.

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:


Friends And Related Function Documentation

friend class Game_window [friend]

Definition at line 54 of file drag.h.


Member Data Documentation

Game_object* Dragging_info::obj [private]

Definition at line 31 of file drag.h.

bool Dragging_info::is_new [private]

Definition at line 32 of file drag.h.

Gump* Dragging_info::gump [private]

Definition at line 33 of file drag.h.

Gump_button* Dragging_info::button [private]

Definition at line 34 of file drag.h.

Tile_coord Dragging_info::old_pos [private]

Definition at line 35 of file drag.h.

Rectangle Dragging_info::old_foot [private]

Definition at line 37 of file drag.h.

int Dragging_info::old_lift [private]

Definition at line 38 of file drag.h.

int Dragging_info::quantity [private]

Definition at line 39 of file drag.h.

int Dragging_info::readied_index [private]

Definition at line 40 of file drag.h.

int Dragging_info::mousex [private]

Definition at line 42 of file drag.h.

int Dragging_info::mousey [private]

Definition at line 42 of file drag.h.

int Dragging_info::paintx [private]

Definition at line 42 of file drag.h.

int Dragging_info::painty [private]

Definition at line 42 of file drag.h.

Rectangle Dragging_info::rect [private]

Definition at line 43 of file drag.h.

Image_buffer* Dragging_info::save [private]

Definition at line 44 of file drag.h.

bool Dragging_info::okay [private]

Definition at line 45 of file drag.h.

bool Dragging_info::possible_theft [private]

Definition at line 46 of file drag.h.


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