File: game-area.h

package info (click to toggle)
five-or-more 1:3.30.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 4,072 kB
  • sloc: ansic: 2,241; xml: 56; python: 10; sh: 7; makefile: 6
file content (55 lines) | stat: -rw-r--r-- 1,705 bytes parent folder | download
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
/*
 * Color lines for GNOME
 * Copyright © 1999 Free Software Foundation
 * Authors: Robert Szokovacs <szo@appaloosacorp.hu>
 *          Szabolcs Ban <shooby@gnome.hu>
 *          Karuna Grewal <karunagrewal98@gmail.com>
 * Copyright © 2007 Christian Persch
 *
 * This game is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2, or (at your option)
 * any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, see <https://www.gnu.org/licenses/>.
 */

#ifndef GAME_AREA_H
#define GAME_AREA_H

#include <gtk/gtk.h>
#include "games-preimage.h"

typedef struct {
  int num;
  int score;
} scoretable;

typedef struct {
  int color;
  int pathsearch;
  int phase;
  int active;
  int tag;
} field_props;

GRand           **get_rgen          ();
GamesPreimage    *get_ball_preimage ();
gint              get_npieces       ();
void              set_inmove        (int i);
void              refresh_pixmaps   (void);
void              refresh_screen    (void);
void              load_theme        (void);
GtkWidget       * game_area_init    (void);
gint              get_ncolors       ();
void              set_sizes         (gint size);
void              reset_game        (void);
gint              get_hfieldsize    ();
gint              get_vfieldsize    ();
#endif