convert line ends
[canaan.git] / prj / cam / src / sim / roombase.h
blob5cddc1a6770b81a08a4c3495c70cd63a4ed78ea6
1 /*
2 @Copyright Looking Glass Studios, Inc.
3 1996,1997,1998,1999,2000 Unpublished Work.
4 */
6 ///////////////////////////////////////////////////////////////////////////////
7 // $Header: r:/t2repos/thief2/src/sim/roombase.h,v 1.2 2000/01/31 10:00:33 adurant Exp $
8 //
9 // Room System base structures
11 #pragma once
13 #ifndef __ROOMBASE_H
14 #define __ROOMBASE_H
16 #include <wrtype.h>
17 #include <matrixs.h>
19 #include <roomsys.h>
22 typedef int ObjID;
25 ////////////////////////
27 // Structure declarations
29 struct tOBB
31 Position pos;
32 mxs_vector scale;
35 struct tPlane
37 mxs_vector normal;
38 mxs_real d;
41 struct tEdge
43 int from;
44 int to;
48 ////////////////////////
50 // Callbacks
52 typedef BOOL (*tWatchCallback) (ObjID objID);
53 typedef void (*tPortalCallback) (ObjID objID, cRoom *roomFrom, cRoom *roomTo);
56 ////////////////////////
58 // Constants
61 const int kAllObjWatchHandle = 0;
63 const tEdge OBBEdge[12] = { {0, 1}, {1, 2}, {2, 3}, {3, 0},
64 {4, 5}, {5, 6}, {6, 7}, {7, 4},
65 {0, 4}, {1, 5}, {2, 6}, {3, 7} };
68 #endif