-
Notifications
You must be signed in to change notification settings - Fork 2
/
ui_game_sdl.h
58 lines (50 loc) · 1.29 KB
/
ui_game_sdl.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
45
46
47
48
49
50
51
52
53
54
55
56
57
#ifndef _GAME_UI_SDL__H
#define _GAME_UI_SDL__H
#include "ui_game.h"
#include "id.h"
struct StatusArea
{
Ifel* ifel;
SDL_Surface* surface;
Player* player;
Image** playerIconList;
int playerIconCount;
//CClonopolyBoard& board;
};
struct SplashScreen
{
Ifel* ifel;
SDL_Surface* surface;
};
class CSDLGameUI : public CGameUI
{
public:
CSDLGameUI();
~CSDLGameUI();
int Init(IfelOnKeyPressedFn kp, IfelOnMouseClickFn mc);
void SplashScreen();
void SetPlayerSquare(int id, const SDL_Rect& loc);
void SetTokenActive(int id);
void Doubles(IfelOnMouseClickFn mc);
bool BuyProperty(const property& p);
bool LiquidateAssets();
void SetPlayerSquare(int id, SDL_Rect& loc);
void SetCurrentPlayerStatus(Player& p);
void ShowOptionsMenu();
void DeleteStatusArea(void);
void SetCurrentPlayerStatusArea(Player* p);
void StatusAreaSetPlayerIconList(Image** l, int count);
void DisableStatusArea(void);
void EnableStatusArea(void);
void DrawStatusArea(Ifel *i);
void DrawSplash(Ifel* i);
protected:
int CreateStatusArea(const SDL_Rect* loc);
int CreateSplashScreen(const SDL_Rect* loc);
protected:
Image* image[ID_IMG_COUNT];
MessageBox* messageBox;
struct StatusArea* status;
struct SplashScreen* splash;
};
#endif // _GAME_UI_SDL__H