npcedit.cc File Reference

#include "studio.h"
#include "u7drag.h"
#include "servemsg.h"
#include "objserial.h"
#include "exult_constants.h"
#include "utils.h"
#include "shapefile.h"
#include "shapedraw.h"

Include dependency graph for npcedit.cc:

Go to the source code of this file.

Functions

void on_open_npc_activate (GtkMenuItem *menuitem, gpointer user_data)
void on_npc_apply_btn_clicked (GtkButton *btn, gpointer user_data)
void on_npc_cancel_btn_clicked (GtkButton *btn, gpointer user_data)
gboolean on_npc_window_delete_event (GtkWidget *widget, GdkEvent *event, gpointer user_data)
gboolean on_npc_draw_expose_event (GtkWidget *widget, GdkEventExpose *event, gpointer data)
gboolean on_npc_shape_focus_out_event (GtkWidget *widget, GdkEventFocus *event, gpointer user_data)
static void Npc_shape_dropped (int file, int shape, int frame, void *udata)
gboolean on_npc_face_draw_expose_event (GtkWidget *widget, GdkEventExpose *event, gpointer data)
static void Npc_face_dropped (int file, int shape, int frame, void *udata)
static void Set_schedule_line (GladeXML *app_xml, int time, int type, int tx, int ty, int tz=0)
static bool Get_schedule_line (GladeXML *app_xml, int time, Serial_schedule &sched)
static bool Get_prop_spin (GList *list, GtkSpinButton *&spin, int &pnum)
static bool Get_flag_cbox (GList *list, unsigned long *oflags, unsigned long *siflags, unsigned long *type_flags, GtkCheckButton *&cbox, unsigned long *&bits, int &fnum)
static void Npc_response (Exult_server::Msg_type id, unsigned char *data, int datalen, void *)
static void Set_sched_btn (GtkWidget *btn, gpointer data)
void on_npc_set_sched (GtkWidget *btn, gpointer user_data)
static void Game_loc_response (Exult_server::Msg_type id, unsigned char *data, int datalen, void *client)
void on_sched_loc_clicked (GtkWidget *btn, gpointer user_data)

Variables

static char * sched_names [32]


Function Documentation

static void Game_loc_response ( Exult_server::Msg_type  id,
unsigned char *  data,
int  datalen,
void *  client 
) [static]

Definition at line 833 of file npcedit.cc.

References EStudio::Alert(), Exult_server::game_pos, and Read2().

Referenced by on_sched_loc_clicked().

Here is the call graph for this function:

static bool Get_flag_cbox ( GList *  list,
unsigned long *  oflags,
unsigned long *  siflags,
unsigned long *  type_flags,
GtkCheckButton *&  cbox,
unsigned long *&  bits,
int &  fnum 
) [static]

Definition at line 382 of file npcedit.cc.

Referenced by ExultStudio::init_npc_window(), and ExultStudio::save_npc_window().

static bool Get_prop_spin ( GList *  list,
GtkSpinButton *&  spin,
int &  pnum 
) [static]

Definition at line 356 of file npcedit.cc.

Referenced by ExultStudio::init_new_npc(), ExultStudio::init_npc_window(), and ExultStudio::save_npc_window().

static bool Get_schedule_line ( GladeXML *  app_xml,
int  time,
Serial_schedule sched 
) [static]

Definition at line 227 of file npcedit.cc.

References Serial_schedule::time, Serial_schedule::tx, Serial_schedule::ty, and Serial_schedule::type.

Referenced by ExultStudio::save_npc_window().

static void Npc_face_dropped ( int  file,
int  shape,
int  frame,
void *  udata 
) [static]

Definition at line 164 of file npcedit.cc.

References U7_SHAPE_FACES.

Referenced by ExultStudio::open_npc_window().

static void Npc_response ( Exult_server::Msg_type  id,
unsigned char *  data,
int  datalen,
void *   
) [static]

Definition at line 568 of file npcedit.cc.

References ExultStudio::close_npc_window(), ExultStudio::get_instance(), and Exult_server::user_responded.

Referenced by ExultStudio::save_npc_window().

Here is the call graph for this function:

static void Npc_shape_dropped ( int  file,
int  shape,
int  frame,
void *  udata 
) [static]

Definition at line 131 of file npcedit.cc.

References U7_SHAPE_SHAPES.

Referenced by ExultStudio::open_npc_window().

void on_npc_apply_btn_clicked ( GtkButton *  btn,
gpointer  user_data 
)

Definition at line 62 of file npcedit.cc.

References ExultStudio::get_instance(), and ExultStudio::save_npc_window().

Here is the call graph for this function:

void on_npc_cancel_btn_clicked ( GtkButton *  btn,
gpointer  user_data 
)

Definition at line 74 of file npcedit.cc.

References ExultStudio::close_npc_window(), and ExultStudio::get_instance().

Here is the call graph for this function:

gboolean on_npc_draw_expose_event ( GtkWidget *  widget,
GdkEventExpose *  event,
gpointer  data 
)

Definition at line 100 of file npcedit.cc.

References ExultStudio::get_instance(), and ExultStudio::show_npc_shape().

Here is the call graph for this function:

gboolean on_npc_face_draw_expose_event ( GtkWidget *  widget,
GdkEventExpose *  event,
gpointer  data 
)

Definition at line 147 of file npcedit.cc.

References ExultStudio::get_instance(), and ExultStudio::show_npc_face().

Here is the call graph for this function:

void on_npc_set_sched ( GtkWidget *  btn,
gpointer  user_data 
)

Definition at line 801 of file npcedit.cc.

References ExultStudio::get_instance(), ExultStudio::get_xml(), and Set_sched_btn().

Here is the call graph for this function:

gboolean on_npc_shape_focus_out_event ( GtkWidget *  widget,
GdkEventFocus *  event,
gpointer  user_data 
)

Definition at line 116 of file npcedit.cc.

References ExultStudio::get_instance(), and ExultStudio::show_npc_shape().

Here is the call graph for this function:

gboolean on_npc_window_delete_event ( GtkWidget *  widget,
GdkEvent *  event,
gpointer  user_data 
)

Definition at line 86 of file npcedit.cc.

References ExultStudio::close_npc_window(), and ExultStudio::get_instance().

Here is the call graph for this function:

void on_open_npc_activate ( GtkMenuItem *  menuitem,
gpointer  user_data 
)

Definition at line 49 of file npcedit.cc.

References ExultStudio::get_instance(), and ExultStudio::open_npc_window().

Here is the call graph for this function:

void on_sched_loc_clicked ( GtkWidget *  btn,
gpointer  user_data 
)

Definition at line 868 of file npcedit.cc.

References Game_loc_response(), Exult_server::game_pos, ExultStudio::get_instance(), ExultStudio::get_server_socket(), Exult_server::Send_data(), and ExultStudio::set_msg_callback().

Here is the call graph for this function:

static void Set_sched_btn ( GtkWidget *  btn,
gpointer  data 
) [static]

Definition at line 788 of file npcedit.cc.

References ExultStudio::schedule_btn_clicked().

Referenced by on_npc_set_sched().

Here is the call graph for this function:

static void Set_schedule_line ( GladeXML *  app_xml,
int  time,
int  type,
int  tx,
int  ty,
int  tz = 0 
) [static]

Definition at line 189 of file npcedit.cc.

Referenced by ExultStudio::init_new_npc(), ExultStudio::init_npc_window(), and ExultStudio::open_npc_window().


Variable Documentation

char* sched_names[32] [static]

Initial value:

 {
    "Combat", "Horiz. Pace", "Vert. Pace", "Talk", "Dance",
    "Eat", "Farm", "Tend Shop", "Miner", "Hound", "Stand",
    "Loiter", "Wander", "Blacksmith", "Sleep", "Wait", "Sit",
    "Graze", "Bake", "Sew", "Shy", "Lab Work", "Thief", "Waiter",
    "Special", "Kid Games", "Eat at Inn", "Duel", "Preach",
    "Patrol", "Desk Work", "Follow"}

Definition at line 176 of file npcedit.cc.


Generated on Mon Jul 9 14:44:47 2007 for ExultEngine by  doxygen 1.5.1