source: abuse/trunk/src/imlib/supmorph.h @ 521

Last change on this file since 521 was 494, checked in by Sam Hocevar, 12 years ago

style: remove trailing spaces, fix copyright statements.

  • Property svn:keywords set to Id
File size: 1004 bytes
RevLine 
[56]1/*
2 *  Abuse - dark 2D side-scrolling platform game
3 *  Copyright (c) 1995 Crack dot Com
[494]4 *  Copyright (c) 2005-2011 Sam Hocevar <sam@hocevar.net>
[56]5 *
6 *  This software was released into the Public Domain. As with most public
7 *  domain software, no warranty is made or implied by Crack dot Com or
8 *  Jonathan Clark.
9 */
10
[2]11#ifndef __SUPER_MORPH_HPP__
12#define __SUPER_MORPH_HPP__
[129]13
[481]14#include "timage.h"
[2]15
16class super_morph
17{
18public :
19  int t;
20  unsigned char *movers;
21  int w,h;
[124]22  super_morph(trans_image *h1, trans_image *h2, int aneal_steps, void (*stat_fun)(int));
[129]23  ~super_morph() { if (t) free(movers); }
[2]24} ;
25
26
27struct stepper
28{
29  long x,y,r,g,b,dx,dy,dr,dg,db;
30} ;
31
32class smorph_player
33{
34  stepper *steps;
35  unsigned char *hole;
36public :
37  int w,h,f_left,t;
38  smorph_player(super_morph *m, palette *pal, image *i1, image *i2, int frames, int dir);
39  int show(image *screen, int x, int y, color_filter *fil, palette *pal, int blur_threshold);
[129]40  ~smorph_player() { free(hole); free(steps);  }
[2]41} ;
42
43
44#endif
Note: See TracBrowser for help on using the repository browser.