-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathphscrt.h
86 lines (67 loc) · 1.77 KB
/
phscrt.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
/*
@Copyright Looking Glass Studios, Inc.
1996,1997,1998,1999,2000 Unpublished Work.
*/
////////////////////////////////////////////////////////////////////////////////
// $Header: r:/t2repos/thief2/src/physics/phscrt.h,v 1.6 2000/01/31 09:52:08 adurant Exp $
//
#pragma once
#ifndef __PHSCRT_H
#define __PHSCRT_H
enum ePhysScriptMsgType_
{
kNoMsg = 0x0000,
// subscribed messages
kCollisionMsg = 0x0001,
kContactMsg = 0x0002,
kEnterExitMsg = 0x0004,
kFellAsleepMsg = 0x0008,
kWokeUpMsg = 0x0010,
// non-subscribed messages
kMadePhysMsg = 0x0100,
kMadeNonPhysMsg = 0x0200,
};
#define kAllMsgs (kCollisionMsg | kContactMsg | kEnterExitMsg)
enum ePhysCollisionType_
{
kCollNone = 0x0000,
kCollTerrain = 0x0001,
kCollObject = 0x0002,
};
enum ePhysContactType_
{
kContactNone = 0x0000,
kContactFace = 0x0001,
kContactEdge = 0x0002,
kContactVertex = 0x0004,
kContactSphere = 0x0008,
kContactSphereHat = 0x0010,
kContactOBB = 0x0020,
};
#define kContactTerrain (kContactFace | kContactEdge | kContactVertex)
#define kContactObject (kContactSphere | kContactSphereHat | kContactOBB)
enum ePhysContact_
{
kContactCreate = 0x0000,
kContactDestroy = 0x0001,
};
enum ePhysEnterExit_
{
kEnter = 0x0000,
kExit = 0x0001,
};
enum ePhysMessageResult_
{
kPM_StatusQuo = 0x0000,
kPM_Nothing = 0x0001,
kPM_Bounce = 0x0002,
kPM_Slay = 0x0003,
kPM_NonPhys = 0x0004
};
typedef int ePhysScriptMsgType;
typedef int ePhysCollisionType;
typedef int ePhysContactType;
typedef int ePhysContact;
typedef int ePhysEnterExit;
typedef int ePhysMessageResult;
#endif // __PHSCRT_H