Unit rabid_dog
Classes, Interfaces, Objects and Records
Types
Constants
Variables
Description
Weak predator, attacks other animals
Uses
- SysUtils
- Math
- universe
- combat_resolver
Overview
Functions and Procedures
procedure createRabidDog(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(npcID, enemyID: smallint); |
Description
Functions and Procedures
procedure createRabidDog(uniqueid, npcx, npcy: smallint); |
Create a dog |
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(npcID, enemyID: smallint); |
NPC attacks another entity |
Generated by PasDoc 0.16.0.