]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - contrib/bobtoolz/funchandlers.h
reformat code! now the code is only ugly on the *inside*
[xonotic/netradiant.git] / contrib / bobtoolz / funchandlers.h
index d8c1e33c077d6d21ff4e71a14ae5d8e3db74315f..97c8651c4e76898ff6084bf355f103a2d02beeb8 100644 (file)
@@ -1,72 +1,98 @@
-/*\r
-BobToolz plugin for GtkRadiant\r
-Copyright (C) 2001 Gordon Biggans\r
-\r
-This library is free software; you can redistribute it and/or\r
-modify it under the terms of the GNU Lesser General Public\r
-License as published by the Free Software Foundation; either\r
-version 2.1 of the License, or (at your option) any later version.\r
-\r
-This library is distributed in the hope that it will be useful,\r
-but WITHOUT ANY WARRANTY; without even the implied warranty of\r
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\r
-Lesser General Public License for more details.\r
-\r
-You should have received a copy of the GNU Lesser General Public\r
-License along with this library; if not, write to the Free Software\r
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA\r
-*/\r
-\r
-#include "DBobView.h"\r
-#include "DVisDrawer.h"\r
-#include "DTrainDrawer.h"\r
-#include "DTreePlanter.h"\r
-\r
-extern DBobView* g_PathView;\r
-extern DVisDrawer* g_VisView;\r
-extern DTrainDrawer* g_TrainView;\r
-extern DTreePlanter* g_TreePlanter;\r
-\r
-// intersect stuff\r
-#define BRUSH_OPT_WHOLE_MAP    0\r
-#define BRUSH_OPT_SELECTED     1\r
-\r
-// defines for stairs\r
-#define        MOVE_NORTH      0\r
-#define        MOVE_SOUTH      1\r
-#define        MOVE_EAST       2\r
-#define        MOVE_WEST       3\r
-\r
-#define STYLE_ORIGINAL 0\r
-#define        STYLE_BOB               1\r
-#define        STYLE_CORNER    2\r
-\r
-// defines for doors\r
-#define DIRECTION_NS   0\r
-#define DIRECTION_EW   1\r
-\r
-// help\r
-void LoadLists();\r
-\r
-\r
-// djbob\r
-void DoIntersect( void );\r
-void DoPolygonsTB( void );\r
-void DoPolygons(vec3_t vMin, vec3_t vMax);\r
-void DoFixBrushes( void );\r
-void DoResetTextures( void );\r
-void DoBuildStairs(vec3_t vMin, vec3_t vMax);\r
-void DoBuildDoors(vec3_t vMin, vec3_t vMax);\r
-void DoPathPlotter( void );\r
-void DoPitBuilder(vec3_t vMin, vec3_t vMax);\r
-void DoCTFColourChanger( void );\r
-void DoMergePatches( void );\r
-void DoSplitPatch( void );\r
-void DoVisAnalyse( void );\r
-void DoTrainThing( void );\r
-void DoTrainPathPlot( void );\r
-void DoCaulkSelection( void );\r
-void DoTreePlanter( void );\r
-void DoDropEnts( void );\r
-void DoMakeChain( void );\r
-void DoFlipTerrain( void );\r
+/*
+   BobToolz plugin for GtkRadiant
+   Copyright (C) 2001 Gordon Biggans
+
+   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.
+
+   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.
+
+   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
+ */
+
+class DBobView;
+
+class DVisDrawer;
+
+class DTrainDrawer;
+
+class DTreePlanter;
+
+extern DBobView *g_PathView;
+extern DVisDrawer *g_VisView;
+extern DTrainDrawer *g_TrainView;
+extern DTreePlanter *g_TreePlanter;
+
+// intersect stuff
+const int BRUSH_OPT_WHOLE_MAP = 0;
+const int BRUSH_OPT_SELECTED = 1;
+
+// defines for stairs
+const int MOVE_NORTH = 0;
+const int MOVE_SOUTH = 1;
+const int MOVE_EAST = 2;
+const int MOVE_WEST = 3;
+
+const int STYLE_ORIGINAL = 0;
+const int STYLE_BOB = 1;
+const int STYLE_CORNER = 2;
+
+// defines for doors
+const int DIRECTION_NS = 0;
+const int DIRECTION_EW = 1;
+
+// help
+void LoadLists();
+
+
+// djbob
+void DoIntersect();
+
+void DoPolygonsTB();
+
+void DoPolygons();
+
+void DoFixBrushes();
+
+void DoResetTextures();
+
+void DoBuildStairs();
+
+void DoBuildDoors();
+
+void DoPathPlotter();
+
+void DoPitBuilder();
+
+void DoCTFColourChanger();
+
+void DoMergePatches();
+
+void DoSplitPatch();
+
+void DoSplitPatchRows();
+
+void DoSplitPatchCols();
+
+void DoVisAnalyse();
+
+void DoTrainThing();
+
+void DoTrainPathPlot();
+
+void DoCaulkSelection();
+
+void DoTreePlanter();
+
+void DoDropEnts();
+
+void DoMakeChain();
+
+void DoFlipTerrain();