class Wall
Public Class Methods
new(space, cell_x, cell_y)
click to toggle source
Calls superclass method
Entity::new
# File lib/game_2d/wall.rb, line 4 def initialize(space, cell_x, cell_y) super(cell_x * Entity::WIDTH, cell_y * Entity::HEIGHT) self.space = space end
Public Instance Methods
all_state()
click to toggle source
# File lib/game_2d/wall.rb, line 20 def all_state; [x, y]; end
moving=(moving)
click to toggle source
# File lib/game_2d/wall.rb, line 10 def moving=(moving); end
moving?()
click to toggle source
# File lib/game_2d/wall.rb, line 9 def moving?; false; end
registry_id()
click to toggle source
# File lib/game_2d/wall.rb, line 15 def registry_id; "Wall[#{left_cell_x}x#{top_cell_y}]"; end
sleep_now?()
click to toggle source
# File lib/game_2d/wall.rb, line 12 def sleep_now?; true; end
to_s()
click to toggle source
# File lib/game_2d/wall.rb, line 16 def to_s "Wall at #{left_cell_x}x#{top_cell_y} (#{x}x#{y})" end
wake!()
click to toggle source
# File lib/game_2d/wall.rb, line 13 def wake!; end