Last change
on this file since 483 was
49,
checked in by Sam Hocevar, 15 years ago
|
- Imported original public domain release, for future reference.
|
File size:
620 bytes
|
Rev | Line | |
---|
[49] | 1 | #ifndef __SPRITE_HPP |
---|
| 2 | #define __SPRITE_HPP |
---|
| 3 | #include "macs.hpp" |
---|
| 4 | #include "image.hpp" |
---|
| 5 | #include "linked.hpp" |
---|
| 6 | |
---|
| 7 | class sprite : public linked_node |
---|
| 8 | { |
---|
| 9 | public: |
---|
| 10 | image *visual,*save; |
---|
| 11 | int x,y; |
---|
| 12 | sprite(image *Screen, image *Visual, int X, int Y); |
---|
| 13 | void get_background(); |
---|
| 14 | void restore_background(); |
---|
| 15 | void draw(); |
---|
| 16 | void change_visual(image *Visual, int delete_old=0); |
---|
| 17 | ~sprite(); |
---|
| 18 | } ; |
---|
| 19 | |
---|
| 20 | class sprite_controller |
---|
| 21 | { |
---|
| 22 | public : |
---|
| 23 | linked_list sprites; |
---|
| 24 | void add_sprite(sprite *sp); |
---|
| 25 | void remove_sprites(); |
---|
| 26 | void get_backgrounds(); |
---|
| 27 | void put_sprites(); |
---|
| 28 | void bring_front(sprite *sp); |
---|
| 29 | void delete_sprite(sprite *sp); |
---|
| 30 | } ; |
---|
| 31 | #endif |
---|
| 32 | |
---|
Note: See
TracBrowser
for help on using the repository browser.