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

gboolean load_deck ( void   ) 

Load the deck of cards from disk.

Return values:
TRUE The load worked.
FALSE The load failed for some reason.

Definition at line 58 of file cards.c.

{
   gboolean ret = TRUE;

   deck[0] = load_pixmap ("card_back1.png");
   ret = ret && (deck[0] != NULL);
   deck[1] = load_pixmap ("card_back2.png");
   ret = ret && (deck[1] != NULL);
   deck[2] = load_pixmap ("card_0.png");
   ret = ret && (deck[2] != NULL);
   deck[3] = load_pixmap ("card_1.png");
   ret = ret && (deck[3] != NULL);
   deck[4] = load_pixmap ("card_2.png");
   ret = ret && (deck[4] != NULL);
   deck[5] = load_pixmap ("card_3.png");
   ret = ret && (deck[5] != NULL);
   deck[6] = load_pixmap ("card_4.png");
   ret = ret && (deck[6] != NULL);
   deck[7] = load_pixmap ("card_5.png");
   ret = ret && (deck[7] != NULL);
   deck[8] = load_pixmap ("card_6.png");
   ret = ret && (deck[8] != NULL);
   deck[9] = load_pixmap ("card_7.png");
   ret = ret && (deck[9] != NULL);
   deck[10] = load_pixmap ("card_8.png");
   ret = ret && (deck[10] != NULL);
   deck[11] = load_pixmap ("card_9.png");
   ret = ret && (deck[11] != NULL);
   deck[12] = load_pixmap ("card_10.png");
   ret = ret && (deck[12] != NULL);
   deck[13] = load_pixmap ("card_11.png");
   ret = ret && (deck[13] != NULL);
   deck[14] = load_pixmap ("card_12.png");
   ret = ret && (deck[14] != NULL);
   deck[15] = load_pixmap ("card_13.png");
   ret = ret && (deck[15] != NULL);
   deck[16] = load_pixmap ("card_14.png");
   ret = ret && (deck[16] != NULL);
   deck[17] = load_pixmap ("card_15.png");
   ret = ret && (deck[17] != NULL);
   deck[18] = load_pixmap ("card_16.png");
   ret = ret && (deck[18] != NULL);
   deck[19] = load_pixmap ("card_17.png");
   ret = ret && (deck[19] != NULL);
   deck[20] = load_pixmap ("card_18.png");
   ret = ret && (deck[20] != NULL);
   deck[21] = load_pixmap ("card_19.png");
   ret = ret && (deck[21] != NULL);
   deck[22] = load_pixmap ("card_20.png");
   ret = ret && (deck[22] != NULL);

   return ret;
}


Generated by  Doxygen 1.6.0   Back to index