source: abuse/trunk/src/imlib/sprite.h @ 579

Last change on this file since 579 was 555, checked in by Sam Hocevar, 11 years ago

ps3: make everything compile on the PS3. Of course, nothing links yet
because so much support is missing.

  • Property svn:keywords set to Id
File size: 946 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, by
8 *  Jonathan Clark, or by Sam Hocevar.
9 */
10
11#ifndef __SPRITE_HPP
12#define __SPRITE_HPP
13#include "image.h"
14#include "linked.h"
15
16class sprite : public linked_node
17{
18public:
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
29class sprite_controller
30{
31public :
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.