aboutsummaryrefslogtreecommitdiffstats
path: root/src/gameScreen.h
blob: a745051bd2641e167e6754d25a3a7b3eef4aaecf (plain) (blame)
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
#include "gameCommon.h"
#include "animation.h"
#include "ui.h"
#include "clicky.h"
#include "shop.h"

#ifndef GAME_SCREEN_H
#define GAME_SCREEN_H

#define RUN_SHOOTER_GAME_EVERY 100

typedef enum GamePlayPlace {
    CLICKY_DESKTOP_PLACE,
    SHOP_PLACE
} GamePlayPlace;

typedef enum ToolId {
    CLICKER_TOOL,
    BOOPER_TOOL
} ToolId;

#define TOOL_COUNT 2

typedef struct GameScreen {
    GamePlayPlace place;

    TexturedButton toGameButton;
    TexturedButton toEmperorsEmporiumButton;

    Shop shop;

    ToolId tool;
} GameScreen;

void initGameScreen(GameScreen* gameScreen, Game* game);
void updateGameScreen(GameScreen* gameScreen, Game* game);
void closeGameScreen(GameScreen* gameScreen);

void setGameScreenTool(GameScreen* gameScreen, ToolId tool);

#endif