Last change
on this file since 58 was
57,
checked in by Sam Hocevar, 14 years ago
|
- Move each header to the same directory as its corresponding source, to
get a better idea of which files are likely to export symbols.
|
File size:
1.0 KB
|
Line | |
---|
1 | /* |
---|
2 | * Abuse - dark 2D side-scrolling platform game |
---|
3 | * Copyright (c) 1995 Crack dot Com |
---|
4 | * |
---|
5 | * This software was released into the Public Domain. As with most public |
---|
6 | * domain software, no warranty is made or implied by Crack dot Com or |
---|
7 | * Jonathan Clark. |
---|
8 | */ |
---|
9 | |
---|
10 | #ifndef __LASER_HPP_ |
---|
11 | #define __LASER_HPP_ |
---|
12 | #include "objects.hpp" |
---|
13 | |
---|
14 | class laser : public game_object |
---|
15 | { |
---|
16 | short h,l_x, |
---|
17 | signal, // signal generated when laser hits a person |
---|
18 | on_signal, // recieved signal that turns on the laser |
---|
19 | off_signal; |
---|
20 | unsigned char color,hit_color,damage,on,max_speed; |
---|
21 | signed char l_xvel,l_xaccel; |
---|
22 | public : |
---|
23 | laser(long X, long Y); |
---|
24 | laser(FILE *fp, unsigned char *state_remap); |
---|
25 | virtual int size() { return game_object::size()+5*2+7*1; } |
---|
26 | virtual void recieve_signal(long signal); |
---|
27 | virtual game_objects type() { return O_laser; } |
---|
28 | virtual ifield *make_fields(int ystart, ifield *Next); |
---|
29 | virtual void gather_input(input_manager *inm); |
---|
30 | virtual void save(FILE *fp); |
---|
31 | virtual int decide(); |
---|
32 | virtual void draw(); |
---|
33 | } ; |
---|
34 | |
---|
35 | |
---|
36 | #endif |
---|
37 | |
---|
38 | |
---|
Note: See
TracBrowser
for help on using the repository browser.