module UiHandler

Constants

AVAILABLE
BACK
INVALID
LOST
NEW_GAME
NOT_ENOUGH_FOOD
NO_TILE
PROMPT
RAISE_WARNING
RESOURCES
WIN

Public Class Methods

clear_messages() click to toggle source
# File lib/demigodGame/UiHandler.rb, line 87
def self.clear_messages()
  #system "clear" or system "cls"
end
get_decision() click to toggle source

input #

# File lib/demigodGame/UiHandler.rb, line 93
def self.get_decision()
  gets.chomp()
end
print_error(error_str="An error has occured") click to toggle source
print_hash(hash) click to toggle source
print_lost_message() click to toggle source
print_status(resources, buildings) click to toggle source
print_tile_options(tile) click to toggle source
print_turn_message() click to toggle source
print_win_message() click to toggle source
print_world(world) click to toggle source

output #