2011-m2s3-city-builder/rules/mur.hh
2012-01-20 02:00:22 +01:00

43 lines
702 B
C++

#ifndef _RULES_MUR_HH_
#define _RULES_MUR_HH_
#include "all_includes.hh"
class MurQuad: public Chose {
private :
Quad c;
Quad ch;
bool window; // Contient une fenêtre ou non.
Quad windowPos;
Quad windowPosh;
bool top;
bool bottom;
public :
MurQuad(Quad c, Quad ch, bool _window=false, bool _top=false, bool _bottom=false);
virtual void triangulation();
virtual bool split();
virtual void getBoundingBoxPoints();
void setWindow();
};
class PlancherPlafond: public Chose {
public:
enum Type {
PLANCHER,
PLAFOND
};
private:
Quad c;
Type type;
public:
PlancherPlafond(Quad _c, Type _type);
virtual void triangulation();
virtual void getBoundingBoxPoints();
};
#endif