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

Last change on this file since 524 was 524, checked in by Sam Hocevar, 12 years ago

core: Get rid of mostly useless headers, move endianness handling to
common.h (and rewrite functions so that they do not need the SDL headers)
and move a few functions out of sdlport's video.cpp. These functions
were in the original video.cpp (which reappears) and shouldn't be part
of the SDL port.

  • Property svn:keywords set to Id
File size: 926 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 "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.