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-07 22:19:01 +00:00
|
|
|
* Demande le passage à la frame suivante sur cette vue,
|
|
|
|
* renvoie true si le rendu de la frame a été interrompu
|
2016-03-28 15:23:47 +00:00
|
|
|
*/
|
2016-04-07 22:19:01 +00:00
|
|
|
virtual bool frame() = 0;
|
2016-03-28 15:23:47 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|