summaryrefslogtreecommitdiff
path: root/assets/javascripts/rectangles/models/wall.js
blob: e25d2dd3055bf013f4b2e1b0f13a1c65460f4bb8 (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
window.wall = (function(){

	var wall = function(opt){
		this.id = opt.id
		this.room = opt.room
		this.rect = opt.rect
		this.mx = []
	}
	
	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

})()