Changeset 669 for abuse/trunk/src/imlib/sprite.h
- Timestamp:
- May 16, 2011, 2:37:23 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
abuse/trunk/src/imlib/sprite.h
r555 r669 11 11 #ifndef __SPRITE_HPP 12 12 #define __SPRITE_HPP 13 13 14 #include "image.h" 14 15 #include "linked.h" 15 16 16 class sprite : public linked_node17 class Sprite : public linked_node 17 18 { 18 19 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 } ; 20 Sprite(image *screen, image *visual, vec2i pos); 21 ~Sprite(); 28 22 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 } ; 23 void SetVisual(image *visual, int delete_old = 0); 24 25 image *m_visual, *m_screen, *m_save; 26 27 private: 28 vec2i m_pos; 29 }; 30 40 31 #endif 41 32
Note: See TracChangeset
for help on using the changeset viewer.