sprite_object.hh 972 B

1234567891011121314151617181920212223242526272829303132333435
  1. /********************************************************************** <BR>
  2. This file is part of Crack dot Com's free source code release of
  3. Golgotha. <a href="http://www.crack.com/golgotha_release"> <BR> for
  4. information about compiling & licensing issues visit this URL</a>
  5. <PRE> If that doesn't help, contact Jonathan Clark at
  6. golgotha_source@usa.net (Subject should have "GOLG" in it)
  7. ***********************************************************************/
  8. #ifndef G1_SPRITE_OBJECT_HH
  9. #define G1_SPRITE_OBJECT_HH
  10. #include "g1_object.hh"
  11. #include "objs/sprite.hh"
  12. class g1_sprite_object_class : public g1_object_class
  13. {
  14. public:
  15. w16 model_id;
  16. w16 frame;
  17. w32 anim_length;
  18. g1_sprite_object_class(g1_object_type id, g1_loader_class *fp);
  19. virtual void init();
  20. virtual void think();
  21. virtual i4_float occupancy_radius() const
  22. {
  23. return g1_sprite_list_man.get_sprite(model_id)->extent;
  24. }
  25. };
  26. #endif