Sophie

Sophie

distrib > Mandriva > 2011.0 > i586 > media > contrib-release-debug > by-pkgid > b38e5341381d5c33d07bc32f38bade2c > files > 23

foobillard-debug-3.0a-8mdv2011.0.i586.rpm

/* evaluate_move.c
**
**    evaluate moves for dfferent gametypes
**    Copyright (C) 2001  Florian Berger
**    Email: harpin_floh@yahoo.de, florian.berger@jk.uni-linz.ac.at
**
**    This program is free software; you can redistribute it and/or modify
**    it under the terms of the GNU General Public License Version 2 as
**    published by the Free Software Foundation;
**
**    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 EVALUATE_MOVE_H
#define EVALUATE_MOVE_H

#include "billard.h"
#include "billmove.h"
#include "player.h"

#ifndef EVALUATE_C
extern void (* evaluate_last_move)( struct Player * player, int * actual_player,
                                    BallsType * pballs, int * pqueue_view, float * pXque );
#endif


void evaluate_last_move_8ball    ( struct Player * player, int * actual_player,
                                   BallsType * pballs, int * pqueue_view, float * pXque );

void evaluate_last_move_9ball    ( struct Player * player, int * actual_player,
                                   BallsType * pballs, int * pqueue_view, float * pXque );

void evaluate_last_move_carambol ( struct Player * player, int * actual_player,
                                   BallsType * pballs, int * pqueue_view, float * pXque );

void evaluate_last_move_snooker  ( struct Player * player, int * actual_player,
                                   BallsType * pballs, int * pqueue_view, float * pXque );


void setfunc_evaluate_last_move(void (* eval_func)( struct Player * player, int * actual_player,
                                                    BallsType * pballs, int * pqueue_view, float * pXque ) );

#endif