Class: Falling::View

Inherits:
Object
  • Object
show all
Defined in:
lib/falling/view.rb

Direct Known Subclasses

MapView, MessagesView

Instance Method Summary collapse

Constructor Details

#initializeView

Returns a new instance of View.



5
6
7
8
# File 'lib/falling/view.rb', line 5

def initialize
  calculate_geometry!
  @window = Curses::Window.new(height, width, row, column)
end

Instance Method Details

#refreshObject



10
11
12
# File 'lib/falling/view.rb', line 10

def refresh
  window.noutrefresh
end