summaryrefslogtreecommitdiff
path: root/assets/javascripts/rectangles/models/wall.js
blob: b9705a2a9b571ab306636f58af038365b65e9bbe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
window.Wall = (function(){

	var Wall = function(opt){
		this.id = opt.id
		this.room = opt.room
		this.rect = opt.rect
		this.mx = []
 		this.els = []
	}
	
	Wall.prototype.toString = function(){
		return this.rect.toString()
	}

	Wall.prototype.reset = function(){
	}
	
	Wall.prototype.bind = function(){
		this.$walls.bind({
			mouseover: function(){
			},
			mousemove: function(e){
			},
			mousedown: function(){
				$(this).css("background-color", choice(window.palettes.colors))
			}
		})
	}

	return Wall

})()