2017 ソフトウェア設計及び演習用の班Wiki
17:gr07::下瀬川右京::戦闘
battle-module ○担当 下瀬川 右京
#include "Status.h"
#include <gtk/gtk.h>
#include <stdlib.h>
#include <stdio.h>
#inlcude <time.h>
#include <SDL.h>
#include <SDL_mixer.h>
static Mix_Music *music;
static Mix_Chunk *se1, *se2, *se3, *se4, *se5, *se6;
static int average_damage_player;
static int damage_player;
static int average_damage_enemy;
static int damage_enemy;
static int crit;
static double counter;
static int counter_i;
static int ability_in;
static int ac;
static int ability_ac;
static void se1_button_clicked(GtkWidget *button, gpointer user_data);
static void se2_button_clicked(GtkWidget *button, gpointer user_data);
static void se3_button_clicked(GtkWidget *button, gpointer user_data);
static void se4_button_clicked(GtkWidget *button, gpointer user_data);
static void se5_button_clicked(GtkWidget *button, gpointer user_data);
static void quit_button_clicked(GtkWidget *button, gpointer user_data);
static void battle_win(void);
static void cb_button_clicked_0 (GtkWidget *button, gpointer user_data);
static void cb_button_clicked_1 (GtkWidget *button, gpointer user_data);
static void cb_button_clicked_2 (GtkWidget *button, gpointer user_data);
static void heal_quantity_10 (GtkWidget *button, gpointer user_data);
static void heal_quantity_20 (GtkWidget *button, gpointer user_data);
static void heal_quantity_25 (GtkWidget *button, gpointer user_data);
static void heal_quantity_30 (GtkWidget *button, gpointer user_data);
static void heal_quantity_40 (GtkWidget *button, gpointer user_data);
static void heal_quantity_50 (GtkWidget *button, gpointer user_data);
static void heal_hp (GtkWidget *button, gpointer user_data);
static void heal_atk (GtkWidget *button, gpointer user_data);
static void heal_def (GtkWidget *button, gpointer user_data);
static void heal_tec (GtkWidget *button, gpointer user_data);
static void heal_all_abi (GtkWidget *button, gpointer user_data);
static void damage_mgn_15 (GtkWidget *button, gpointer user_data);
static void damage_mgn_20 (GtkWidget *button, gpointer user_data);
static void damage_mgn_25 (GtkWidget *button, gpointer user_data);
static void damage_remaining_hp1 (GtkWidget *button, gpointer user_data);
static void damage_remaining_hp2 (GtkWidget *button, gpointer user_data);
static void damage_remaining_hp3 (GtkWidget *button, gpointer user_data);
static void critical_judge1 (GtkWidget *button, gpointer user_data);
static void critical_judge2 (GtkWidget *button, gpointer user_data);
static void critical_judge3 (GtkWidget *button, gpointer user_data);
static void counter_ready (GtkWidget *button, gpointer user_data);
Inevitable_ability (GtkWidget *button, gpointer user_data);
static void Accidental_ability (GtkWidget *button, gpointer user_data);
static void attack_player_skill (GtkWidget *button, gpointer user_data);
static void attack_enemy (GtkWidget *button, gpointer user_data);
static void destroy (GtkWidget *button, gpointer user_data);
int i,j;
GtkWidget *window[3];
GtkWidget *layout[3];
GtkWidget *image1[3];
GtkWidget *image2[3];
GtkWidget *button1[3];
GtkWidget *button2[3];
GtkWidget *button3[3];
GtkWidget *button4[3];
GtkWidget *button10[13];
GtkWidget *button11[13];
GtkWidget *hbox[3];
GtkWidget *tabel[3];
char buffer1[32];
char buffer2[32];
char buffer3[32];
char buffer4[32];
char buffer5[32];
char buffer6[32];
char buffer7[32];
char buffer8[32];
char buffer9[32];
char buffer10[32];
char buffer11[32];
char buffer12[32];
char skill1[32] = "";
char skill2[32] = "";
char skill3[32] = "";
char skill4[32] = "";
char skill5[32] = "";
char skill6[32] = "";
char skill7[32] = "";
char skill8[32] = "";
char skill9[32] = "";
char skill10[32] = "";
char skill11[32] = "";
char skill12[32] = "";
最終更新日:2017/08/04 11:30:05