-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathView.h
More file actions
55 lines (36 loc) · 911 Bytes
/
View.h
File metadata and controls
55 lines (36 loc) · 911 Bytes
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
//
// Created by viviane on 25/11/2021.
//
#ifndef JOGO_VIEW_H
#define JOGO_VIEW_H
#include "Player.h"
#include "Being.h"
#include "InputManager.h"
#include <SFML/Graphics.hpp>
using namespace entities::characters;
namespace menus{
class View : public Being{
protected:
int selectedItem;
sf::Text text[MENU_ITENS];
sf::Sprite* background;
sf::Vector2f backPosition;
sf::Event event;
InputManager *inputs;
Controls controls;
static int menu_speed;
int menu_counter;
static int finalScore;
public:
View();
~View();
void moveUp();
void moveDown();
void setBackground(sf::Sprite* background);
void setPosition(float x, float y);
sf::Vector2f getPosition();
void renderMenu(int items);
void loadFont();
};
}
#endif //JOGO_VIEW_H