NPCType Design

From PSwiki
Revision as of 13:19, 7 April 2012 by Magodra (talk | contribs) (Advance)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The NPCTypes is part of the NpcClient Design.

Classes

The classes involved in the NPCType.

Sequences

Advance

Basic operations for a Behavior is to StartScript and than a number of Advance operations.

Basic operation for a ScriptOperation is to Run, a number of Advance and than CompleteOperation.

Interrupted ScriptOperation are a bit more complex. They start with a Run, Advance. At any point the operation might be Interrupted and InteruptOperation is called to stop the current operation. Than when it is resumed Run will be called with the Interrupted flag set to true, before normal Advance and than CompleteOperation.

The Advance subrutine:

Design

Documentation