📄 llk_algorithm.h
字号:
#ifndef __LLK_ALGORITHM_H#define __LLK_ALGORITHM_H#include <gtk/gtk.h>#include <time.h>#include <stdlib.h>#define ALGORITHM_GAME_STOP 1#define ALGORITHM_GAME_RUN 2#define ALGORITHM_GAME_PAUSE 3struct AlgorithmPoint{ gint x; gint y;};struct AlgorithmGame{ gint difficulty; gint level; gint life; gint hint; gint score; gint row,col; gint status; /*游戏状态*/ gint data[9][16]; /*0:no pic,1: pic1,*/};struct AlgorithmGame algorithm_game;gboolean algorithm_game_init(void);gboolean algorithm_game_begin(gpointer data);gboolean algorithm_can_direct_link(struct AlgorithmPoint p1, struct AlgorithmPoint p2); gboolean algorithm_can_link(struct AlgorithmPoint p1, struct AlgorithmPoint p2, struct AlgorithmPoint *pp3, struct AlgorithmPoint *pp4); void algorithm_link(struct AlgorithmPoint p1,struct AlgorithmPoint p2);GSList * algorithm_get_points(struct AlgorithmPoint p);void algorithm_free_with_data(GSList *list);gint algorithm_game_no_solution(void);void algorithm_game_wash(void);void algorithm_game_change(struct AlgorithmPoint p1, struct AlgorithmPoint p2);gboolean algorithm_game_net_level(void);void algorithm_init_data(void);void algorithm_data_change_0(struct AlgorithmPoint p1, struct AlgorithmPoint p2);void algorithm_data_change_1(struct AlgorithmPoint p1, struct AlgorithmPoint p2);void algorithm_data_change_2(struct AlgorithmPoint p1, struct AlgorithmPoint p2);void algorithm_data_change_3(struct AlgorithmPoint p1, struct AlgorithmPoint p2);void algorithm_data_change_4(struct AlgorithmPoint p1, struct AlgorithmPoint p2);void algorithm_data_change_5(struct AlgorithmPoint p1, struct AlgorithmPoint p2);void algorithm_data_change_6(struct AlgorithmPoint p1, struct AlgorithmPoint p2);void algorithm_data_change_7(struct AlgorithmPoint p1, struct AlgorithmPoint p2);void algorithm_data_change_8(struct AlgorithmPoint p1, struct AlgorithmPoint p2);void algorithm_data_change_9(struct AlgorithmPoint p1, struct AlgorithmPoint p2);void algorithm_data_change_10(struct AlgorithmPoint p1, struct AlgorithmPoint p2);#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -