3è itération
[PACMAN.git] / gameplay / pacman.h
blob21eee09407d0ff1d864750f047db00b6cba0d99d
1 #ifndef PACMAN_H
2 #define PACMAN_H
4 #include <string>
5 #include <QString>
6 #include "engines/entity.h"
7 #include "gameplay/movment.h"
8 #include "engines/core_kernel.h"
10 namespace gameplay
12 class Pacman : public engine::Entity
14 private:
15 QString img_path;
16 void (*head)(Entity);
17 public:
18 Pacman(int x, int y, Core_kernel *ker, int width=15, int height=15);
19 Pacman(int x, int y, QString img_path, Core_kernel *ker, int width=15, int height=15);
20 void set_heading(void (*head)(Entity));
21 void move();
22 void update_entity();
23 QString get_img_path(){return img_path;}
27 #endif // PACMAN_H