Class: Smalruby::World

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/smalruby/world.rb

Overview

環境を表現するクラス

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeWorld

Returns a new instance of World.



13
14
15
16
# File 'lib/smalruby/world.rb', line 13

def initialize
  @objects = []
  @board = nil
end

Instance Attribute Details

#boardObject

Returns the value of attribute board.



10
11
12
# File 'lib/smalruby/world.rb', line 10

def board
  @board
end

#current_stageObject

Returns the value of attribute current_stage.



11
12
13
# File 'lib/smalruby/world.rb', line 11

def current_stage
  @current_stage
end

#objectsObject

Returns the value of attribute objects.



9
10
11
# File 'lib/smalruby/world.rb', line 9

def objects
  @objects
end