2016 ソフトウェア設計及び演習用の班Wiki
gr01::proto.h
GtkWidget *canvas; #define ITEM 5 //アイテム構造体 typedef struct { int itemnumber;//アイテム番号 int itemcount;//アイテム個数 } item; int module; //キャラクター構造体 typedef struct { int turn;//ターン数 int strength;//体力 int knowledge;//学力 int backknowledge;//裏学力 int commandnum;//コマンド数 int characternum;//形態数 int seikai;//正解数 int num; int item[ITEM];//アイテム } character; character ganchan; character ganchanload; //startモジュール int start(GtkWidget *); GtkWidget *start0(GtkWidget *); void cb_expose_start_event(GtkWidget *widget, GdkEventButton *event, gpointer user_data); void cb_motion_start_notify_event(GtkWidget *widget, GdkEventMotion *event); void cb_mouse_start_press(GtkWidget *widget, GdkEventButton *event, gpointer user_data); //playモジュール void play(GtkWidget *); GtkWidget *play0(GtkWidget *); void cb_expose_play_event(GtkWidget *widget, GdkEventButton *event, gpointer user_data); void cb_motion_play_notify_event(GtkWidget *widget, GdkEventMotion *event); void cb_mouse_play_press(GtkWidget *widget, GdkEventButton *event, gpointer user_data); //eventモジュール void event(GtkWidget *); GtkWidget *event0(GtkWidget *); GtkWidget *event1(GtkWidget *); GtkWidget *event2(GtkWidget *); GtkWidget *event3(GtkWidget *); GtkWidget *event4(GtkWidget *); GtkWidget *event5(GtkWidget *); GtkWidget *event6(GtkWidget *); GtkWidget *event7(GtkWidget *); GtkWidget *item0(GtkWidget *); GtkWidget *item1(GtkWidget *); GtkWidget *item2(GtkWidget *); int GetRandom(int min,int max); void cb_expose_event_event(GtkWidget *widget, GdkEventButton *event, gpointer user_data); void cb_motion_event_notify_event(GtkWidget *widget, GdkEventMotion *event); void cb_mouse_event_press(GtkWidget *widget, GdkEventButton *event, gpointer user_data); //saveモジュール void save(GtkWidget *); GtkWidget *save0(GtkWidget *); void cb_expose_save_event(GtkWidget *widget, GdkEventButton *event, gpointer user_data); void cb_mouse_save_press(GtkWidget *widget, GdkEventButton *event, gpointer user_data); //loadモジュール void load(GtkWidget *); GtkWidget *load0(GtkWidget *); void cb_expose_load_event(GtkWidget *widget, GdkEventButton *event, gpointer user_data); void cb_mouse_load_press(GtkWidget *widget, GdkEventButton *event, gpointer user_data); static gboolean cb_expose_event(GtkWidget *widget, GdkEventButton *event, gpointer user_data) { if(module == 1){ cb_expose_start_event(widget, event, user_data); return FALSE; } if(module == 2){ cb_expose_play_event(widget, event, user_data); return FALSE; } if(module == 3){ cb_expose_event_event(widget, event, user_data); return FALSE; } if(module == 5){ cb_expose_save_event(widget, event, user_data); return FALSE; } if(module == 9){ cb_expose_load_event(widget, event, user_data); return FALSE; } } //マウスイベント static gboolean cb_mouse_press(GtkWidget *widget, GdkEventButton *event, gpointer user_data) { if(module == 1){ cb_mouse_start_press(widget, event, user_data); } if(module == 2){ cb_mouse_play_press(widget, event, user_data); } if(module == 3){ cb_mouse_event_press(widget, event, user_data); } if(module == 4){ cb_mouse_perfect_press(widget, event, user_data); } if(module == 5){ cb_mouse_save_press(widget, event, user_data); } if(module == 6){ cb_mouse_sinka_press(widget, event,user_data); } if(module == 7){ cb_mouse_perfect1_press(widget, event,user_data); } if(module == 8){ cb_mouse_end_press(widget, event,user_data); } if(module == 9){ cb_mouse_load_press(widget, event,user_data); } } //sinka void s(GtkWidget *); GtkWidget *sinka0(GtkWidget *); GtkWidget *sinka1(GtkWidget *); GtkWidget *sinka2(GtkWidget *); void cb_mouse_sinka_press(GtkWidget *widget, GdkEventButton *event, gpointer user_data); void s2(GtkWidget *); GtkWidget *sinka3(GtkWidget *); GtkWidget *sinka4(GtkWidget *); GtkWidget *sinka5(GtkWidget *); //tyukan void tyukan(GtkWidget *); GtkWidget *quiz0(GtkWidget *); GtkWidget *quiz1(GtkWidget *); GtkWidget *Ans1(GtkWidget *); GtkWidget *quiz2(GtkWidget *); GtkWidget *Ans2(GtkWidget *); GtkWidget *quiz3(GtkWidget *); GtkWidget *Ans3(GtkWidget *); GtkWidget *quiz4(GtkWidget *); GtkWidget *Ans4(GtkWidget *); GtkWidget *quiz5(GtkWidget *); GtkWidget *Ans5(GtkWidget *); void cb_mouse_perfect_press(GtkWidget *widget, GdkEventButton *event, gpointer user_data); //kimatsu void kimatsu(GtkWidget *); GtkWidget *kimatsu0(GtkWidget *); GtkWidget *kimatsu1(GtkWidget *); GtkWidget *kimatsuA1(GtkWidget *); GtkWidget *kimatsu2(GtkWidget *); GtkWidget *kimatsuA2(GtkWidget *); GtkWidget *kimatsu3(GtkWidget *); GtkWidget *kimatsuA3(GtkWidget *); GtkWidget *kimatsu4(GtkWidget *); GtkWidget *kimatsuA4(GtkWidget *); GtkWidget *kimatsu5(GtkWidget *); GtkWidget *kimatsuA5(GtkWidget *); void cb_mouse_perfect1_press(GtkWidget *widget, GdkEventButton *event, gpointer user_data); //end void e(GtkWidget *); GtkWidget *end0(GtkWidget *); GtkWidget *end1(GtkWidget *); GtkWidget *end2(GtkWidget *); void cb_mouse_end_press(GtkWidget *widget, GdkEventButton *event, gpointer user_data);
最終更新日:2016/08/05 04:10:25