NPC Perception Design: Difference between revisions

From PSwiki
Jump to navigation Jump to search
Magodra (talk | contribs)
Magodra (talk | contribs)
Line 7: Line 7:


=== Class Hierarchy ===
=== Class Hierarchy ===
The Perception class is used for simple perception and as the Base Class for a number of special perceptions.


<uml>
<uml>
scale 0.25
class Perception
class Perception
Perception <|-- RangePerception
Perception <|-- SpecialPerception
Perception <|-- TimePerception
Perception <|-- FactionPerception
Perception <|-- ItemPerception
Perception <|-- LocationPerception
Perception <|-- PositionPerception
Perception <|-- AttackPerception
Perception <|-- GroupAttackPerception
Perception <|-- DamagePerception
Perception <|-- SpellPerception
Perception <|-- DeathPerception
Perception <|-- InventoryPerception
Perception <|-- OwnerCmdPerception
Perception <|-- OwnerActionPerception
Perception <|-- NPCCmdPerception
</uml>
</uml>
Special Perceptions:
* TimePerception
* FactionPerception
* ItemPerception
* LocationPerception
* PositionPerception
* AttackPerception
* GroupAttackPerception
* DamagePerception
* SpellPerception
* DeathPerception
* InventoryPerception
* OwnerCmdPerception
* OwnerActionPerception
* NPCCmdPerception


=== Personal NPC Perceptions Sequence ===
=== Personal NPC Perceptions Sequence ===

Revision as of 19:20, 30 April 2011

See Behaviors_and_Reactions for User details about how to use Perceptions in the behavior.xml file.


This embodies any perception an NPC might have, or any game event of interest. Reaction objects below will subscribe to these events, and the networking system will publish them. Examples would be "attacked", "collided", "talked to", "hear cry".

NPC Perceptions

Class Hierarchy

The Perception class is used for simple perception and as the Base Class for a number of special perceptions.

Special Perceptions:

  • TimePerception
  • FactionPerception
  • ItemPerception
  • LocationPerception
  • PositionPerception
  • AttackPerception
  • GroupAttackPerception
  • DamagePerception
  • SpellPerception
  • DeathPerception
  • InventoryPerception
  • OwnerCmdPerception
  • OwnerActionPerception
  • NPCCmdPerception

Personal NPC Perceptions Sequence

Show the typical sequence for a Perception fired for a NPC, might be perceptions like Damage Perception.

Broadcast NPC Perceptions Sequence

Show the typical sequence for a broadcasted Perception. Examples of broadcasted perceptions is the SpellPerception.