home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 23 / IOPROG_23.ISO / SOFT / RAYCAST.ZIP / RAYSPR.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1995-10-13  |  804 b   |  37 lines

  1. #include "ray.h"
  2. #include "blockbsp.h"
  3. #include "sprinter.h"
  4. #include "sprfunc.h"
  5. #include "sprutils.h"
  6.  
  7. pobject_type Obj_Type_List;
  8. USHORT Number_Of_OTs;
  9. pobject_node g_object_list;
  10. BOOL updating=FALSE;
  11.  
  12. void Init_Objects() {
  13.    g_object_list=NULL;
  14.    Init_Spr_Funcs();
  15. }
  16.  
  17. void Close_Objects() {
  18.    Clear_Objects();
  19.    Close_Spr_Funcs();
  20.    Clear_BSP_Block();
  21. }
  22.  
  23. void Update_Objects(long update_num) {
  24.    updating=TRUE;
  25.    pobject_node cur_obj_node, next_obj_node;
  26.    pobject cur_object;
  27.  
  28.    cur_obj_node=g_object_list;
  29.    while ( !(OL_Empty_Node(cur_obj_node)) ) {
  30.      cur_object=cur_obj_node->data;
  31.      next_obj_node=OL_Next_Node(cur_obj_node);
  32.      (cur_object->type->Update)(cur_object, update_num);
  33.      cur_obj_node=next_obj_node;
  34.      }
  35.    updating=FALSE;
  36. }
  37.