~taylorp36/ubuntu/wily/aisleriot/bug-1490189

« back to all changes in this revision

Viewing changes to src/game.h

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2011-09-26 12:54:22 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: package-import@ubuntu.com-20110926125422-fhnx2xyc0qcpgyh2
Tags: 1:3.2.0-0ubuntu1
* New upstream stable release.
  - Distribute a copy of the LGPL
  - Update card theme install info for Debian, Ubuntu & OpenSUSE
  - Build help with yelp-tools instead of gnome-doc-utils
  - Fix game restart
  - Translation updates
* debian/control: Build-depends on yelp-tools
* debian/copyright: Fixed a few lintian warnings
* 03_update_theme_install_data.patch: Dropped, applied upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
#include "ar-card.h"
24
24
 
25
 
#ifdef HAVE_CLUTTER
26
 
#include <clutter/clutter.h>
27
 
#endif
28
 
 
29
25
G_BEGIN_DECLS
30
26
 
31
27
/* A slot */
44
40
  ArSlotType type;
45
41
 
46
42
  GByteArray *cards;
47
 
#ifdef HAVE_CLUTTER
48
 
  /* The old state of the cards so we can check for differences */
49
 
  guint old_exposed;
50
 
  GByteArray *old_cards;
51
 
#endif /* HAVE_CLUTTER */
52
43
 
53
44
  /* the topmost |exposed| cards are shown on the pile */
54
45
  guint exposed;
70
61
  /* The location in pixel units. Filled in by the scaling code. */
71
62
  GdkRectangle rect;
72
63
 
73
 
#ifdef HAVE_CLUTTER
74
 
  /* Actor for the slot */
75
 
  ClutterActor *slot_renderer;
76
 
#else
77
64
  /* GdkPixbuf* or GdkPixmap*, no reference owned */
78
65
  GPtrArray *card_images;
79
 
#endif /* HAVE_CLUTTER */
80
66
 
81
67
  guint expanded_right : 1;
82
68
  guint expanded_down : 1;
179
165
gboolean aisleriot_game_load_game (AisleriotGame * game,
180
166
                                   const char *filename, GError ** error);
181
167
 
182
 
void aisleriot_game_new_game (AisleriotGame * game, guint * seed);
 
168
void aisleriot_game_new_game (AisleriotGame *game);
 
169
 
 
170
void aisleriot_game_new_game_with_rand (AisleriotGame *game,
 
171
                                        GRand *rand);
183
172
 
184
173
void aisleriot_game_restart_game (AisleriotGame * game);
185
174
 
187
176
 
188
177
char *aisleriot_game_get_name (AisleriotGame * game);
189
178
 
190
 
guint aisleriot_game_get_seed (AisleriotGame * game);
191
 
 
192
179
gboolean aisleriot_game_drag_valid (AisleriotGame * game,
193
180
                                    int slot_id,
194
181
                                    guint8 * cards, guint n_cards);