Unit villager
Classes, Interfaces, Objects and Records
Types
Constants
Variables
Description
Simple wandering NPC
Uses
- SysUtils
- ai_villager
Overview
Functions and Procedures
procedure createVillager(uniqueid, npcx, npcy: smallint); |
procedure takeTurn(id: smallint); |
procedure decisionNeutral(id: smallint); |
function isNextToPlayer(spx, spy: smallint): boolean; |
Description
Functions and Procedures
procedure createVillager(uniqueid, npcx, npcy: smallint); |
Create a villager |
procedure takeTurn(id: smallint); |
The NPC takes their turn in the game loop |
procedure decisionNeutral(id: smallint); |
Decision tree for Neutral state |
function isNextToPlayer(spx, spy: smallint): boolean; |
Check if player is next to NPC |
Generated by PasDoc 0.16.0.