blob: 6d7acd719707feb2d204a3838dc4496a19c55378 (
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
35
36
37
38
39
40
41
42
43
44
|
#include "GameplayScreen.h"
GameplayScreen::GameplayScreen(std::map<int, Input>& input_map):
m_input_map(input_map),
game(GameWorld(input_map))
{
//game = GameWorld(m_input_map);
}
void GameplayScreen::mousePosEvent(double xpos, double ypos){
game.mousePosEvent(xpos, ypos);
}
void GameplayScreen::mouseButtonEvent(int button, int action){
game.mouseButtonEvent(button, action);
}
void GameplayScreen::scrollEvent(double distance){
game.scrollEvent(distance);
}
void GameplayScreen::update(double deltaTime){
game.update(deltaTime);
}
void GameplayScreen::draw(){
game.draw();
}
void GameplayScreen::keyEvent(int key, int action){
game.keyEvent(key, action);
}
void GameplayScreen::framebufferResizeEvent(int width, int height){
game.framebufferResizeEvent(width, height);
}
void GameplayScreen::windowResizeEvent(int width, int height){
game.windowResizeEvent(width, height);
}
|