Class: MapReader::MapObject

Inherits:
Object
  • Object
show all
Includes:
MapUnquote
Defined in:
lib/IFMapper/MapReader.rb

Overview

Temporary classes used to store inform room information

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from MapUnquote

#unquote

Constructor Details

#initialize(location) ⇒ MapObject

def method_missing(*a) end



77
78
79
80
81
82
83
84
# File 'lib/IFMapper/MapReader.rb', line 77

def initialize(location)
  if location
	@location = Array[*location]
  else
	@location = []
  end
  @enterable = []
end

Instance Attribute Details

#connector ⇒ Object (readonly)

Returns the value of attribute connector.



63
64
65
# File 'lib/IFMapper/MapReader.rb', line 63

def connector
  @connector
end

#enterable ⇒ Object

Returns the value of attribute enterable.



64
65
66
# File 'lib/IFMapper/MapReader.rb', line 64

def enterable
  @enterable
end

#location ⇒ Object

Returns the value of attribute location.



64
65
66
# File 'lib/IFMapper/MapReader.rb', line 64

def location
  @location
end

#name ⇒ Object

Returns the value of attribute name.



63
64
65
# File 'lib/IFMapper/MapReader.rb', line 63

def name
  @name
end

#scenery ⇒ Object

Returns the value of attribute scenery.



64
65
66
# File 'lib/IFMapper/MapReader.rb', line 64

def scenery
  @scenery
end

#tag ⇒ Object

Returns the value of attribute tag.



64
65
66
# File 'lib/IFMapper/MapReader.rb', line 64

def tag
  @tag
end

Instance Method Details

#to_s ⇒ Object



70
71
72
# File 'lib/IFMapper/MapReader.rb', line 70

def to_s
  "#@name tag:#@tag"
end