Sha256: 747619c5a7f0354c527fe8cffed042b518f6eaaccddb9ffccf61eb055a872135

Contents?: true

Size: 445 Bytes

Versions: 40

Compression:

Stored size: 445 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

40 entries across 40 versions & 1 rubygems

Version Path
gemwarrior-0.9.16 lib/gemwarrior/entities/boss.rb
gemwarrior-0.9.15 lib/gemwarrior/entities/boss.rb
gemwarrior-0.9.14 lib/gemwarrior/entities/boss.rb
gemwarrior-0.9.13 lib/gemwarrior/entities/boss.rb
gemwarrior-0.9.12 lib/gemwarrior/entities/boss.rb
gemwarrior-0.9.10 lib/gemwarrior/entities/boss.rb
gemwarrior-0.9.9 lib/gemwarrior/entities/boss.rb
gemwarrior-0.9.8 lib/gemwarrior/entities/boss.rb
gemwarrior-0.9.7 lib/gemwarrior/entities/boss.rb
gemwarrior-0.9.6 lib/gemwarrior/entities/boss.rb
gemwarrior-0.9.5 lib/gemwarrior/entities/boss.rb
gemwarrior-0.9.4 lib/gemwarrior/entities/boss.rb
gemwarrior-0.9.3 lib/gemwarrior/entities/boss.rb
gemwarrior-0.9.2 lib/gemwarrior/entities/boss.rb
gemwarrior-0.9.1 lib/gemwarrior/entities/boss.rb
gemwarrior-0.9.0 lib/gemwarrior/entities/boss.rb
gemwarrior-0.8.8 lib/gemwarrior/entities/boss.rb
gemwarrior-0.8.7 lib/gemwarrior/entities/boss.rb
gemwarrior-0.8.6 lib/gemwarrior/entities/boss.rb
gemwarrior-0.8.5 lib/gemwarrior/entities/boss.rb