Module gameaction :: Class TestRecipient
[hide private]
[frames] | no frames]

Class TestRecipient

source code


a minimal object that can receive, and report on actions

The returned result string will include the passed TO_HIT and POWER/STACKS attributes so that the test case can confirm that they were properly computed and passed.

Instance Methods [hide private]
 
accept_action(self, action, actor, context)
report on the action we received
source code

Inherited from base.Base: __init__, __str__, get, set

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Instance Variables [hide private]

Inherited from base.Base: attributes, description, name

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

accept_action(self, action, actor, context)

source code 

report on the action we received

Parameters:
  • action - GameAction being sent
  • actor - GameActor who set it
  • context - GameContext in which this happened @return (boolean success, string results)