Unit globalUtils

Description

Common functions / utilities

Uses

Overview

Classes, Interfaces, Objects and Records

Name Description
Record coordinates  

Functions and Procedures

function randomRange(fromNumber, toNumber: smallint): smallint;
function rollDice(numberOfDice: byte): smallint;

Types

dungeonTerrain = (...);
path = array[1..30] of TPoint;

Constants

VERSION = '59a';
MAXCOLUMNS = 80;
MAXROWS = 20;
saveFile = 'saveGame.dat';

Variables

currentDgnTotalRooms: smallint;
dungeonArray: array[1..MAXROWS, 1..MAXCOLUMNS] of shortstring;
killer: shortstring;
OWx: smallint;
OWy: smallint;
saveDirectory: string;
womblingFree: shortstring;

Description

Functions and Procedures

function randomRange(fromNumber, toNumber: smallint): smallint;

Select random number from a range

function rollDice(numberOfDice: byte): smallint;

Simulate dice rolls

Types

dungeonTerrain = (...);

Types of locations that can be explored. See 'architect' unit for explanation

Values
  • tCave
  • tStoneCavern
  • tDungeon
  • tCrypt
  • tVillage
path = array[1..30] of TPoint;

Pathfinding - Path to player

Constants

VERSION = '59a';

Version info - a = Alpha, d = Debug, r = Release

MAXCOLUMNS = 80;

Columns of the game map

MAXROWS = 20;

Rows of the game map

saveFile = 'saveGame.dat';

Save game file

Variables

currentDgnTotalRooms: smallint;

Number of rooms in the current dungeon

dungeonArray: array[1..MAXROWS, 1..MAXCOLUMNS] of shortstring;
 
killer: shortstring;

Name of entity or item that killed the player

OWx: smallint;

Last overworld coordinates the player was at

OWy: smallint;

Last overworld coordinates the player was at

saveDirectory: string;

Save game directory

womblingFree: shortstring;

Stores whether the player is underground or overground ;-)


Generated by PasDoc 0.16.0.