NPCType Design

From PSwiki
Jump to navigation Jump to search

The NPCTypes is part of the NpcClient Design.

Classes

The classes involved in the NPCType.

Adobe SVG Viewer plugin (for Internet Explorer) or use Firefox, Opera or Safari instead.

Sequences

Advance

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

Adobe SVG Viewer plugin (for Internet Explorer) or use Firefox, Opera or Safari instead.

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

Adobe SVG Viewer plugin (for Internet Explorer) or use Firefox, Opera or Safari instead.

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.

Adobe SVG Viewer plugin (for Internet Explorer) or use Firefox, Opera or Safari instead.

Adobe SVG Viewer plugin (for Internet Explorer) or use Firefox, Opera or Safari instead.

The Advance subrutine:

Adobe SVG Viewer plugin (for Internet Explorer) or use Firefox, Opera or Safari instead.

Design

Documentation