/* gcompris - bonus.h
 *
 * Time-stamp: <2001/10/15 01:10:21 bruno>
 *
 * Copyright (C) 2001 Pascal Georges
 *
 * This program 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 of the License, 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, write to the Free Software
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */

#ifndef BONUS_H
#define BONUS_H

/* The time, in ms, between the click of the player, making a choice
 * and the moment the bonus appears. Only used when there is no thumb 
 * in the board */
#define TIME_CLICK_TO_BONUS 800

/* BONUS_LAST is equals to the last available bonus type */

typedef enum
{
  BONUS_RANDOM,
  BONUS_SMILEY,
  BONUS_FLOWER,
  BONUS_TUX,
  BONUS_GNU,
  BONUS_LAST
} BonusList;

typedef enum
{
  BOARD_FINISHED_RANDOM,
  BOARD_FINISHED_TUXPLANE,
  BOARD_FINISHED_TUXLOCO,
  BOARD_FINISHED_TOOMANYERRORS,
  BOARD_FINISHED_LAST
} BoardFinishedList;

typedef enum
{
  BOARD_LOOSE,
  BOARD_WIN,
  BOARD_DRAW,
} BonusStatusList;

/*
 * Public BONUS API Entry
 * ----------------------
 */
void	 gc_bonus_display(BonusStatusList, BonusList);
void	 gc_bonus_end_display(BoardFinishedList);

#endif
