source: abuse/tags/pd/abuse/inc/morpher.hpp @ 49

Last change on this file since 49 was 49, checked in by Sam Hocevar, 12 years ago
  • Imported original public domain release, for future reference.
File size: 518 bytes
Line 
1#ifndef __MORPHER_HPP_
2#define __MORPHER_HPP_
3#include "supmorph.hpp"
4#include "config.hpp"
5
6extern int morph_detail;
7
8class view;
9
10class game_object;
11
12class morph_char
13{
14  long cx,dcx,cy,dcy;                  // center of gravity
15  smorph_player *mor;
16  int end_type,fleft;
17public :
18  morph_char(game_object *who, int to_type, void (*stat_fun)(int), int anneal, int frames);
19  void draw(game_object *who, view *v);
20  int frames_left() { return fleft; }
21  virtual ~morph_char() { if (mor) delete mor; }
22} ;
23
24
25#endif
26
27
Note: See TracBrowser for help on using the repository browser.