Logo Search packages:      
Sourcecode: mathwar version File versions  Download package

cards.h File Reference


Detailed Description

Define the card objects.

This module defines the card objects. It also provides routines for loading the cards from file, drawing the cards, and destroying the cards when we are done with them.

Author:
Kenneth W. Sodemann <stufflehead@bigfoot.com>
Revision
1.1
Date
2002/02/10 21:44:17

Definition in file cards.h.

#include <gnome.h>

Go to the source code of this file.

Defines

#define CARD_BACK_ONE   -1
#define CARD_BACK_TWO   -2
#define CARD_HEIGHT   200
#define CARD_WIDTH   125

Functions

void destroy_deck (void)
 Free the memory used by the deck.
void draw_card (GdkPixmap *pix, GdkGC *def_gc, GdkGC *shadow_gc, gint card, gint x, gint y)
 Draw the requested card at position x, y on the pixmap.
gboolean load_deck (void)
 Load the deck of cards from disk.


Generated by  Doxygen 1.6.0   Back to index