www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 5a7c59537c8cdd31b8d7f6c66147cd75665ff0ce
parent 920d2c84bf62c5c262d6e1209e90f51416ba863d
Author: Yoann <yoann.b87@voila.fr>
Date:   Tue, 20 Dec 2011 15:36:13 +0100

Ajout de la classe Pont pour les batiments.

Diffstat:
Mall_includes.hh | 1+
Mrules/batiment/batimentquad.cpp | 5++++-
2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/all_includes.hh b/all_includes.hh @@ -32,6 +32,7 @@ class Chose; #include "rules/batiment/batimentquad.hh" #include "rules/batiment/batimentquadmaison.hh" #include "rules/batiment/batimentquadjardin.hh" +#include "rules/batiment/batimentquadpont.hh" #include "rules/quartier/quartierquad.hh" #include "rules/quartier/quartierquadangle.hh" diff --git a/rules/batiment/batimentquad.cpp b/rules/batiment/batimentquad.cpp @@ -44,11 +44,12 @@ Chose* BatimentQuad::factory(int seed, int n, Vertex ne, Vertex se, Vertex sw, V Quad q = Quad(ne,se,sw,nw); seed = seed; n = n; + th = th; q.offset(N,-140); q.offset(E,-140); q.offset(S,-140); q.offset(W,-140); - +/* addChild(new TrottoirQuadNormal(lctr+ne,lctr+se,lctr+q.corner[1],lctr+q.corner[0],th,E)); addChild(new TrottoirQuadNormal(lctr+se,lctr+sw,lctr+q.corner[2],lctr+q.corner[1],th,E)); addChild(new TrottoirQuadNormal(lctr+sw,lctr+nw,lctr+q.corner[3],lctr+q.corner[2],th,E)); @@ -64,6 +65,8 @@ Chose* BatimentQuad::factory(int seed, int n, Vertex ne, Vertex se, Vertex sw, V q.offset(this->entry,-400); addChild(new BatimentQuadMaison(lctr+q.corner[0],lctr+q.corner[1],lctr+q.corner[2],lctr+q.corner[3])); +*/ + addChild(new BatimentQuadPont(q.corner[0],q.corner[1],q.corner[2],q.corner[3],300)); return NULL; // pour compilation, à virer. }