Class: RubyWarrior::Units::Captive
- Defined in:
- lib/ruby_warrior/units/captive.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #character ⇒ Object
-
#initialize ⇒ Captive
constructor
A new instance of Captive.
- #max_health ⇒ Object
Methods inherited from Base
#abilities, #add_abilities, #alive?, #attack_power, #bind, #bound?, #earn_points, #name, #next_turn, #perform_turn, #play_turn, #prepare_turn, #say, #take_damage, #unbind
Constructor Details
#initialize ⇒ Captive
Returns a new instance of Captive.
4 5 6 |
# File 'lib/ruby_warrior/units/captive.rb', line 4 def initialize bind end |
Instance Method Details
#character ⇒ Object
12 13 14 |
# File 'lib/ruby_warrior/units/captive.rb', line 12 def character "C" end |
#max_health ⇒ Object
8 9 10 |
# File 'lib/ruby_warrior/units/captive.rb', line 8 def max_health 1 end |