 #= require collision
 #= require environment
 #= require logger
-
 
 
 class timber.Engine

    add : (elements...) ->
        @elements.push(element) for element in elements

    # Run the engine's event loop.
    loop : () ->
        # Stop, if so desired.
        return if not @continue

        # Determine how much time has elapsed since the last loop.
        now = new Date()
        elapsed = now - @timestamp


        # Do it again when the stack clears.
        @timestamp = now
        setTimeout () =>
            @.step()
        , @interval
