-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPlayer.h
More file actions
32 lines (25 loc) · 807 Bytes
/
Player.h
File metadata and controls
32 lines (25 loc) · 807 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
#ifndef PLAYER_H_INCLUDED
#define PLAYER_H_INCLUDED
#include <deque>
#include <SFML/Window.hpp>
#include <SFML/OpenGL.hpp>
#include "Object.h"
enum control_list {W, S, A, D, Up, Down, Left, Right};
class Camera : public Object {
public:
Camera(Point, Point);
private:
};
class Player : public Object {
public:
Player(std::deque<Point>::reverse_iterator); // Constructor - Sets up geometry
std::deque<Point>::reverse_iterator tp; // Closest track point - Need tp for my bunghole
float trackDist(std::deque<Point>::reverse_iterator);
void Render(float);
double score;
// Controls (Follows control_list order)
sf::Keyboard::Key GetControls(control_list);
sf::Keyboard::Key controls[8];
private:
};
#endif // PLAYER_H_INCLUDED