2007-11-04 03:34:51 +00:00
|
|
|
/*
|
2012-03-17 20:01:54 +00:00
|
|
|
BobToolz plugin for GtkRadiant
|
|
|
|
Copyright (C) 2001 Gordon Biggans
|
2007-11-04 03:34:51 +00:00
|
|
|
|
2012-03-17 20:01:54 +00:00
|
|
|
This library is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU Lesser General Public
|
|
|
|
License as published by the Free Software Foundation; either
|
|
|
|
version 2.1 of the License, or (at your option) any later version.
|
2007-11-04 03:34:51 +00:00
|
|
|
|
2012-03-17 20:01:54 +00:00
|
|
|
This library is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
Lesser General Public License for more details.
|
2007-11-04 03:34:51 +00:00
|
|
|
|
2012-03-17 20:01:54 +00:00
|
|
|
You should have received a copy of the GNU Lesser General Public
|
|
|
|
License along with this library; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*/
|
2007-11-04 03:34:51 +00:00
|
|
|
|
2012-03-17 20:01:54 +00:00
|
|
|
#include "StdAfx.h" // Added by ClassView
|
2007-11-04 03:34:51 +00:00
|
|
|
|
|
|
|
class CBspPoint {
|
|
|
|
public:
|
2012-03-17 20:01:54 +00:00
|
|
|
float p[3];
|
2007-11-04 03:34:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class CBspPortal {
|
|
|
|
public:
|
2012-03-17 20:01:54 +00:00
|
|
|
CBspPortal();
|
|
|
|
~CBspPortal();
|
2007-11-04 03:34:51 +00:00
|
|
|
|
2012-03-17 20:01:54 +00:00
|
|
|
unsigned point_count;
|
|
|
|
CBspPoint *point;
|
|
|
|
bool Build( char *def, unsigned int pointCnt, bool bInverse );
|
2007-11-04 03:34:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
class CBspNode {
|
|
|
|
public:
|
2012-03-17 20:01:54 +00:00
|
|
|
CBspPortal *portal;
|
|
|
|
unsigned int portal_count;
|
2007-11-04 03:34:51 +00:00
|
|
|
|
2012-03-17 20:01:54 +00:00
|
|
|
bool AddPortal( char* def, unsigned int pointCnt, bool bInverse );
|
|
|
|
unsigned int portal_next;
|
|
|
|
CBspNode();
|
|
|
|
~CBspNode();
|
2007-11-04 03:34:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
class CPortals {
|
|
|
|
public:
|
|
|
|
|
2012-03-17 20:01:54 +00:00
|
|
|
CPortals();
|
|
|
|
~CPortals();
|
2007-11-04 03:34:51 +00:00
|
|
|
|
2012-03-17 20:01:54 +00:00
|
|
|
void Load(); // use filename in fn
|
|
|
|
void Purge();
|
2007-11-04 03:34:51 +00:00
|
|
|
|
2012-03-17 20:01:54 +00:00
|
|
|
char fn[PATH_MAX];
|
|
|
|
CBspNode *node;
|
2007-11-04 03:34:51 +00:00
|
|
|
|
2012-03-17 20:01:54 +00:00
|
|
|
unsigned int node_count;
|
2007-11-04 03:34:51 +00:00
|
|
|
};
|