class RubyMan::Wall

impassable wall

Public Class Methods

chars() click to toggle source
# File lib/ruby_man/GameObjects/wall.rb, line 14
def self.chars
  '+T34F/\\JL-|oAV<>'
end
from_char(char) click to toggle source
# File lib/ruby_man/GameObjects/wall.rb, line 18
def self.from_char(char)
  index = chars.index(char)
  return if index.nil?
  Wall.new(index)
end
new(type) click to toggle source
Calls superclass method RubyMan::GridObject::new
# File lib/ruby_man/GameObjects/wall.rb, line 6
def initialize(type)
  super()
  self.sprite = Sprite['walls']
  @image_index = type
  @image_speed = 0
  @solid = true
end