Last change
on this file since 57 was
57,
checked in by Sam Hocevar, 15 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:
892 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.hpp" |
---|
13 | #include "image.hpp" |
---|
14 | #include "linked.hpp" |
---|
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.