aboutsummaryrefslogtreecommitdiff
path: root/game/view.h
blob: a9d196b0e88dd9374fe128a8031fb0aa66ae4e51 (plain)
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
#ifndef VIEW_H
#define VIEW_H

#include <vector>
#include <functional>

#include "gst.h"
#include "menu.h"

class View {
    public:
    View (vec2 res) : res(res) {}
    
    vec2 res;
    
    int selected_ground {-1};
    int selected_entity {-1};
    int cursor_ground {-1};
    int cursor_entity {-1};
    int back {-1};
    int opt {-1};
    std::vector<int> moves;
    std::vector<int> attacks;
    std::vector<int> builds;
    
    Menu_unit menu_unit;
    Menu_day menu_day;
    Menu_build menu_build;
    Menu_train menu_train;
    
    void process (Gst &gst, vec2 cam, vec2 mouse, int *mheld);
};

#endif