- Defined in:
A company action is an action taken by a director on behalf of a company
Direct Known Subclasses
, , , , , ,
Instance Attribute Summary collapse
#turn ⇒ Baron::Turn
The turn that this action is a part of.
Attributes inherited from
Instance Method Summary collapse
#initialize(turn) ⇒ CompanyAction
Create the company action.
Methods inherited from
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Create the company action
This is designed to be called by the parent action
21 22 23 24
# File 'lib/baron/action/company_action.rb', line 21 def initialize(turn) @player = turn.player @turn = turn end
Instance Attribute Details
#turn ⇒ (readonly)
The turn that this action is a part of
13 14 15
# File 'lib/baron/action/company_action.rb', line 13 def turn @turn end