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

Module gameaction

source code

This module implements the GameAction class

Classes [hide private]
  GameAction
Every GameActor has, at any given time, a list of possible actions from which they can choose.
  TestRecipient
a minimal object that can receive, and report on actions
Functions [hide private]
 
base_attacks()
GameAction base ability ATTACK test cases:
source code
 
subtype_attacks()
GameAction sub-type ability ATTACK test cases:
source code
 
base_conditions()
GameAction base ability condition test cases:
source code
 
subtype_conditions()
GameAction sub-type ability condition test cases:
source code
 
compound_verbs()
GameAction compound-verb test cases:
source code
 
main()
Run all unit-test cases and print out summary of results
source code
Variables [hide private]
  __package__ = None
Function Details [hide private]

base_attacks()

source code 

GameAction base ability ATTACK test cases:

  • test correctness of TO_HIT and DAMAGE computations for base and sub-type attacks but with no sub-type or initiator bonuses

subtype_attacks()

source code 

GameAction sub-type ability ATTACK test cases:

  • test correctness of TO_HIT and DAMAGE computations for base and sub-type attacks both action and initiator have both base and sub-type bonuses

base_conditions()

source code 

GameAction base ability condition test cases:

  • test correctness of TO_HIT and STACKS computations for base and sub-type verbs but with no sub-type or initiator bonuses

subtype_conditions()

source code 

GameAction sub-type ability condition test cases:

  • test correctness of TO_HIT and STACKS computations for base and sub-type verbs both action and initiator have both base and sub-type bonuses

compound_verbs()

source code 

GameAction compound-verb test cases:

  • recognition and handling of compound verbs
  • correct association with ACCURACY, DAMAGE, POWER and STACKS lists
  • stopping list processing on first action that fails