home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / pc / ABUSESRC.ZIP / AbuseSrc / macabuse / src / control.c < prev    next >
Encoding:
C/C++ Source or Header  |  1997-05-20  |  1.1 KB  |  66 lines

  1. #include "game.hpp"
  2. #include "control.hpp"
  3. #include "specs.hpp"
  4. #include "loader.hpp"
  5. #include "hpoint.hpp"
  6. #include "ability.hpp"
  7.  
  8. #define FADING_FRAMES 20
  9. #define FADING_MAX 30
  10.  
  11. sequence *morph_table[MORPH_TABLE_WIDTH*MORPH_TABLE_WIDTH];
  12.  
  13.  
  14. void controlled_character::note_hp_change(int new_hp, game_object *who)
  15.   if (cur_char==who)  
  16.     the_game->set_hit_points(hp);  
  17. }
  18.  
  19.  
  20. void controlled_character::change_character(int char_type)
  21. {
  22. /*  switch (char_type)
  23.   {
  24.     case CHAR_HUMAN : my_figure=human_figure; curbreak;    
  25.     case CHAR_IGUANA : my_figure=iguana_figure; break;
  26.     default : CONDITION(0,"change_character, bad character type\n");
  27.   }
  28.   cur_char=char_type;
  29.   set_state(stopped);
  30.   
  31.   the_game->change_logos(abilities,cur_char);*/
  32.   
  33. }  
  34.  
  35.  
  36.    
  37.  
  38. controlled_character::controlled_character(game_object *who)
  39. {
  40.   cur_char=who;
  41.   abilities=0;  
  42.   morphing_to=-1;
  43. }
  44.  
  45.  
  46. int controlled_character::decide()
  47. {
  48.   int button,c_x,c_y;
  49.   the_game->get_movement(button,c_x,c_y);
  50.   cur_char->move(c_x,c_y,button);  
  51.   return 1;
  52. }
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.