Unit large_blood_bat
Classes, Interfaces, Objects and Records
Types
Constants
Variables
Description
Weak enemy with simple AI, no pathfinding
Uses
- SysUtils
- Math
- combat_resolver
- universe
Overview
Functions and Procedures
procedure createBloodBat(uniqueid, npcx, npcy: smallint); |
procedure takeTurn(id: smallint); |
procedure death; |
procedure decisionNeutral(id: smallint); |
procedure decisionHostile(id: smallint); |
procedure wander(id, spx, spy: smallint); |
procedure chasePlayer(id, spx, spy: smallint); |
function isNextToPlayer(spx, spy: smallint): boolean; |
procedure escapePlayer(id, spx, spy: smallint); |
procedure combat(id: smallint); |
Description
Functions and Procedures
procedure createBloodBat(uniqueid, npcx, npcy: smallint); |
Create a blood bat |
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 wander(id, spx, spy: smallint); |
Move in a random direction |
procedure chasePlayer(id, spx, spy: smallint); |
Chase the player |
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 |
Generated by PasDoc 0.16.0.