Category : OS/2 Files
Archive   : VOL1N8.ZIP
Filename : TARGET.H

Output of file : TARGET.H contained in archive : VOL1N8.ZIP

Copyright (c) 1992 Timur Tabi
Copyright (c) 1992 Fasa Corporation

The following trademarks are the property of Fasa Corporation:
BattleTech, CityTech, AeroTech, MechWarrior, BattleMech, and 'Mech.
The use of these trademarks should not be construed as a challenge to these marks.


#include "hexes.h"

typedef struct { // Data for the targetting mechanism
volatile BOOL fActive; // TRUE if we are drawing the targetting line
HEXINDEX hiStart; // The index of the starting hex
HEXINDEX hiEnd; // The index of the ending hex
POINTL ptlStart; // The X,Y coordinate of the line's origin
POINTL ptlEnd; // The X,Y coordinate of the line's end
float m; // The slope of the targetting line
float b; // The intercept of the targetting line
int dx; // = ptlEnd.x - ptlStart.x
HPS hpsLine; // The HPS for target-line drawing
HPS hpsHighlight; // The HPS for origin hex highlighting
HPS hpsPath;
TID tid; // Thread ID

#ifdef TARGET_C
#define EXTERN
#define EXTERN extern

EXTERN TARGET target; // User-controlled targetting
EXTERN HWND hwndInfoBox; // Info box shows angle, range, and visibility

#undef EXTERN

void TgtInitialize(HWND);
// Initializes the targetting structure

void TgtShutdown(void);
// Shuts the targetting mechanism down

void TgtStart(HEXINDEX);
// Activates targetting

void TgtEnd(void);
// Terminates targetting

void TgtMove(HEXINDEX);
// Moves the targetting line

  3 Responses to “Category : OS/2 Files
Archive   : VOL1N8.ZIP
Filename : TARGET.H

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: