source: abuse/trunk/src/laser.hpp @ 57

Last change on this file since 57 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
RevLine 
[56]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
[2]10#ifndef __LASER_HPP_
11#define __LASER_HPP_
12#include "objects.hpp"
13
14class 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;
22public : 
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.