Jamie Slowgrove - PGG Assignment 1 - SDL
 All Classes Functions
player.h
1 #pragma once
2 #ifndef PLAYER_H
3 #define PLAYER_H
4 
5 #include "creature.h"
6 
10 class Player : public Creature
11 {
12 private:
13  /*the Player details*/
14  int lives;
15  int score;
16  /*jump variables*/
17  bool gravity;
18  bool landed;
19  bool jump;
20  float gravityF;
21  /*if the player has beat the level*/
22  bool levelComplete;
23 public:
33  Player(Texture *, float, float, int, int);
34 
39  ~Player();
40 
46  void setLives(int);
47 
52  int getLives();
53 
59  void setScore(int);
60 
65  int getScore();
66 
72  void setGravity(bool);
73 
78  bool getGravity();
79 
85  void setLanded(bool);
86 
91  bool getLanded();
92 
98  void setJump(bool);
99 
104  bool getJump();
105 
110  float getGravityF();
111 
117  void setLevelComplete(bool);
118 
123  bool getLevelComplete();
124 };
125 #endif
Player(Texture *, float, float, int, int)
Definition: player.cpp:6
Creates a Creature object that inherits Entity.
Definition: creature.h:10
int getLives()
Definition: player.cpp:47
bool getLevelComplete()
Definition: player.cpp:146
void setScore(int)
Definition: player.cpp:56
bool getJump()
Definition: player.cpp:119
int getScore()
Definition: player.cpp:65
void setJump(bool)
Definition: player.cpp:110
void setLanded(bool)
Definition: player.cpp:92
void setLevelComplete(bool)
Definition: player.cpp:137
Creates a Texture for use with a renderer Creates a Texture from an image file, this can then be used...
Definition: texture.h:13
bool getLanded()
Definition: player.cpp:101
float getGravityF()
Definition: player.cpp:128
~Player()
Definition: player.cpp:31
Creates a Player object that inherits Creature which in turn inherits Entity.
Definition: player.h:10
void setLives(int)
Definition: player.cpp:38
bool getGravity()
Definition: player.cpp:83
void setGravity(bool)
Definition: player.cpp:74