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:
944 bytes
|
Line | |
---|
1 | /* |
---|
2 | * Abuse - dark 2D side-scrolling platform game |
---|
3 | * Copyright (c) 1995 Crack dot Com |
---|
4 | * Copyright (c) 2005-2011 Sam Hocevar <sam@hocevar.net> |
---|
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 | |
---|
11 | #ifndef __SPRITE_HPP |
---|
12 | #define __SPRITE_HPP |
---|
13 | #include "macs.h" |
---|
14 | #include "image.h" |
---|
15 | #include "linked.h" |
---|
16 | |
---|
17 | class sprite : public linked_node |
---|
18 | { |
---|
19 | public: |
---|
20 | image *visual,*screen,*save; |
---|
21 | int x,y; |
---|
22 | sprite(image *Screen, image *Visual, int X, int Y); |
---|
23 | void get_background(); |
---|
24 | void restore_background(); |
---|
25 | void draw(); |
---|
26 | void change_visual(image *Visual, int delete_old=0); |
---|
27 | ~sprite(); |
---|
28 | } ; |
---|
29 | |
---|
30 | class sprite_controller |
---|
31 | { |
---|
32 | public : |
---|
33 | linked_list sprites; |
---|
34 | void add_sprite(sprite *sp); |
---|
35 | void remove_sprites(); |
---|
36 | void get_backgrounds(); |
---|
37 | void put_sprites(); |
---|
38 | void bring_front(sprite *sp); |
---|
39 | void delete_sprite(sprite *sp); |
---|
40 | } ; |
---|
41 | #endif |
---|
42 | |
---|
Note: See
TracBrowser
for help on using the repository browser.