2011-m2s3-city-builder/rules/batiment.hh
2011-11-24 00:47:00 +01:00

24 lines
518 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 sw;
int seed;
public:
Batiment(Vertex ne, Vertex sw);
int width();
int height();
virtual void subdivide();
virtual void triangulation();
};
std::ostream& operator<<(std::ostream& os, const Batiment& r);
std::ostream& operator<<(std::ostream& os, const Batiment* r);
#endif