lib/IFMapper/Room.rb in ifmapper-0.9.9 vs lib/IFMapper/Room.rb in ifmapper-1.0.0
- old
+ new
@@ -9,20 +9,9 @@
attr_reader :exits # An array of 8 possible exits in room
attr_accessor :darkness # Is room in darkness?
attr_accessor :x, :y # Room location in grid
attr_accessor :desc # Room description
- DIRECTIONS = [
- 'n',
- 'ne',
- 'e',
- 'se',
- 's',
- 'sw',
- 'w',
- 'nw',
- ]
-
DIR_TO_VECTOR = {
0 => [ 0, -1 ],
1 => [ 1, -1 ],
2 => [ 1, 0 ],
3 => [ 1, 1 ],