Unit player_stats

Classes, Interfaces, Objects and Records
Types
Constants

Description

Additional player stats that are not shared with other entities are stored here

Uses

Overview

Functions and Procedures

procedure checkLevel;
procedure showLevelUpOptions;
procedure increaseMaxHealth;
procedure increaseAttack;
procedure increaseDefence;
procedure increaseAttackDefence;
procedure increaseDexterity;
procedure processLight;

Variables

armourPoints: smallint;
canExitDungeon: boolean;
clanName: shortstring;
currentMagick: smallint;
dexterity: smallint;
enchantedWeaponEquipped: boolean;
enchWeapType: smallint;
lightCounter: smallint;
lightEquipped: boolean;
maxMagick: smallint;
maxVisionRange: smallint;
numEquippedUses: smallint;
playerLevel: smallint;
playerRace: shortstring;
projectileWeaponEquipped: boolean;
treasure: smallint;

Description

Functions and Procedures

procedure checkLevel;

Check if the player has levelled up

procedure showLevelUpOptions;

Show level up dialog

procedure increaseMaxHealth;

Increase maximum health

procedure increaseAttack;

Increase attack strength

procedure increaseDefence;

Increase defence strength

procedure increaseAttackDefence;

Increase attack & defence

procedure increaseDexterity;

Increase dexterity

procedure processLight;

Check the light source, decrease the timer

Variables

armourPoints: smallint;

Player level, dexterity, maximum vision range, enchanted weapon type and armour points

canExitDungeon: boolean;

Is it possible to leave the current dungeon

clanName: shortstring;

Is the player Elf, Dwarf or Human. clanName is only used for Dwarven characters

currentMagick: smallint;

Magical ability

dexterity: smallint;

Player level, dexterity, maximum vision range, enchanted weapon type and armour points

enchantedWeaponEquipped: boolean;

Is a magical weapon equipped

enchWeapType: smallint;

Player level, dexterity, maximum vision range, enchanted weapon type and armour points

lightCounter: smallint;

Number of turns light will shine

lightEquipped: boolean;

Is player carrying a light source

maxMagick: smallint;

Magical ability

maxVisionRange: smallint;

Player level, dexterity, maximum vision range, enchanted weapon type and armour points

numEquippedUses: smallint;

Durability of equipped / magical item

playerLevel: smallint;

Player level, dexterity, maximum vision range, enchanted weapon type and armour points

playerRace: shortstring;

Is the player Elf, Dwarf or Human. clanName is only used for Dwarven characters

projectileWeaponEquipped: boolean;

Is a bow equipped

treasure: smallint;

Amount of treasure


Generated by PasDoc 0.16.0.