Module npc_guard
[hide private]
[frames] | no frames]

Module npc_guard

source code

This module implements the NPC_guard class

Classes [hide private]
  NPC_guard
A guard is a low-level NPC fighter who will quickly engage and can call for reinforcements.
  NoGoodNick
A NoGoodNick is an actor who will attack a guard and report when he is (counter-) attacked, and by whom
Functions [hide private]
 
test_target()
create a GameActor who attacks me, and confirm that I return the attack
source code
 
test_reinforcements()
create a GameActor who attacks me, and confirm that I call for reinforcements, who will attack my attacker
source code
 
main()
Run all unit-test cases and print out summary of results
source code
Variables [hide private]
  __package__ = None