-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmenu.h
44 lines (36 loc) · 894 Bytes
/
menu.h
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
/*
* menu.h
* Hedgewood
*
* Prozedurale Programmierung WS10/11 TUHH
*
* Created by Tobias Conradi
* Version 09.01.11
*
* Copyright 2011 Gruppe 34. All rights reserved.
*
* Description:
*
*
*/
#ifndef MENU_H
#define MENU_H
#include "about.h"
#include "highscore.h"
#include "structs.h"
#include "ingameMenu.h"
#include "gameloop.h"
#define STARTEN_BUTTON 0
#define HIGHSCORE_BUTTON 1
#define ABOUT_BUTTON 2
#define QUIT_BUTTON 3
#define BUTTONCOUNT 4
/*function to be called to start the menu*/
/*displays the main Menu */
void menuStart(SDL_Surface *screen, dataStore *data);
void setupMenu(SDL_Surface *screen, struct menuDataStore *menuData);
/*draws the menu*/
void drawMenu(SDL_Surface *screen, menuDataStore *menuData);
/*SDL Event-Loop handels user interaction */
int mainMenuLoop(SDL_Surface *screen, struct menuDataStore *menuData, dataStore *data);
#endif