Unit los

Classes, Interfaces, Objects and Records
Types

Description

Line of sight & targeting functions

Uses

Overview

Functions and Procedures

function inView(x1, y1, x2, y2, visRange: smallint): boolean;
procedure firingLine(projectile: shortstring; id, x1, y1, x2, y2: smallint);
procedure playerProjectilePath(x1, y1, x2, y2: smallint; g, col: shortstring);

Constants

plyrTargetRange = 30;

Variables

totalSpaces: smallint;

Description

Functions and Procedures

function inView(x1, y1, x2, y2, visRange: smallint): boolean;

Checks that the distance to the target is within vision range

procedure firingLine(projectile: shortstring; id, x1, y1, x2, y2: smallint);

Line of sight for projectiles

procedure playerProjectilePath(x1, y1, x2, y2: smallint; g, col: shortstring);

Player throws projectiles

Constants

plyrTargetRange = 30;
 

Variables

totalSpaces: smallint;
 

Generated by PasDoc 0.16.0.