Pacman  1.0
Pacman game
Gomme.h
Aller à la documentation de ce fichier.
1 #ifndef GOMME_H
2 #define GOMME_H
3 
4 #include "constants.h"
5 #include <SDL2/SDL.h>
6 #include <iostream>
7 #include <memory>
8 
16 class Gomme {
17  public:
18  Gomme(int x, int y, SDL_Rect sprite);
19  ~Gomme();
20  void render(SDL_Renderer *renderer, SDL_Texture *texture);
21  int getX() const;
22  int getY() const;
23  int getType() const;
24 
25  private:
26  int x_pixel;
27  int y_pixel;
28  SDL_Rect sprite;
29  int type;
30 };
31 
32 #endif /* GOMME_H */
Gomme class.
Definition: Gomme.h:16
int type
Definition: Gomme.h:29
SDL_Rect sprite
Definition: Gomme.h:28
void render(SDL_Renderer *renderer, SDL_Texture *texture)
Definition: Gomme.cpp:21
int getY() const
Definition: Gomme.cpp:17
int getType() const
Definition: Gomme.cpp:19
~Gomme()
Definition: Gomme.cpp:13
int getX() const
Definition: Gomme.cpp:15
int x_pixel
Definition: Gomme.h:26
Gomme(int x, int y, SDL_Rect sprite)
Definition: Gomme.cpp:3
int y_pixel
Definition: Gomme.h:27