-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPlayerControl.h
More file actions
55 lines (50 loc) · 1.6 KB
/
PlayerControl.h
File metadata and controls
55 lines (50 loc) · 1.6 KB
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
#pragma once
#include <SFML\Graphics.hpp>
#include "Camera.h"
#include "Scene\SceneManager.h"
class PlayerControl
{
private:
Player mp_player;
Camera mc_cam;
Tilemap mt_tile;
SceneManager m_sm;
int m_top;
int m_left;
int m_width;
int m_height;
public:
PlayerControl();
~PlayerControl();
/*******************************************/
/* function: createPlayer */
/* description: this funktion creates */
/* the player */
/* */
/* param: RenderWindow */
/* return: */
/* Autor: Moritz Weichert */
/*******************************************/
void createPlayer(sf::RenderWindow &win);
/*******************************************/
/* function: drawPlayer */
/* description: this funktion draws the */
/* player */
/* */
/* param: RenderWindow */
/* return: */
/* Autor: Moritz Weichert */
/*******************************************/
void drawPlayer(sf::RenderWindow &win);
/************************************************/
/* function: playerAktion */
/* description: handels the loop for all the */
/* player aktions */
/* param: RenderWindow, Framerate, Tilemap */
/* return: */
/* Autor: Moritz Weichert */
/************************************************/
void playerAktion(sf::RenderWindow &win,float frametime,Tilemap& t);
float getPlayerPosX();
float getPlayerPosY();
};