package ge.edu.freeuni.sdp.arkanoid.presenter;


import ge.edu.freeuni.sdp.arkanoid.model.AutopilotCapsule;
import ge.edu.freeuni.sdp.arkanoid.model.BreakCapsule;
import ge.edu.freeuni.sdp.arkanoid.model.Capsule;
import ge.edu.freeuni.sdp.arkanoid.model.ExpandCapsule;
import ge.edu.freeuni.sdp.arkanoid.model.ExtraLiveCapsule;
import ge.edu.freeuni.sdp.arkanoid.model.KillCapsule;
import ge.edu.freeuni.sdp.arkanoid.model.geometry.Size;
import ge.edu.freeuni.sdp.arkanoid.model.SlowBallCapsule;

class CapsulePresenter extends RectanglePresenter<Capsule> {

    CapsulePresenter(Capsule gameObject, Size size) {
        super(gameObject, size);
    }

    @Override
    CellContent getContent() {

        Capsule capsule = getGameObject();

        if (capsule instanceof ExpandCapsule) {
            return CellContent.ECapsule;
        } else if (capsule instanceof BreakCapsule) {
            return CellContent.BCapsule;
        } else if (capsule instanceof AutopilotCapsule) {
            return CellContent.ACapsule;
        } else if (capsule instanceof ExtraLiveCapsule) {
            return CellContent.PCapsule;
        } else if (capsule instanceof  KillCapsule)
            return CellContent.KillCapsule;
        else if (capsule instanceof SlowBallCapsule)
            return CellContent.SCapsule;
        return CellContent.None;
    }
}

@@ -1161,33 +1161,35 @@
 of  KillCapsule)
+ %7B
 %0A
-
             retu
@@ -1223,16 +1223,18 @@
 %0A       
+ %7D
  else if
@@ -1270,16 +1270,18 @@
 Capsule)
+ %7B
 %0A       
@@ -1306,32 +1306,137 @@
 ntent.SCapsule;%0A
+        %7D else if (capsule instanceof LaserCapsule) %7B%0A            return CellContent.LCapsule;%0A        %7D%0A
         return C

Add Laser Capsule to Presenter