www

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

mur.hh (988B)


      1 #ifndef _RULES_MUR_HH_
      2 #define _RULES_MUR_HH_
      3 
      4 #include "all_includes.hh"
      5 
      6 class MurQuad: public Chose {
      7 private :
      8 	Quad c;
      9 	Quad ch;
     10 	bool window;        // Contient une fenĂȘtre ou non.
     11 	Quad windowPos;
     12 	Quad windowPosh;
     13 	bool top;
     14 	bool bottom;
     15 	bool door;
     16 
     17 public :
     18 
     19 	MurQuad(Quad c, Quad ch, bool _window=false, bool _top=false, bool _bottom=false, bool _door=false);
     20 	virtual void triangulation();
     21 	virtual void split();
     22 	virtual void getBoundingBoxPoints();
     23 	void setWindowOrDoor();
     24 };
     25 
     26 class PlancherPlafond: public Chose {
     27 public:
     28 	enum Type {
     29 		PLANCHER,
     30 		PLAFOND
     31 	};
     32 private:
     33 	Quad c;
     34 	Type type;
     35 
     36 public:
     37 	PlancherPlafond(Quad _c, Type _type);
     38 	virtual void triangulation();
     39 	virtual void getBoundingBoxPoints();
     40 };
     41 
     42 class PlancherPlafondTri: public Chose {
     43 public:
     44 	enum Type {
     45 		PLANCHER,
     46 		PLAFOND
     47 	};
     48 private:
     49 	Triangle c;
     50 	Type type;
     51 
     52 public:
     53 	PlancherPlafondTri(Triangle _c, Type _type);
     54 	virtual void triangulation();
     55 	virtual void getBoundingBoxPoints();
     56 };
     57 
     58 #endif
     59