Class: RubyWarrior::Units::Captive

Inherits:
Base
  • Object
show all
Defined in:
lib/ruby_warrior/units/captive.rb

Instance Attribute Summary

Attributes inherited from Base

#health, #position

Instance Method Summary collapse

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

#initializeCaptive

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

#characterObject



12
13
14
# File 'lib/ruby_warrior/units/captive.rb', line 12

def character
  "C"
end

#max_healthObject



8
9
10
# File 'lib/ruby_warrior/units/captive.rb', line 8

def max_health
  1
end