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
|
|
|
|
|
|
|
#include "DBobView.h"
|
|
|
|
#include "DVisDrawer.h"
|
|
|
|
#include "DTrainDrawer.h"
|
|
|
|
#include "DTreePlanter.h"
|
|
|
|
|
|
|
|
extern DBobView* g_PathView;
|
|
|
|
extern DVisDrawer* g_VisView;
|
|
|
|
extern DTrainDrawer* g_TrainView;
|
|
|
|
extern DTreePlanter* g_TreePlanter;
|
|
|
|
|
|
|
|
// intersect stuff
|
2012-03-17 20:01:54 +00:00
|
|
|
#define BRUSH_OPT_WHOLE_MAP 0
|
|
|
|
#define BRUSH_OPT_SELECTED 1
|
2007-11-04 03:34:51 +00:00
|
|
|
|
|
|
|
// defines for stairs
|
2012-03-17 20:01:54 +00:00
|
|
|
#define MOVE_NORTH 0
|
|
|
|
#define MOVE_SOUTH 1
|
|
|
|
#define MOVE_EAST 2
|
|
|
|
#define MOVE_WEST 3
|
2007-11-04 03:34:51 +00:00
|
|
|
|
2012-03-17 20:01:54 +00:00
|
|
|
#define STYLE_ORIGINAL 0
|
|
|
|
#define STYLE_BOB 1
|
|
|
|
#define STYLE_CORNER 2
|
2007-11-04 03:34:51 +00:00
|
|
|
|
|
|
|
// defines for doors
|
2012-03-17 20:01:54 +00:00
|
|
|
#define DIRECTION_NS 0
|
|
|
|
#define DIRECTION_EW 1
|
2007-11-04 03:34:51 +00:00
|
|
|
|
|
|
|
// help
|
|
|
|
void LoadLists();
|
|
|
|
|
|
|
|
|
|
|
|
// djbob
|
|
|
|
void DoIntersect( void );
|
|
|
|
void DoPolygonsTB( void );
|
2012-03-17 20:01:54 +00:00
|
|
|
void DoPolygons( vec3_t vMin, vec3_t vMax );
|
2007-11-04 03:34:51 +00:00
|
|
|
void DoFixBrushes( void );
|
|
|
|
void DoResetTextures( void );
|
2012-03-17 20:01:54 +00:00
|
|
|
void DoBuildStairs( vec3_t vMin, vec3_t vMax );
|
|
|
|
void DoBuildDoors( vec3_t vMin, vec3_t vMax );
|
2007-11-04 03:34:51 +00:00
|
|
|
void DoPathPlotter( void );
|
2012-03-17 20:01:54 +00:00
|
|
|
void DoPitBuilder( vec3_t vMin, vec3_t vMax );
|
2007-11-04 03:34:51 +00:00
|
|
|
void DoCTFColourChanger( void );
|
|
|
|
void DoMergePatches( void );
|
|
|
|
void DoSplitPatch( void );
|
|
|
|
void DoVisAnalyse( void );
|
|
|
|
void DoTrainThing( void );
|
|
|
|
void DoTrainPathPlot( void );
|
|
|
|
void DoCaulkSelection( void );
|
|
|
|
void DoTreePlanter( void );
|
|
|
|
void DoDropEnts( void );
|
|
|
|
void DoMakeChain( void );
|
|
|
|
void DoFlipTerrain( void );
|