aboutsummaryrefslogtreecommitdiffstats
path: root/src/gameScreen.h
blob: dd8bf98a53b4854853120de326a9c8fca01a9b52 (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
42
43
44
45
46
47
48
#include "gameCommon.h"
#include "animation.h"
#include "ui.h"
#include "clicky.h"
#include "shop.h"
#include "gack.h"

#ifndef GAME_SCREEN_H
#define GAME_SCREEN_H

#define RUN_SHOOTER_GAME_COUNT_START 500

typedef enum GamePlayPlace {
    CLICKY_DESKTOP_PLACE,
    SHOP_PLACE,
    GACK_PLACE
} GamePlayPlace;

typedef enum ToolId {
    CLICKER_TOOL,
    BOOPER_TOOL
} ToolId;

#define TOOL_COUNT 2

typedef struct GameScreen {
    GamePlayPlace place;

    TexturedButton toGameButton;
    TexturedButton toEmperorsEmporiumButton;
    TexturedButton toGackPenguinButton;

    Shop shop;
    Gack gack;

    ToolId tool;

    TexturedButton napTimeButton;
    int nextShootingStoneCount;
} GameScreen;

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

void setGameScreenTool(GameScreen* gameScreen, ToolId tool);

#endif