panthema / 2006 / SDIOS06 / sdios06 / src / sdljump / src / records.h (Download File)
 
/*
 * SDLjump
 * (C) 2005 Juan Pedro BolĂ­var Puente
 * 
 * This simple but addictive game is based on xjump. Thanks for its author for
 * making such a great game :-)
 * 
 * records.h
 */

/*
    Copyright (C) 2003-2004, Juan Pedro Bolivar Puente

    SDLjump 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.

    SDLjump 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 SDLjump; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/

#ifndef _RECORDS_H
#define _RECORDS_H

#include "sdljump.h"

int loadRecords(char* fname, records_t* rec);

int writeRecords(char* fname, records_t* rec);

int addRecord(records_t* rtab, records_t* rec, int pos);

int checkRecord (records_t* rtab, int floor);

void makeRecord(records_t* rec, char* name, int floor, int time);

void defaultRecords(records_t* rec);

void freeRecords(records_t* rec);

#endif /* _RECORDS_H */