Unit scrTargeting

Description

Screen used for Firing a bow

Uses

Overview

Classes, Interfaces, Objects and Records

Name Description
Record Equipment  

Functions and Procedures

function glyphAngle(targetX, targetY: smallint): shortstring;
procedure aimBow(dir: word);
procedure fireBow;
procedure drawTrajectory(x1, y1, x2, y2: smallint; g, col: shortstring);
procedure arrowHit(x, y: smallint);
procedure restorePlayerGlyph;
procedure paintOverMsg;

Constants

empty = 'Empty';

Variables

arrowFlightArray: array[1..plyrTargetRange] of TPoint;
arrowGlyph: shortstring;
landingX: smallint;
landingY: smallint;
safeX: smallint;
safeY: smallint;
selectedTarget: smallint;
targetX: smallint;
targetY: smallint;
tgtAmount: smallint;
weaponAmount: smallint;

Description

Functions and Procedures

function glyphAngle(targetX, targetY: smallint): shortstring;

Calculate what angle of arrow to use

procedure aimBow(dir: word);

Aim bow and arrow

procedure fireBow;

Fire bow and arrow

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

Draw trajectory of arrow

procedure arrowHit(x, y: smallint);

Arrow hits an entity

procedure restorePlayerGlyph;

Repaint the player when exiting look/target screen

procedure paintOverMsg;

Paint over the message log

Constants

empty = 'Empty';
 

Variables

arrowFlightArray: array[1..plyrTargetRange] of TPoint;

Path of arrows

arrowGlyph: shortstring;

Arrow Glyph to use in animation

landingX: smallint;

Coordinates where the projectile lands

landingY: smallint;

Coordinates where the projectile lands

safeX: smallint;

The last safe coordinates

safeY: smallint;

The last safe coordinates

selectedTarget: smallint;
 
targetX: smallint;

Target coordinates

targetY: smallint;

Target coordinates

tgtAmount: smallint;
 
weaponAmount: smallint;
 

Generated by PasDoc 0.16.0.