home *** CD-ROM | disk | FTP | other *** search
/ Game Programming - All in One (3rd Edition) / game_prog_all_in_one_3rd_ed.iso / sources / chapter10 / AngularMotion / spritehandler.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-07-06  |  269 b   |  18 lines

  1. #pragma once
  2. #include "sprite.h"
  3.  
  4. class spritehandler
  5. {
  6. private:
  7.     int count;
  8.     sprite *sprites[100];
  9.  
  10. public:
  11.     spritehandler(void);
  12.     ~spritehandler(void);
  13.     void add(sprite *spr);
  14.     void create();
  15.     sprite *get(int index);
  16.     int size() { return count; }
  17. };
  18.