Locator Class Reference

Locator.h - Locate game positions. More...

#include <locator.h>

Collaboration diagram for Locator:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Locator ()
 ~Locator ()
void show (bool tf)
void configure (GtkWidget *widget)
void render (GdkRectangle *area=0)
void view_changed (unsigned char *data, int datalen)
gint mouse_press (GdkEventButton *event)
gint mouse_release (GdkEventButton *event)
gint mouse_motion (GdkEventMotion *event)

Static Public Member Functions

static void vscrolled (GtkAdjustment *adj, gpointer data)
static void hscrolled (GtkAdjustment *adj, gpointer data)

Private Member Functions

void send_location ()
void query_location ()
void goto_mouse (int mx, int my, bool delay_send=false)

Static Private Member Functions

static gint delayed_send_location (gpointer data)

Private Attributes

GtkWidget * win
GtkWidget * draw
GdkGC * drawgc
GtkAdjustment * hadj
GtkAdjustment * vadj
int tx
int ty
int txs
int tys
int scale
GdkRectangle viewbox
bool dragging
int drag_relx
int drag_rely
int send_location_timer

Detailed Description

Locator.h - Locate game positions.

Written: March 2, 2002 - JSF

Definition at line 31 of file locator.h.


Constructor & Destructor Documentation

Locator::Locator (  ) 

Definition at line 166 of file locator.cc.

References c_chunks_per_schunk, c_num_chunks, ExultStudio::get_instance(), and ExultStudio::get_xml().

Here is the call graph for this function:

Locator::~Locator (  ) 

Definition at line 200 of file locator.cc.


Member Function Documentation

void Locator::send_location (  )  [private]

Definition at line 402 of file locator.cc.

References ExultStudio::get_instance(), ExultStudio::send_to_server(), Exult_server::view_pos, and Write4().

Referenced by delayed_send_location().

Here is the call graph for this function:

void Locator::query_location (  )  [private]

Definition at line 422 of file locator.cc.

References ExultStudio::get_instance(), ExultStudio::send_to_server(), Exult_server::view_pos, and Write4().

Here is the call graph for this function:

gint Locator::delayed_send_location ( gpointer  data  )  [static, private]

Definition at line 442 of file locator.cc.

References send_location(), and send_location_timer.

Here is the call graph for this function:

void Locator::goto_mouse ( int  mx,
int  my,
bool  delay_send = false 
) [private]

Definition at line 457 of file locator.cc.

References c_num_chunks, c_num_tiles, and c_tiles_per_chunk.

void Locator::show ( bool  tf  ) 

Definition at line 213 of file locator.cc.

Referenced by on_loc_close_clicked(), and on_loc_window_delete_event().

void Locator::configure ( GtkWidget *  widget  ) 

Definition at line 231 of file locator.cc.

Referenced by on_loc_draw_configure_event().

void Locator::render ( GdkRectangle *  area = 0  ) 

Definition at line 248 of file locator.cc.

References c_num_chunks, c_num_schunks, c_num_tiles, and c_tiles_per_chunk.

Referenced by on_loc_draw_expose_event().

void Locator::view_changed ( unsigned char *  data,
int  datalen 
)

Definition at line 336 of file locator.cc.

References c_tiles_per_chunk, dragging, and Read4().

Here is the call graph for this function:

void Locator::vscrolled ( GtkAdjustment *  adj,
gpointer  data 
) [static]

Definition at line 365 of file locator.cc.

References c_tiles_per_chunk.

void Locator::hscrolled ( GtkAdjustment *  adj,
gpointer  data 
) [static]

Definition at line 381 of file locator.cc.

References c_tiles_per_chunk.

gint Locator::mouse_press ( GdkEventButton *  event  ) 

Definition at line 510 of file locator.cc.

References dragging.

Referenced by on_loc_draw_button_press_event().

gint Locator::mouse_release ( GdkEventButton *  event  ) 

Definition at line 543 of file locator.cc.

References dragging.

Referenced by on_loc_draw_button_release_event().

gint Locator::mouse_motion ( GdkEventMotion *  event  ) 

Definition at line 556 of file locator.cc.

References dragging.

Referenced by on_loc_draw_motion_notify_event().


Member Data Documentation

GtkWidget* Locator::win [private]

Definition at line 33 of file locator.h.

GtkWidget* Locator::draw [private]

Definition at line 34 of file locator.h.

GdkGC* Locator::drawgc [private]

Definition at line 35 of file locator.h.

GtkAdjustment* Locator::hadj [private]

Definition at line 36 of file locator.h.

GtkAdjustment * Locator::vadj [private]

Definition at line 36 of file locator.h.

int Locator::tx [private]

Definition at line 37 of file locator.h.

int Locator::ty [private]

Definition at line 37 of file locator.h.

int Locator::txs [private]

Definition at line 37 of file locator.h.

int Locator::tys [private]

Definition at line 37 of file locator.h.

int Locator::scale [private]

Definition at line 37 of file locator.h.

GdkRectangle Locator::viewbox [private]

Definition at line 38 of file locator.h.

bool Locator::dragging [private]

Definition at line 39 of file locator.h.

int Locator::drag_relx [private]

Definition at line 40 of file locator.h.

int Locator::drag_rely [private]

Definition at line 40 of file locator.h.

int Locator::send_location_timer [private]

Definition at line 41 of file locator.h.

Referenced by delayed_send_location().


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