+void initialise(DrawingWindow& w)
+{
+ largeurMont = frand(largeurMin, largeurMax);
+ hauteurMont = frand(hauteurMin, hauteurMax);
+ wnd = frand(-30, 30);
+ w.setBgColor("skyblue");
+ w.clearGraph();
+ dessineTerrain(w, largeurMont, hauteurMont);
+ dessineVent(w, wnd);
+ dessineChateau(w, positionChateau1);
+ dessineChateau(w, positionChateau2);
+ w.setColor("wheat");
+ w.drawText(rtowX(w, positionChateau1), rtowY(w, 0) + 8, "Joueur 1",
+ Qt::AlignHCenter);
+ w.drawText(rtowX(w, positionChateau2), rtowY(w, 0) + 8, "Joueur 2",
+ Qt::AlignHCenter);
+ std::stringstream s;
+ s << score1 << " / " << score2;
+ w.drawText(rtowX(w, 0), rtowY(w, 0) + 8, s.str().c_str(),
+ Qt::AlignHCenter);
+}
+