2011-m2s3-city-builder/rules/batiment.hh

25 lines
504 B
C++

#ifndef _RULES_BATIMENT_HH_
#define _RULES_BATIMENT_HH_
#include "all_includes.hh"
// RectangleRoutes est un quadrilatère de routes avec des angles aux coins égaux à 90°.
class Batiment : public Chose {
public:
Vertex ne;
Vertex se;
Vertex sw;
Vertex nw;
public:
static const int minHeight = 400;
static const int maxHeight = 800;
public:
Batiment(Vertex ne, Vertex se, Vertex sw, Vertex nw);
int width();
int height();
virtual bool subdivide();
virtual void triangulation();
};
#endif