source: abuse/trunk/src/morpher.hpp @ 112

Last change on this file since 112 was 57, checked in by Sam Hocevar, 11 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: 782 bytes
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 __MORPHER_HPP_
11#define __MORPHER_HPP_
12#include "supmorph.hpp"
13#include "config.hpp"
14
15extern int morph_detail;
16
17class view;
18
19class game_object;
20
21class morph_char
22{
23  long cx,dcx,cy,dcy;                  // center of gravity
24  smorph_player *mor;
25  int end_type,fleft;
26public :
27  morph_char(game_object *who, int to_type, void (*stat_fun)(int), int anneal, int frames);
28  void draw(game_object *who, view *v);
29  int frames_left() { return fleft; }
30  virtual ~morph_char() { if (mor) delete mor; }
31} ;
32
33
34#endif
35
36
Note: See TracBrowser for help on using the repository browser.