]> de.git.xonotic.org Git - xonotic/netradiant.git/blob - contrib/bobtoolz/DBobView.h
81f24587c3e3a8febefa766a5b3fc4d1595c75d0
[xonotic/netradiant.git] / contrib / bobtoolz / DBobView.h
1 /*
2    BobToolz plugin for GtkRadiant
3    Copyright (C) 2001 Gordon Biggans
4
5    This library is free software; you can redistribute it and/or
6    modify it under the terms of the GNU Lesser General Public
7    License as published by the Free Software Foundation; either
8    version 2.1 of the License, or (at your option) any later version.
9
10    This library is distributed in the hope that it will be useful,
11    but WITHOUT ANY WARRANTY; without even the implied warranty of
12    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13    Lesser General Public License for more details.
14
15    You should have received a copy of the GNU Lesser General Public
16    License along with this library; if not, write to the Free Software
17    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18  */
19
20 // DBobView.h: interface for the DBobView class.
21 //
22 //////////////////////////////////////////////////////////////////////
23
24 #if !defined( AFX_BOBVIEW_H__6E36062A_EF0B_11D4_ACF7_004095A18133__INCLUDED_ )
25 #define AFX_BOBVIEW_H__6E36062A_EF0B_11D4_ACF7_004095A18133__INCLUDED_
26
27 class DListener;
28
29 #define BOUNDS_ALL  0
30 #define BOUNDS_APEX 1
31
32 #if _MSC_VER > 1000
33 #pragma once
34 #endif // _MSC_VER > 1000
35
36 class DBobView :
37         public IGL2DWindow,
38         public IGL3DWindow
39 {
40 public:
41 DBobView();
42 virtual ~DBobView();
43
44 protected:
45 vec3_t* path;
46 int refCount;
47 public:
48 bool m_bShowExtra;
49 int boundingShow;
50 DListener* eyes;
51 float fVarGravity;
52
53 bool UpdatePath();
54 char entTarget[256];
55 char entTrigger[256];
56 void Begin( const char*, const char*, float, int, float, bool, bool );
57 bool CalculateTrajectory( vec3_t, vec3_t, float, int, float );
58
59 void SetPath( vec3_t* pPath );
60 void UnRegister();
61 void Register();
62 void Draw3D();
63 void Draw2D( VIEWTYPE vt );
64 void IncRef() { refCount++; }
65 void DecRef() {
66         refCount--; if ( refCount <= 0 ) {
67                 delete this;
68         }
69 }
70
71 float fMultiplier;
72 bool m_bHooked;
73 int nPathCount;
74 };
75
76 #endif // !defined(AFX_BOBVIEW_H__6E36062A_EF0B_11D4_ACF7_004095A18133__INCLUDED_)