⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rayspr.cpp

📁 quake 游戏原代码
💻 CPP
字号:
#include "ray.h"
#include "blockbsp.h"
#include "sprinter.h"
#include "sprfunc.h"
#include "sprutils.h"

pobject_type Obj_Type_List;
USHORT Number_Of_OTs;
pobject_node g_object_list;
BOOL updating=FALSE;

void Init_Objects() {
   g_object_list=NULL;
   Init_Spr_Funcs();
}

void Close_Objects() {
   Clear_Objects();
   Close_Spr_Funcs();
   Clear_BSP_Block();
}

void Update_Objects(long update_num) {
   updating=TRUE;
   pobject_node cur_obj_node, next_obj_node;
   pobject cur_object;

   cur_obj_node=g_object_list;
   while ( !(OL_Empty_Node(cur_obj_node)) ) {
     cur_object=cur_obj_node->data;
     next_obj_node=OL_Next_Node(cur_obj_node);
     (cur_object->type->Update)(cur_object, update_num);
     cur_obj_node=next_obj_node;
     }
   updating=FALSE;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -