This repository has been archived by the owner on Jan 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmgtk.h
69 lines (61 loc) · 1.53 KB
/
mgtk.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
//
// Created by Ziming on 2021/11/5.
//
#ifndef P2_1_MGTK_H
#define P2_1_MGTK_H
#include "GTK_ENABLED.h"
#include "card_pile.h"
#include "basic.h"
#ifdef GTK
#include <gtk/gtk.h>
typedef struct _setting_data{
int i;
int num;
int c;
int r;
int d;
GtkWidget *value[4];
GtkWidget *left[4];
GtkWidget *right[4];
char *path;
}setting_data;
typedef struct _animation_data{
int num;
int c;
int r;
int d;
GtkWidget *windows;
GtkWidget *fixed;
GtkWidget *cardpt[20];
FILE *log;
pile *dock_pile;
pile *disc_pile;
table *t;
int **cards;
game_status *st;
int *score;
int card_counter[CardTotal];
int pl;
int cur;
int nxt;
int add;
int result;
int j;// for position
}animation_data;
void disp_card(int num,int x,int y,GtkWidget *fixed,int id,animation_data* data);
void disp_start(GtkWidget* widget, gpointer data);
void destroy(GtkWidget* widget, gpointer data);
void wquit(GtkWidget* widget, gpointer window);
void disp_score(GtkWidget* widget, gpointer data);
void disp_setting(GtkWidget* widget, gpointer data);
void init_ggame(GtkWidget *window);
void save_setting(GtkWidget* widget, gpointer data);
void fetch_setting(gpointer data);
void game(animation_data *data);
void select_card(GtkWidget *widget,gpointer pt);
void deal_cards(GtkWidget* widget, gpointer pt);
void confirm_card(GtkWidget *widget,gpointer pt);
void act_status(GtkWidget *window,gpointer pt);
void prepare_for_next(GtkWidget *window,gpointer pt);
#endif
#endif //P2_1_MGTK_H