Class: Core::Tools::AbstractMap

Inherits:
Object
  • Object
show all
Defined in:
lib/tools/worldmap_editor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, file) ⇒ AbstractMap

Returns a new instance of AbstractMap.



15
16
17
18
19
# File 'lib/tools/worldmap_editor.rb', line 15

def initialize(name, file)
  @name = name
  @file = file
  @lower = @upper = @right = @left = nil
end

Instance Attribute Details

#fileObject (readonly)

Returns the value of attribute file.



14
15
16
# File 'lib/tools/worldmap_editor.rb', line 14

def file
  @file
end

#leftObject

Returns the value of attribute left.



13
14
15
# File 'lib/tools/worldmap_editor.rb', line 13

def left
  @left
end

#lowerObject

Returns the value of attribute lower.



13
14
15
# File 'lib/tools/worldmap_editor.rb', line 13

def lower
  @lower
end

#nameObject (readonly)

Returns the value of attribute name.



14
15
16
# File 'lib/tools/worldmap_editor.rb', line 14

def name
  @name
end

#rightObject

Returns the value of attribute right.



13
14
15
# File 'lib/tools/worldmap_editor.rb', line 13

def right
  @right
end

#upperObject

Returns the value of attribute upper.



13
14
15
# File 'lib/tools/worldmap_editor.rb', line 13

def upper
  @upper
end