Ignore:
Timestamp:
Mar 18, 2008, 9:36:56 PM (14 years ago)
Author:
Sam Hocevar
Message:
  • Get rid of ugly tabs and trailing spaces everywhere.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/go.hpp

    r120 r124  
    1414class elcontrol : public game_object
    1515{
    16 public: 
    17   short allow_dir; 
    18   elcontrol(long X, long Y); 
     16public:
     17  short allow_dir;
     18  elcontrol(long X, long Y);
    1919  elcontrol(FILE *fp, unsigned char *state_remap);
    2020  virtual int size() { return game_object::size()+2; }
    21   virtual game_objects type() { return O_elcontrol; } 
     21  virtual game_objects type() { return O_elcontrol; }
    2222  virtual ifield *make_fields(int ystart, ifield *Next);
    2323  virtual void gather_input(InputManager *inm);
    2424  virtual void save(FILE *fp) { game_object::save(fp); write_short(fp,allow_dir); }
    2525  virtual int decide() { return 1; }  // not dead
    26   virtual int move(int cx, int cy, int button)  { return 0; }  // not blocked         
    27   virtual void draw();  // only show when DEV mode is on   
     26  virtual int move(int cx, int cy, int button)  { return 0; }  // not blocked
     27  virtual void draw();  // only show when DEV mode is on
    2828} ;
    2929
    30  
     30
    3131
    3232class elevator : public game_object
    3333{
    3434  short dir,speed;
    35 public : 
     35public :
    3636  elcontrol *find_stop();
    37   elevator(long X, long Y);   
     37  elevator(long X, long Y);
    3838  elevator(FILE *fp, unsigned char *state_remap);
    3939  virtual int size();
    4040  virtual void recieve_signal(long signal) { ; }
    4141  virtual game_objects type() { return O_elevator; }
    42   virtual ifield *make_fields(int ystart, ifield *Next); 
    43   virtual void gather_input(InputManager *inm); 
     42  virtual ifield *make_fields(int ystart, ifield *Next);
     43  virtual void gather_input(InputManager *inm);
    4444  virtual void save(FILE *fp);
    4545  virtual int can_block(game_object *who);
     
    5050class sensor : public game_object
    5151{
    52   short xrange,yrange,signal,activate; 
     52  short xrange,yrange,signal,activate;
    5353public :
    5454  sensor(long X, long Y) { defaults(); xrange=yrange=signal=0; activate=-1; }
     
    5757  virtual game_objects type() { return O_sensor; }
    5858  virtual ifield *make_fields(int ystart, ifield *Next);
    59   virtual void gather_input(InputManager *inm); 
     59  virtual void gather_input(InputManager *inm);
    6060  virtual void save(FILE *fp);
    6161
    62   virtual void draw();  // only show when DEV mode is on   
     62  virtual void draw();  // only show when DEV mode is on
    6363  virtual int decide();
    64   virtual int move(int cx, int cy, int button)  { return 0; }  // not blocked         
     64  virtual int move(int cx, int cy, int button)  { return 0; }  // not blocked
    6565
    6666  char *aname();
    6767  void get_activate(char *name);
    68  
     68
    6969} ;
    7070
Note: See TracChangeset for help on using the changeset viewer.