Sha256: f9b39ed4328d12739690941debb2b8484505d59a648f08a1bd0f1837e6937f21

Contents?: true

Size: 444 Bytes

Versions: 27

Compression:

Stored size: 444 Bytes

Contents

# lib/gemwarrior/entities/boss.rb
# Boss monster

require_relative 'monster'

module Gemwarrior
  class Boss < Monster
    attr_reader :win_text

    def win_text
      win_text =  "You beat #{name}! You win!"
      win_text << 'You become the true Gem Warrior, marry Queen Ruby, and have many fine, sparkling children. '
      win_text << 'Thank you for playing. Goodbye.'
      puts win_text
      exit(0)
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
gemwarrior-0.10.7 lib/gemwarrior/entities/boss.rb
gemwarrior-0.10.6 lib/gemwarrior/entities/boss.rb
gemwarrior-0.10.5 lib/gemwarrior/entities/boss.rb
gemwarrior-0.10.4 lib/gemwarrior/entities/boss.rb
gemwarrior-0.10.2 lib/gemwarrior/entities/boss.rb
gemwarrior-0.10.1 lib/gemwarrior/entities/boss.rb
gemwarrior-0.10.0 lib/gemwarrior/entities/boss.rb
gemwarrior-0.9.39 lib/gemwarrior/entities/boss.rb
gemwarrior-0.9.37 lib/gemwarrior/entities/boss.rb
gemwarrior-0.9.36 lib/gemwarrior/entities/boss.rb
gemwarrior-0.9.35 lib/gemwarrior/entities/boss.rb
gemwarrior-0.9.34 lib/gemwarrior/entities/boss.rb
gemwarrior-0.9.33 lib/gemwarrior/entities/boss.rb
gemwarrior-0.9.32 lib/gemwarrior/entities/boss.rb
gemwarrior-0.9.31 lib/gemwarrior/entities/boss.rb
gemwarrior-0.9.30 lib/gemwarrior/entities/boss.rb
gemwarrior-0.9.28 lib/gemwarrior/entities/boss.rb
gemwarrior-0.9.27 lib/gemwarrior/entities/boss.rb
gemwarrior-0.9.26 lib/gemwarrior/entities/boss.rb
gemwarrior-0.9.24 lib/gemwarrior/entities/boss.rb