summaryrefslogtreecommitdiff
path: root/assets/javascripts/rectangles/models/room.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2014-04-23 13:00:39 -0400
committerJules Laplace <jules@okfoc.us>2014-04-23 13:00:39 -0400
commit1282559bffc1acbc99a22ecfef44227eefbc9817 (patch)
treefadeb5e64949ad50ce725c2dbddde05a73dddc5a /assets/javascripts/rectangles/models/room.js
parentf94cf0d133a5d426a20cb5ac7eeb60f72b690119 (diff)
detect what room you're in
Diffstat (limited to 'assets/javascripts/rectangles/models/room.js')
-rw-r--r--assets/javascripts/rectangles/models/room.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/assets/javascripts/rectangles/models/room.js b/assets/javascripts/rectangles/models/room.js
index 3d512c3..3ccf1fb 100644
--- a/assets/javascripts/rectangles/models/room.js
+++ b/assets/javascripts/rectangles/models/room.js
@@ -6,6 +6,9 @@ window.room = (function(){
this.regions = []
this.height = opt.height || 200
this.focused = false
+ this.$walls = $([])
+ this.$floor = $([])
+ this.$ceiling = $([])
}
room.prototype.toString = function(){
@@ -19,6 +22,9 @@ window.room = (function(){
this.regions = [ copy ]
this.intersects = []
this.constructed = false
+ this.$walls = $([])
+ this.$floor = $([])
+ this.$ceiling = $([])
}
room.prototype.clipTo = function(r){