source: abuse/trunk/src/imlib/supmorph.hpp @ 90

Last change on this file since 90 was 57, checked in by Sam Hocevar, 12 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: 975 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 __SUPER_MORPH_HPP__
11#define __SUPER_MORPH_HPP__
12#include "jmalloc.hpp"
13#include "timage.hpp"
14
15class super_morph
16{
17public :
18  int t;
19  unsigned char *movers;
20  int w,h;
21  super_morph(trans_image *h1, trans_image *h2, int aneal_steps, void (*stat_fun)(int)); 
22  ~super_morph() { if (t) jfree(movers); }
23} ;
24
25
26struct stepper
27{
28  long x,y,r,g,b,dx,dy,dr,dg,db;
29} ;
30
31class smorph_player
32{
33  stepper *steps;
34  unsigned char *hole;
35public :
36  int w,h,f_left,t;
37  smorph_player(super_morph *m, palette *pal, image *i1, image *i2, int frames, int dir);
38  int show(image *screen, int x, int y, color_filter *fil, palette *pal, int blur_threshold);
39  ~smorph_player() { jfree(hole); jfree(steps);  }
40} ;
41
42
43#endif
Note: See TracBrowser for help on using the repository browser.