Class: MapReader::MapDoor

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeMapDoor

end



91
92
93
# File 'lib/IFMapper/MapReader.rb', line 91

def initialize
  @location = []
end

Instance Attribute Details

#connectorObject

Returns the value of attribute connector.



88
89
90
# File 'lib/IFMapper/MapReader.rb', line 88

def connector
  @connector
end

#locationObject

Returns the value of attribute location.



88
89
90
# File 'lib/IFMapper/MapReader.rb', line 88

def location
  @location
end

#lockedObject

Returns the value of attribute locked.



88
89
90
# File 'lib/IFMapper/MapReader.rb', line 88

def locked
  @locked
end

#nameObject

Returns the value of attribute name.



88
89
90
# File 'lib/IFMapper/MapReader.rb', line 88

def name
  @name
end

#tagObject

Returns the value of attribute tag.



88
89
90
# File 'lib/IFMapper/MapReader.rb', line 88

def tag
  @tag
end

Instance Method Details

#to_sObject



94
95
96
97
98
99
100
101
102
103
104
105
# File 'lib/IFMapper/MapReader.rb', line 94

def to_s
  if locked
	door = '<|>'
  else
	door = '<->'
  end
  c = ''
  if connector
	c = ' (connector)'
  end
  "#{location[0]}#{door}#{location[1]}#{c}"
end