Sha256: 83f345e0717a4ac607cdb48aa137ed51c9c2343861e032a8b91fdf212fdd6f67
Contents?: true
Size: 1.02 KB
Versions: 2
Compression:
Stored size: 1.02 KB
Contents
require_relative '../controller/playergen' require_relative '../view/town' require 'yaml' module NewPlayer def start playerName raceOptions jobOptions ::Town.menu end def playerName system 'clear' puts "What is the name of your character?" name = gets.chomp ::PlayerGen.playerName(name) end def raceOptions system 'clear' puts 'What race would you like to play? (Select 1-3)' puts '1. Elf' puts '2. Human' puts '3. Dwarf' raceinput = gets.chomp.to_i ::PlayerGen.race(raceinput) end def jobOptions system 'clear' puts 'What job would you like to play? (Select 1-4)' puts '1. Mage' puts '2. Knight' puts '3. Rogue' puts '4. Ranger' jobinput = gets.chomp.to_i ::PlayerGen.job(jobinput) end module_function :start, :raceOptions, :jobOptions, :playerName end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lotrd-0.1.9 | lib/lotrd/view/newplayer.rb |
lotrd-0.1.8 | lib/lotrd/view/newplayer.rb |