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.5 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 G1_CRATE_HH
|
---|
10 | #define G1_CRATE_HH
|
---|
11 |
|
---|
12 |
|
---|
13 | #include "g1_object.hh"
|
---|
14 | #include "resources.hh"
|
---|
15 |
|
---|
16 | class g1_crate_class : public g1_object_class
|
---|
17 | {
|
---|
18 |
|
---|
19 | int ticks_to_think;
|
---|
20 |
|
---|
21 | public:
|
---|
22 | enum ctype { HEALTH,
|
---|
23 | MISSILE,
|
---|
24 | BULLET,
|
---|
25 | CHAIN,
|
---|
26 | MONEY,
|
---|
27 | MAX_TYPES
|
---|
28 | };
|
---|
29 |
|
---|
30 | enum atype { SMALL,
|
---|
31 | LARGE };
|
---|
32 |
|
---|
33 |
|
---|
34 | ctype get_type();
|
---|
35 | void set_type(ctype x);
|
---|
36 |
|
---|
37 | atype get_amount();
|
---|
38 | void set_amount(atype x);
|
---|
39 |
|
---|
40 | int &ticks_left();
|
---|
41 | float &yvel();
|
---|
42 | float float_height() { return 0.2; }
|
---|
43 |
|
---|
44 | int added_money();
|
---|
45 | int added_bullets();
|
---|
46 | int added_health();
|
---|
47 | int added_missiles();
|
---|
48 | int added_chain();
|
---|
49 |
|
---|
50 |
|
---|
51 | g1_crate_class(g1_object_type id, g1_loader_class *fp);
|
---|
52 | i4_bool occupy_location();
|
---|
53 | void draw(g1_draw_context_class *context);
|
---|
54 |
|
---|
55 | void setup(const i4_3d_vector &pos, ctype t, atype amount, int ticks=-1);
|
---|
56 | void think();
|
---|
57 | void object_changed_by_editor(g1_object_class *who, li_class *old_values);
|
---|
58 | void note_stank_near(g1_player_piece_class *s);
|
---|
59 | void go_away();
|
---|
60 |
|
---|
61 | };
|
---|
62 |
|
---|
63 |
|
---|
64 | #endif
|
---|
Note: See
TracBrowser
for help on using the repository browser.