Back to index

gcompris  8.2.2
bonus.h
Go to the documentation of this file.
00001 /* gcompris - bonus.h
00002  *
00003  * Time-stamp: <2001/10/15 01:10:21 bruno>
00004  *
00005  * Copyright (C) 2001 Pascal Georges
00006  *
00007  * This program is free software; you can redistribute it and/or modify
00008  * it under the terms of the GNU General Public License as published by
00009  * the Free Software Foundation; either version 2 of the License, or
00010  * (at your option) any later version.
00011  *
00012  * This program is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  * GNU General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU General Public License
00018  * along with this program; if not, write to the Free Software
00019  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00020  */
00021 
00022 #ifndef BONUS_H
00023 #define BONUS_H
00024 
00025 /* The time, in ms, between the click of the player, making a choice
00026  * and the moment the bonus appears. Only used when there is no thumb 
00027  * in the board */
00028 #define TIME_CLICK_TO_BONUS 800
00029 
00030 /* BONUS_LAST is equals to the last available bonus type */
00031 
00032 typedef enum
00033 {
00034   BONUS_RANDOM,
00035   BONUS_SMILEY,
00036   BONUS_FLOWER,
00037   BONUS_TUX,
00038   BONUS_GNU,
00039   BONUS_LAST
00040 } BonusList;
00041 
00042 typedef enum
00043 {
00044   BOARD_FINISHED_RANDOM,
00045   BOARD_FINISHED_TUXPLANE,
00046   BOARD_FINISHED_TUXLOCO,
00047   BOARD_FINISHED_TOOMANYERRORS,
00048   BOARD_FINISHED_LAST
00049 } BoardFinishedList;
00050 
00051 typedef enum
00052 {
00053   BOARD_LOOSE,
00054   BOARD_WIN,
00055   BOARD_DRAW,
00056 } BonusStatusList;
00057 
00058 /*
00059  * Public BONUS API Entry
00060  * ----------------------
00061  */
00062 void    gc_bonus_display(BonusStatusList, BonusList);
00063 void    gc_bonus_end_display(BoardFinishedList);
00064 
00065 #endif