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:
886 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 __SPRITE_HPP |
---|
11 | #define __SPRITE_HPP |
---|
12 | #include "macs.h" |
---|
13 | #include "image.h" |
---|
14 | #include "linked.h" |
---|
15 | |
---|
16 | class sprite : public linked_node |
---|
17 | { |
---|
18 | public: |
---|
19 | image *visual,*screen,*save; |
---|
20 | int x,y; |
---|
21 | sprite(image *Screen, image *Visual, int X, int Y); |
---|
22 | void get_background(); |
---|
23 | void restore_background(); |
---|
24 | void draw(); |
---|
25 | void change_visual(image *Visual, int delete_old=0); |
---|
26 | ~sprite(); |
---|
27 | } ; |
---|
28 | |
---|
29 | class sprite_controller |
---|
30 | { |
---|
31 | public : |
---|
32 | linked_list sprites; |
---|
33 | void add_sprite(sprite *sp); |
---|
34 | void remove_sprites(); |
---|
35 | void get_backgrounds(); |
---|
36 | void put_sprites(); |
---|
37 | void bring_front(sprite *sp); |
---|
38 | void delete_sprite(sprite *sp); |
---|
39 | } ; |
---|
40 | #endif |
---|
41 | |
---|
Note: See
TracBrowser
for help on using the repository browser.