1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
|
# File 'lib/IFMapper/TranscriptReader.rb', line 1402
def start
if not @f
@f = File.open(@file, 'r')
while line = @f.gets
if @map.name =~ /^Empty Map/ and line =~ TRANSCRIPT
if $1
@map.name = $1
else
@map.name = @f.gets.strip
end
@map.name = capitalize_room(@map.name)
end
break if @prompt =~ line
end
parse_line(line)
end
@t = Thread.new {
loop do
self.step
Thread.pass
sleep 3
end
}
@t.run
end
|