mirror of
https://github.com/ZDoom/zdbsp.git
synced 2024-11-28 06:32:08 +00:00
24d4f0b45c
SVN r12 (trunk)
40 lines
703 B
Text
40 lines
703 B
Text
#include "zdbsp.h"
|
|
#include "tarray.h"
|
|
#include "doomdata.h"
|
|
|
|
class FRejectBuilder
|
|
{
|
|
public:
|
|
FRejectBuilder (FLevel &level);
|
|
~FRejectBuilder ();
|
|
|
|
BYTE *GetReject ();
|
|
|
|
private:
|
|
struct Portal
|
|
{
|
|
const MapSubsector *Subsector;
|
|
const WideVertex *Left;
|
|
const WideVertex *Right;
|
|
};
|
|
enum ESegSeeStatus
|
|
{
|
|
MIGHT_SEE,
|
|
CAN_SEE,
|
|
CANNOT_SEE
|
|
};
|
|
|
|
void BuildReject ();
|
|
void TracePath (int subsector, const MapSegGL *window);
|
|
void TracePathDeep (const MapSegGL *window);
|
|
inline const WideVertex *GetVertex (WORD vertnum);
|
|
|
|
BYTE *SubSeeMatrix;
|
|
WORD *SegSubsectors;
|
|
TArray<Portal> PortalStack;
|
|
|
|
FLevel &Level;
|
|
|
|
int SourceRow;
|
|
int SourceSeg, SegRow;
|
|
};
|