Unit redcap_lesser

Classes, Interfaces, Objects and Records
Types
Constants
Variables

Description

Intelligent enemy with scent tracking

Uses

Overview

Functions and Procedures

procedure createRedcap(uniqueid, npcx, npcy: smallint);
procedure takeTurn(id: smallint);
procedure death;
procedure decisionNeutral(id: smallint);
procedure decisionHostile(id: smallint);
procedure decisionEscape(id: smallint);
procedure wander(id, spx, spy: smallint);
procedure chaseTarget(id, spx, spy: smallint);
function isNextToPlayer(spx, spy: smallint): boolean;
procedure escapePlayer(id, spx, spy: smallint);
procedure combat(id: smallint);
procedure followScent(id: smallint);

Description

Functions and Procedures

procedure createRedcap(uniqueid, npcx, npcy: smallint);

Create a Redcap Hob

procedure takeTurn(id: smallint);

Take a turn

procedure death;

Creature death

procedure decisionNeutral(id: smallint);

Decision tree for Neutral state

procedure decisionHostile(id: smallint);

Decision tree for Hostile state

procedure decisionEscape(id: smallint);

Decision tree for Escape state

procedure wander(id, spx, spy: smallint);

Move in a random direction

procedure chaseTarget(id, spx, spy: smallint);

Chase enemy

function isNextToPlayer(spx, spy: smallint): boolean;

Check if player is next to NPC

procedure escapePlayer(id, spx, spy: smallint);

Run from player

procedure combat(id: smallint);

Combat

procedure followScent(id: smallint);

Sniff out the player


Generated by PasDoc 0.16.0.