#include <2D_bsp.h>
Inheritance diagram for cWall:
Public Member Functions | |
cWall () | |
constructeur par defaut, construit un mur entre (0,0) et (0,0) | |
cWall (cWall &wall) | |
copy constructeur | |
cWall (cPoint2D &A, cPoint2D &B) | |
constucteur, le mur va de A à Bdgd | |
void | Display (CDisplay *display) |
BSP_POSITION_DIVIDER | Get_Position_Divider (cWall &w) |
retourne la position du mur 'w' par rapport à ce mur | |
BSP_POSITION_DIVIDER | Get_Position_Divider_And_Split (cWall &w, cWall &w_front, cWall &w_back) |
retourne la position du mur 'w' par rapport à ce mur et le split si necessaire | |
double | Get_Length () |
retourne la longueur du mur | |
Public Attributes | |
cPoint2D | p0 |
point de depart du mur | |
cPoint2D | p1 |
point d'arrivée du mur | |
Private Member Functions | |
virtual BSP_POSITION_POINT | Get_Position_Point (cPoint2D &p) |
retourne la position du poit 'p' par rapport à ce mur | |
Friends | |
std::ostream & | operator<< (std::ostream &os, const cWall &ex) |
cette classe gere tous les murs (ie. pas forcement verticaux ou horizontaux)
Definition at line 38 of file 2D_bsp.h.
|
constructeur par defaut, construit un mur entre (0,0) et (0,0)
Definition at line 20 of file 2D_bsp.cpp. |
|
copy constructeur
Definition at line 27 of file 2D_bsp.cpp. |
|
constucteur, le mur va de A à Bdgd
Definition at line 34 of file 2D_bsp.cpp. |
|
Definition at line 57 of file 2D_bsp.cpp. References Display(), Draw_Line(), p0, and p1. Referenced by Display(). |
|
retourne la longueur du mur
Definition at line 49 of file 2D_bsp.cpp. References cPoint2D::Get_X(), cPoint2D::Get_Y(), p0, and p1. Referenced by cHV_Wall::cHV_Wall(). |
|
retourne la position du mur 'w' par rapport à ce mur
Definition at line 64 of file 2D_bsp.cpp. References BSP_POSITION_DIVIDER, BSP_POSITION_POINT, DIVIDER_BACK, DIVIDER_CROSS, DIVIDER_FRONT, DIVIDER_ON, Get_Position_Divider(), Get_Position_Point(), p0, p1, POINT_BACK, POINT_FRONT, and POINT_ON. Referenced by Get_Position_Divider(). |
|
retourne la position du mur 'w' par rapport à ce mur et le split si necessaire
si la position est 'DIVIDER_CROSS' alors Definition at line 41 of file 2D_bsp.cpp. References BSP_POSITION_DIVIDER, DIVIDER_ON, and Get_Position_Divider_And_Split(). Referenced by Get_Position_Divider_And_Split(). |
|
retourne la position du poit 'p' par rapport à ce mur
Reimplemented in cHV_Wall. Definition at line 72 of file 2D_bsp.h. References BSP_POSITION_POINT, Get_Position_Point(), and POINT_ON. Referenced by Get_Position_Divider(), and Get_Position_Point(). |
|
Definition at line 10 of file 2D_bsp.cpp. |
|
point de depart du mur
Definition at line 67 of file 2D_bsp.h. Referenced by cWall(), Display(), cHV_Wall::Get_Intersection(), Get_Length(), Get_Position_Divider(), cHV_Wall::Get_Position_Divider_And_Split(), operator<<(), and cSquare_Area::split(). |
|
point d'arrivée du mur
Definition at line 68 of file 2D_bsp.h. Referenced by cWall(), Display(), Get_Length(), Get_Position_Divider(), cHV_Wall::Get_Position_Divider_And_Split(), and operator<<(). |