4 #include <QtCore/QByteArray> 5 #include <QtCore/QPoint> 7 #include <QtWidgets/QWidget> 8 #include <QtWidgets/QRubberBand> 9 #include <QtWidgets/QProgressBar> 10 #include <QtGui/QImage> 11 #include <QtGui/QPainter> 12 #include <QtGui/QColor> 13 #include <QtGui/qevent.h> 19 #include "../Moteur/actions.h" 22 #include "../Moteur/foret.h" 24 #include "loadwindow.h" 27 enum Colors{Gray, Red, Orange, BlueTrans, BrownCut, Brownie, NBColorsBeforeGreens, Green0, Green1};
43 QPainter* bufferPainter;
44 QImage* pictureForest;
57 void initRubber(QMouseEvent* event);
80 void initialise(
int largeur,
int hauteur,
float proba = 0.60,
float coef_brulure=1.0, std::time_t graine=std::time(0));
93 bool tryInitialise(
int largeur,
int hauteur, std::ifstream* file);
105 bool tryInitialise(
int largeur,
int hauteur, QImage* imageForet,
float coef_brulure);
114 void setColor(Colors colorIndice);
122 void setColor(
const Essence* essence);
133 void razRubber() { rubber= NULL; }
148 int getTailleCell()
const {
return tailleCell; };
149 Foret* getForet()
const {
return forest; };
159 void loadFromPicture(
int largeurImage,
int hauteurImage, QImage* imageForet,
float coef_brulure);
214 void drawCell(
int colonne,
int ligne);
227 void drawList(std::list< Arbre* >* arbres);
265 void mouseMoveEvent(QMouseEvent *event);
266 void mouseReleaseEvent(QMouseEvent *event);
268 void paintEvent(QPaintEvent* event);
295 #endif // FIREWIDGET_H
Definition: loadwindow.h:14
void setWind(int angle, int vitesse)
Definition: foret.cpp:135