class Wall { PVector a; PVector b; boolean bDangerous = true; CircleButton startPointButton; CircleButton endPointButton; Wall(PVector _a, PVector _b, Boolean _bDangerous) { a = _a; b = _b; bDangerous = _bDangerous; startPointButton = new CircleButton(int(a.x), int(a.y), 9, color(153, 204, 255), color(2, 128, 253), color(127)); endPointButton = new CircleButton(int(b.x), int(b.y), 9, color(255, 153, 255), color(227, 2, 227), color(127)); } PVector getSlope() { PVector AB = new PVector(b.x - a.x, b.y - a.y); return AB; } PVector getStartPoint() { return a; } PVector getEndPoint() { return b; } Boolean isDangerous(){ return bDangerous; } void setStartPoint(PVector v) { a.x = v.x; a.y = v.y; } void setEndPoint(PVector v) { b.x = v.x; b.y = v.y; } void display(int strokeColor) { stroke(strokeColor); line(a.x, a.y, b.x, b.y); noStroke(); startPointButton.display(); endPointButton.display(); } }