weapon.h
来自「Linux游戏编程源码」· C头文件 代码 · 共 20 行
H
20 行
#ifndef WEAPON_H#define WEAPON_H#include "gamedefs.h"/* Phasers have a virtually unlimited range. */#define PHASER_RANGE (WORLD_WIDTH*2)void DrawPhaserBeam(player_p source, SDL_Surface *surf, int vis_x, int vis_y);/* Draws a phaser beam originating from the given ship. The screen_x, screen_y, and angle fields in the structure must be correct. */int CheckPhaserHit(player_p source, player_p target);/* Checks whether a phaser beam originating from the given player hits the given target. Requires the same data as DrawPhaserBeam. Returns 1 on hit, 0 on miss. */#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?