2016-03-28 15:23:47 +00:00
|
|
|
#ifndef __PTF_VIEW_HPP__
|
|
|
|
#define __PTF_VIEW_HPP__
|
|
|
|
|
|
|
|
#include <SFML/Graphics.hpp>
|
|
|
|
|
|
|
|
class Manager;
|
|
|
|
class Object;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Classe abstraite pour les vues
|
|
|
|
*/
|
|
|
|
class View {
|
2016-03-30 12:01:41 +00:00
|
|
|
protected:
|
|
|
|
Manager& manager;
|
|
|
|
|
2016-03-28 15:23:47 +00:00
|
|
|
public:
|
2016-03-30 12:01:41 +00:00
|
|
|
View(Manager& manager);
|
2016-03-29 06:36:14 +00:00
|
|
|
virtual ~View();
|
2016-03-28 17:57:55 +00:00
|
|
|
|
2016-03-28 15:23:47 +00:00
|
|
|
/**
|
2016-04-08 00:35:17 +00:00
|
|
|
* Demande le passage à la frame suivante sur cette vue
|
2016-03-28 15:23:47 +00:00
|
|
|
*/
|
2016-04-08 00:35:17 +00:00
|
|
|
virtual void frame() = 0;
|
2016-03-28 15:23:47 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|