2004-04-08 11:43:06 +02:00
|
|
|
/* Eliot */
|
|
|
|
/* Copyright (C) 1999 Antoine Fraboulet */
|
|
|
|
/* antoine.fraboulet@free.fr */
|
|
|
|
/* */
|
|
|
|
/* 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
|
|
|
|
2004-08-07 20:10:42 +02:00
|
|
|
/* $Id: pldrack.h,v 1.2 2004/08/07 18:10:42 ipkiss Exp $ */
|
2004-04-08 11:43:06 +02:00
|
|
|
|
|
|
|
#ifndef _PLAYEDRACK_H_
|
|
|
|
#define _PLAYEDRACK_H_
|
|
|
|
|
|
|
|
#if defined(__cplusplus)
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/*************************
|
|
|
|
* A Playedrack is
|
|
|
|
*
|
|
|
|
*************************/
|
|
|
|
|
|
|
|
typedef struct tplayedrack* Playedrack;
|
|
|
|
|
|
|
|
/*************************
|
|
|
|
* general routines
|
|
|
|
*************************/
|
|
|
|
|
|
|
|
Playedrack Playedrack_create (void);
|
|
|
|
void Playedrack_init (Playedrack);
|
|
|
|
void Playedrack_destroy (Playedrack);
|
|
|
|
void Playedrack_copy (Playedrack dst, Playedrack src);
|
|
|
|
|
|
|
|
/*************************
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*************************/
|
|
|
|
|
|
|
|
void Playedrack_resetnew (Playedrack);
|
|
|
|
|
|
|
|
void Playedrack_getold (Playedrack,Rack);
|
|
|
|
void Playedrack_getnew (Playedrack,Rack);
|
|
|
|
void Playedrack_getrack (Playedrack,Rack);
|
|
|
|
|
|
|
|
void Playedrack_setold (Playedrack,Rack);
|
|
|
|
void Playedrack_setnew (Playedrack,Rack);
|
|
|
|
|
|
|
|
/*************************
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*************************/
|
|
|
|
|
|
|
|
int Playedrack_empty (Playedrack);
|
|
|
|
int Playedrack_ntiles (Playedrack);
|
|
|
|
int Playedrack_nnew (Playedrack);
|
|
|
|
int Playedrack_nold (Playedrack);
|
|
|
|
|
|
|
|
/*************************
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*************************/
|
|
|
|
|
|
|
|
void Playedrack_addnew (Playedrack,tile_t);
|
|
|
|
void Playedrack_addold (Playedrack,tile_t);
|
|
|
|
void Playedrack_getnewtiles (Playedrack,tile_t*);
|
|
|
|
void Playedrack_getoldtiles (Playedrack,tile_t*);
|
2004-08-07 20:10:42 +02:00
|
|
|
void Playedrack_getalltiles (Playedrack,tile_t*);
|
2004-04-08 11:43:06 +02:00
|
|
|
|
2004-08-07 20:10:42 +02:00
|
|
|
int Playedrack_checkrack (Playedrack,int);
|
2004-04-08 11:43:06 +02:00
|
|
|
|
|
|
|
/*************************
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*************************/
|
|
|
|
|
|
|
|
#if defined(__cplusplus)
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|