From 1282559bffc1acbc99a22ecfef44227eefbc9817 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 23 Apr 2014 13:00:39 -0400 Subject: detect what room you're in --- assets/javascripts/rectangles/models/room.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'assets/javascripts/rectangles/models/room.js') 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){ -- cgit v1.2.3-70-g09d2