Last change
on this file since 481 was
481,
checked in by Sam Hocevar, 12 years ago
|
Fuck the history, I'm renaming all .hpp files to .h for my own sanity.
|
-
Property svn:keywords set to
Id
|
File size:
946 bytes
|
Rev | Line | |
---|
[56] | 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 | |
---|
[2] | 10 | #ifndef __SUPER_MORPH_HPP__ |
---|
| 11 | #define __SUPER_MORPH_HPP__ |
---|
[129] | 12 | |
---|
[481] | 13 | #include "timage.h" |
---|
[2] | 14 | |
---|
| 15 | class super_morph |
---|
| 16 | { |
---|
| 17 | public : |
---|
| 18 | int t; |
---|
| 19 | unsigned char *movers; |
---|
| 20 | int w,h; |
---|
[124] | 21 | super_morph(trans_image *h1, trans_image *h2, int aneal_steps, void (*stat_fun)(int)); |
---|
[129] | 22 | ~super_morph() { if (t) free(movers); } |
---|
[2] | 23 | } ; |
---|
| 24 | |
---|
| 25 | |
---|
| 26 | struct stepper |
---|
| 27 | { |
---|
| 28 | long x,y,r,g,b,dx,dy,dr,dg,db; |
---|
| 29 | } ; |
---|
| 30 | |
---|
| 31 | class smorph_player |
---|
| 32 | { |
---|
| 33 | stepper *steps; |
---|
| 34 | unsigned char *hole; |
---|
| 35 | public : |
---|
| 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); |
---|
[129] | 39 | ~smorph_player() { free(hole); free(steps); } |
---|
[2] | 40 | } ; |
---|
| 41 | |
---|
| 42 | |
---|
| 43 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.