Amulets & Armor  v1.02
Open Source Game
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
3D_COLLI.H
Go to the documentation of this file.
1 /****************************************************************************/
2 /* FILE: 3D_COLLI.H */
3 /****************************************************************************/
4 #ifndef _3D_COLLI_H_
5 #define _3D_COLLI_H_
6 
7 #include "GENERAL.H"
8 #include "VIEWFILE.H"
9 
10 #define WALL_LIST_ITEM_UPPER 0x01 /* ---- ---1 */
11 #define WALL_LIST_ITEM_LOWER 0x02 /* ---- --1- */
12 #define WALL_LIST_ITEM_MAIN 0x04 /* ---- -1-- */
13 
14 typedef struct {
18 
19 extern T_word16 G_numHits ;
20 
22  T_sword32 *oldX,
23  T_sword32 *oldY,
24  T_sword32 newx,
25  T_sword32 newy,
26  T_sword32 radius,
27  T_sword32 foot,
28  T_sword32 head,
29  T_sword16 height,
30  T_3dObject *p_obj) ;
31 
33  T_sword16 x,
34  T_sword16 y,
35  T_word16 radius,
36  T_sword16 lastX,
37  T_sword16 lastY,
38  T_sword16 zBottom,
39  T_sword16 zTop,
40  T_sword16 height,
41  T_3dObject *p_movingObject) ;
42 
44  T_sword32 *oldX,
45  T_sword32 *oldY,
46  T_word16 angle,
47  T_sword32 step,
48  T_sword32 radius,
49  T_sword32 foot,
50  T_sword32 head,
51  T_sword16 height,
52  T_3dObject *p_obj) ;
53 
55  T_sword32 *oldX,
56  T_sword32 *oldY,
57  T_word16 angle,
58  T_sword32 step,
59  T_sword32 radius,
60  T_sword32 foot,
61  T_sword32 head,
62  T_sword32 height,
63  T_3dObject *p_obj) ;
64 
66 
68 
70 
72 
74 
76 
78 
80 
82 
84  T_sword16 x1,
85  T_sword16 y1,
86  T_sword16 x2,
87  T_sword16 y2,
88  T_word16 maxHits,
89  T_sword16 *lines) ;
90 
92 
94 
96  T_sword32 x,
97  T_sword32 y,
98  T_word16 radius,
99  T_word16 maxWalls,
100  T_word16 *p_walls) ;
101 
103  T_sword32 x,
104  T_sword32 y,
105  T_word16 radius,
106  T_word16 maxSectors,
107  T_word16 *p_sectors,
108  T_word16 *p_numSectors) ;
109 
111  T_3dObject *p_obj,
112  T_sword32 newX,
113  T_sword32 newY,
114  T_sword32 newZ) ;
115 
117  T_sword16 x1,
118  T_sword16 y1,
119  T_sword16 x2,
120  T_sword16 y2,
121  T_word16 lineNum) ;
122 
124  T_sword32 lineX1,
125  T_sword32 lineY1,
126  T_sword32 lineX2,
127  T_sword32 lineY2,
128  T_sword32 pointX,
129  T_sword32 pointY) ;
130 
132  T_sword16 sightStartX,
133  T_sword16 sightStartY,
134  T_sword16 sightEndX,
135  T_sword16 sightEndY) ;
136 
138  T_sword16 x1,
139  T_sword16 y1,
140  T_sword16 x2,
141  T_sword16 y2,
142  T_sword16 z,
143  T_word16 maxWalls,
144  T_wallListItem *p_list,
145  T_byte8 wallTypes) ;
146 
148 
150 
152  T_word16 lineNum,
153  T_sword16 x1,
154  T_sword16 y1,
155  T_sword16 x2,
156  T_sword16 y2) ;
157 
159  T_3dObject *p_from,
160  T_3dObject *p_to) ;
161 
162 typedef struct {
166 
168  T_lineOfSightLast *p_lastSight,
169  T_3dObject *p_target) ;
170 
172  T_3dObject *p_from,
173  T_lineOfSightLast *p_lastSight,
174  T_sword16 x,
175  T_sword16 y) ;
176 
178  T_3dObject *p_from,
179  T_sword16 x,
180  T_sword16 y,
181  T_sword16 z) ;
182 
183 #endif
184 
185 /****************************************************************************/
186 /* END OF FILE: 3D_COLLI.H */
187 /****************************************************************************/