package nl.joshuaslik.tudelft.SEM.control.gameObjects;

public class Door {

}

@@ -53,27 +53,1442 @@
 s;%0A%0A
-public class Door %7B%0A
+import nl.joshuaslik.tudelft.SEM.control.viewController.viewObjects.ILineViewObject;%0Aimport nl.joshuaslik.tudelft.SEM.model.container.Point;%0A%0A/**Makes a door which can be removed.%0A *%0A */%0Apublic class Door %7B%0A%0A%09Point ul;%0A%09Point ur;%0A%09Point bl;%0A%09Point br;%0A%09%0A%09IGameObjects igo;%0A%09%0A%09ILineViewObject up;%0A%09ILineViewObject left;%0A%09ILineViewObject right;%0A%09ILineViewObject down;%0A%09%0A%09%0A%09/**%0A%09 * Constructs a door of 4 points%0A%09 * @param upperLeft%0A%09 * @param upperRight%0A%09 * @param bottomLeft%0A%09 * @param bottomRight%0A%09 */%0A%09public Door (Point upperLeft, Point upperRight, Point bottomLeft, Point bottomRight) %7B%0A%09%09ul = upperLeft;%0A%09%09ur = upperRight;%0A%09%09bl = bottomLeft;%0A%09%09br = bottomRight;%0A%09%09%0A%09%09up.setStartX(ul.getxPos());%0A%09%09up.setStartY(ul.getyPos());%0A%09%09up.setEndX(ur.getxPos());%0A%09%09up.setEndY(ur.getyPos());%0A%09%09%0A%09%09left.setStartX(ul.getxPos());%0A%09%09left.setStartY(ul.getyPos());%0A%09%09left.setEndX(bl.getxPos());%0A%09%09left.setEndY(bl.getyPos());%0A%09%09%0A%09%09right.setStartX(ur.getxPos());%0A%09%09right.setStartY(ur.getyPos());%0A%09%09right.setEndX(br.getxPos());%0A%09%09right.setEndY(br.getyPos());%0A%09%09%0A%09%09down.setStartX(bl.getxPos());%0A%09%09down.setStartY(bl.getyPos());%0A%09%09down.setEndX(br.getxPos());%0A%09%09down.setEndY(br.getyPos());%0A%09%7D%0A%09%0A%09%0A%09/**%0A%09 * This method sets a certain amount of time, after which the door will disappear%0A%09 */%0A%09public void setTime() %7B%0A%09%09%0A%09%7D%0A%09%0A%09/**%0A%09 * This method sets a certain amount of balls which need to be destroyed to open the door%0A%09 */%0A%09public void setBalls() %7B%0A%09%09%0A%09%7D
 %0A%7D%0A

Add constructor