EngineLib
 All Classes Functions
Score.h
1 /*
2  * Score.h
3  *
4  * Created on: 24.10.2017
5  * Author: robert
6  */
7 
8 #ifndef SCORE_H_
9 #define SCORE_H_
10 #include "BaseEngine.h"
11 
12 #include "SDL2/SDL.h"
13 #include "SDL2/SDL_image.h"
26 class Score {
27 public:
28  Score(SDL_Renderer *renderer);
29  virtual ~Score();
35  int loadScore(const char *filename);
44  void drawScore(int x,int y,int score);
45 
46 
47 private:
48  int print_each_digit(int x, int y, int d);
49  SDL_Renderer *renderer;
50  SDL_Texture *texture;
51  int tilewidth,tileheight,pos;
52  SDL_Rect cpy,dst;
53 
54 };
55 
56 #endif /* SCORE_H_ */
Definition: Score.h:26
void drawScore(int x, int y, int score)
Definition: Score.cpp:39
int loadScore(const char *filename)
Definition: Score.cpp:18