Unit giant_cave_rat
Classes, Interfaces, Objects and Records
Types
Constants
Variables
Description
Weak enemy with simple AI, no pathfinding
Uses
Overview
Functions and Procedures
procedure createGiantCaveRat(uniqueid, npcx, npcy: smallint); |
procedure takeTurn(id: smallint); |
procedure death; |
procedure decisionNeutral(id: smallint); |
procedure decisionHostile(id: smallint); |
procedure decisionEscape(id: smallint); |
function isNextToPlayer(spx, spy: smallint): boolean; |
Description
Functions and Procedures
procedure createGiantCaveRat(uniqueid, npcx, npcy: smallint); |
Create a cave rat |
procedure takeTurn(id: smallint); |
The NPC takes their turn in the game loop |
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 |
function isNextToPlayer(spx, spy: smallint): boolean; |
Check if player is next to NPC |
Generated by PasDoc 0.16.0.