summaryrefslogtreecommitdiffstats
path: root/lib/evendoors/space.rb
blob: 22b991064857228e4d75ac35d1f2ef689a2d16fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#! /usr/bin/env ruby
# -*- coding: UTF-8 -*-

#
module EvenDoors
    #
    class Space < Room
        #
        def initialize n, args={}
            super n, nil
            EvenDoors::Twirl.debug = args[:debug] || false
        end
        #
        def twirl!
            @spots.values.each do |spot| spot.start! end
            EvenDoors::Twirl.run = true
            EvenDoors::Twirl.twirl!
            @spots.values.each do |spot| spot.stop! end
        end
        #
    end
    #
end
#
# EOF