@@ -0,0 +1,1023 @@
+package ships.model;%0A%0A/**%0A *%0A * @author r4pt0r%0A */%0Apublic class ShipPlacementMode %7B%0A%0A    private Ship.Size size = Ship.Size.ONE;%0A    private Ship.Direction dir = Ship.Direction.HORIZONTAL;%0A    private Boolean active = Boolean.FALSE;%0A%0A    /**%0A     * @return the size%0A     */%0A    public Ship.Size getSize() %7B%0A        return size;%0A    %7D%0A%0A    /**%0A     * @param size the size to set%0A     */%0A    public void setSize(Ship.Size size) %7B%0A        this.size = size;%0A    %7D%0A%0A    /**%0A     * @return the dir%0A     */%0A    public Ship.Direction getDir() %7B%0A        return dir;%0A    %7D%0A%0A    /**%0A     * @return the active%0A     */%0A    public Boolean isActive() %7B%0A        return active;%0A    %7D%0A%0A    public void activate() %7B%0A        this.active = Boolean.TRUE;%0A    %7D%0A%0A    public void deactivate() %7B%0A        this.active = Boolean.FALSE;%0A    %7D%0A%0A    public void switchDirection() %7B%0A        if (dir == Ship.Direction.HORIZONTAL) %7B%0A            dir = Ship.Direction.VERTICAL;%0A        %7D else %7B%0A            dir = Ship.Direction.HORIZONTAL;%0A        %7D%0A    %7D%0A%0A%7D%0A

Add class for storing status of ship placement