NPC Life and Death Design: Difference between revisions
		
		
		
		Jump to navigation
		Jump to search
		
No edit summary  | 
				m moved NPC Life and Death to NPC Life and Death Design  | 
				||
| (4 intermediate revisions by the same user not shown) | |||
| Line 4: | Line 4: | ||
<uml>  | <uml>  | ||
activate gemActor  | |||
</uml>  | </uml>  | ||
| Line 10: | Line 10: | ||
== Death ==  | == Death ==  | ||
<uml>  | |||
->gemActor : DoDamage  | |||
activate gemActor  | |||
gemActor -> gemActor : SetMode(DEAD)  | |||
gemActor -\\ ProgressionManager : psDeathEvent  | |||
gemActor -\\ SpawnManager : psDeathEvent  | |||
gemActor -\\ NPCManager : psDeathEvent  | |||
gemActor -\\ CombatManager : psDeathEvent  | |||
deactivate gemActor  | |||
activate ProgressionManager  | |||
activate SpawnManager  | |||
activate NPCManager  | |||
ProgressionManager -> ProgressionManager : HandleDeathEvent  | |||
activate ProgressionManager  | |||
ProgressionManager -> ProgressionManager : AllocateKillDamage  | |||
deactivate ProgressionManager  | |||
deactivate ProgressionManager  | |||
NPCManager ->> NPCManager : QueueDeathPerception  | |||
deactivate NPCManager  | |||
SpawnManager ->> SpawnManager : HandleDeathEvent  | |||
SpawnManager ->> SpawnManager : KillNPC  | |||
activate SpawnManager  | |||
SpawnManager ->> NPCManager : PetHasBeenKilled  | |||
activate NPCManager  | |||
NPCManager ->> PetOwnerSession : HasBeenKilled  | |||
activate PetOwnerSession  | |||
PetOwnerSession -> PetOwnerSession : StartDeadTimer  | |||
activate PetOwnerSession  | |||
deactivate PetOwnerSession  | |||
NPCManager <<-- PetOwnerSession  | |||
deactivate PetOwnerSession  | |||
SpawnManager <<-- NPCManager  | |||
deactivate NPCManager  | |||
SpawnManager -\\ : psDespawnGameEvent  | |||
deactivate SpawnManager  | |||
... DeathRemainTime ...  | |||
SpawnManager \\- : psDespawnGameEvent  | |||
activate SpawnManager  | |||
SpawnManager ->> SpawnManager : RemoveNPC  | |||
deactivate SpawnManager  | |||
... Some time ...  | |||
--> NPCManager : "/pet summon"  | |||
activate NPCManager  | |||
NPCManager -> PetOwnerSession : CheckIsPossibleToSummon   | |||
activate PetOwnerSession  | |||
PetOwnerSession -> PetOwnerSession : CheckDeadTimer  | |||
PetOwnerSession --> NPCManager  | |||
deactivate PetOwnerSession  | |||
deactivate NPCManager  | |||
</uml>  | |||
[[Category:Engine documents]] [[Category:NPCClient Design]] [[Category:Server Design]]  | [[Category:Engine documents]] [[Category:NPCClient Design]] [[Category:Server Design]]  | ||
Latest revision as of 17:59, 9 April 2013
Show Life and Death Cases for NPCs. Both Server side and NPCClient side.
Life

Death
