Last change
on this file since 80 was
80,
checked in by Sam Hocevar, 14 years ago
|
- Adding the Golgotha source code. Not sure what's going to be interesting
in there, but since it's all public domain, there's certainly stuff to
pick up.
|
File size:
1.3 KB
|
Line | |
---|
1 | /********************************************************************** <BR>
|
---|
2 | This file is part of Crack dot Com's free source code release of
|
---|
3 | Golgotha. <a href="http://www.crack.com/golgotha_release"> <BR> for
|
---|
4 | information about compiling & licensing issues visit this URL</a>
|
---|
5 | <PRE> If that doesn't help, contact Jonathan Clark at
|
---|
6 | golgotha_source@usa.net (Subject should have "GOLG" in it)
|
---|
7 | ***********************************************************************/
|
---|
8 |
|
---|
9 | #ifndef SHRAPNEL_HH
|
---|
10 | #define SHRAPNEL_HH
|
---|
11 |
|
---|
12 | #include "g1_object.hh"
|
---|
13 | #include "player_type.hh"
|
---|
14 | #include "path.hh"
|
---|
15 | #include "objs/model_draw.hh"
|
---|
16 |
|
---|
17 | class g1_solid_class;
|
---|
18 | class g1_map_piece_class;
|
---|
19 | class g1_particle_emitter_class;
|
---|
20 |
|
---|
21 | class g1_shrapnel_class : public g1_object_class
|
---|
22 | {
|
---|
23 | public:
|
---|
24 | w16 shrap_model_id;
|
---|
25 |
|
---|
26 | enum { MAX_SHRAPNEL_PIECES=5 };
|
---|
27 |
|
---|
28 | typedef struct
|
---|
29 | {
|
---|
30 | i4_3d_vector lposition,position,velocity;
|
---|
31 | w8 type;
|
---|
32 | } shrapnel_piece;
|
---|
33 |
|
---|
34 | shrapnel_piece shrapnel_pieces[MAX_SHRAPNEL_PIECES];
|
---|
35 | w32 num_shrapnel_pieces;
|
---|
36 | w32 shrapnel_time;
|
---|
37 |
|
---|
38 | g1_shrapnel_class(g1_object_type id, g1_loader_class *fp);
|
---|
39 | virtual void save(g1_saver_class *fp);
|
---|
40 |
|
---|
41 | virtual void setup(i4_float sx, i4_float sy, i4_float sz, w32 num_pieces,
|
---|
42 | int type);
|
---|
43 |
|
---|
44 | virtual void think();
|
---|
45 | void draw(g1_draw_context_class *context);
|
---|
46 | };
|
---|
47 |
|
---|
48 | #endif
|
---|
Note: See
TracBrowser
for help on using the repository browser.