Last change
on this file since 475 was
49,
checked in by Sam Hocevar, 15 years ago
|
- Imported original public domain release, for future reference.
|
File size:
781 bytes
|
Rev | Line | |
---|
[49] | 1 | #ifndef __LASER_HPP_ |
---|
| 2 | #define __LASER_HPP_ |
---|
| 3 | #include "objects.hpp" |
---|
| 4 | |
---|
| 5 | class laser : public game_object |
---|
| 6 | { |
---|
| 7 | short h,l_x, |
---|
| 8 | signal, // signal generated when laser hits a person |
---|
| 9 | on_signal, // recieved signal that turns on the laser |
---|
| 10 | off_signal; |
---|
| 11 | unsigned char color,hit_color,damage,on,max_speed; |
---|
| 12 | signed char l_xvel,l_xaccel; |
---|
| 13 | public : |
---|
| 14 | laser(long X, long Y); |
---|
| 15 | laser(FILE *fp, unsigned char *state_remap); |
---|
| 16 | virtual int size() { return game_object::size()+5*2+7*1; } |
---|
| 17 | virtual void recieve_signal(long signal); |
---|
| 18 | virtual game_objects type() { return O_laser; } |
---|
| 19 | virtual ifield *make_fields(int ystart, ifield *Next); |
---|
| 20 | virtual void gather_input(input_manager *inm); |
---|
| 21 | virtual void save(FILE *fp); |
---|
| 22 | virtual int decide(); |
---|
| 23 | virtual void draw(); |
---|
| 24 | } ; |
---|
| 25 | |
---|
| 26 | |
---|
| 27 | #endif |
---|
| 28 | |
---|
| 29 | |
---|
Note: See
TracBrowser
for help on using the repository browser.