Class: CARPS::Action
- Inherits:
-
Object
- Object
- CARPS::Action
- Defined in:
- lib/carps/mod/action.rb
Overview
Actions taken when a rule is applied.
Subclasses must provide methods:
summary, returns string. The idea is to describe the effects of this Action.
execute which takes the dice result and then the parameters given to the Rule. The idea is to manipulate them here.
Instance Method Summary collapse
Instance Method Details
#apply(*params) ⇒ Object
29 30 31 32 |
# File 'lib/carps/mod/action.rb', line 29 def apply *params puts summary execute *params end |