File: manager.h

package info (click to toggle)
lbreakout2 2.5.2-2.1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 6,040 kB
  • ctags: 2,374
  • sloc: ansic: 20,911; sh: 2,891; makefile: 374
file content (77 lines) | stat: -rw-r--r-- 2,608 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/***************************************************************************
                          manager.h  -  description
                             -------------------
    begin                : Thu Sep 20 2001
    copyright            : (C) 2001 by Michael Speck
    email                : kulkanie@gmx.net
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   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.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef __MANAGER_H
#define __MANAGER_H

#include "lbreakout.h"
#include "value.h"
#include "item.h"
#include "menu.h"

/*
====================================================================
Actions generated by menu
====================================================================
*/
enum {
	ACTION_NONE = 0,
	ACTION_QUIT,
	ACTION_PLAY_LBR,
	ACTION_PLAY_CUSTOM,
	ACTION_SHOW_HIGHSCORE,
	ACTION_EDIT,
	ACTION_QUICK_HELP,
	ACTION_CONNECT,
	ACTION_CLIENT,
        ACTION_RESUME_0
};

/*
====================================================================
Load/delete background and create and link all menus
====================================================================
*/
void manager_create();
void manager_delete();
/*
====================================================================
Run menu until request sent
====================================================================
*/
int manager_run();
/*
====================================================================
Fade in/out background of menu
====================================================================
*/
void manager_fade( int type );
/*
====================================================================
Update screen without menu itself as this is shown next frame.
====================================================================
*/
void manager_show();

/*
====================================================================
Update set list when creating a new file for editor.
====================================================================
*/
void manager_update_set_list();

#endif