Fix for the problem that SDL applications exited
[AROS-Contrib.git] / Games / lbreakout2 / client / slot.h
bloba60e7414c81fad7e7c49bef82acae7a1fa39350d
1 /***************************************************************************
2 slot.h - description
3 -------------------
4 begin : Sat Dec 15 2001
5 copyright : (C) 2001 by Michael Speck
6 email : kulkanie@gmx.net
7 ***************************************************************************/
9 /***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
18 #ifndef __SLOT_H
19 #define __SLOT_H
21 #include "hint.h"
23 typedef struct {
24 char setname[32];
25 int diff;
26 int player_count; /* 0 - MAX_PLAYERS-1 */
27 char player_names[MAX_PLAYERS][32];
28 int player_cur_level_id[MAX_PLAYERS];
29 int cur_player; /* 0 - MAX_PLAYERS-1 */
30 int player_scores[MAX_PLAYERS];
31 int player_lives[MAX_PLAYERS];
32 int gameSeed; /* for bonus levels and FREAKOUT order */
33 } GameSlot;
36 ====================================================================
37 Load/save a game to a slot. 'slot_load' returns 1 on success and
38 updates gs. 'slot_save' takes content of 'gs' and saves it.
39 'slot_delete' deletes the savegame.
40 ====================================================================
42 int slot_load( int slot_id, GameSlot *gs );
43 int slot_save( int slot_id, GameSlot *gs );
44 int slot_delete( int slot_id );
47 ====================================================================
48 Build info hint from game saved to slot 'slot_id'.
49 ====================================================================
51 void slot_update_hint( int slot_id, Hint *hint );
53 #endif