Class SmoothFacesCollectable

  • All Implemented Interfaces:
    Collectable

    public class SmoothFacesCollectable
    extends java.lang.Object
    implements Collectable
    A Collectable that creates the Crossfire specific smooth faces file. This file contains information needed for smoothing faces between adjacent map squares.
    • Constructor Summary

      Constructors 
      Constructor Description
      SmoothFacesCollectable​(@NotNull SmoothFaces smoothFaces, @NotNull java.lang.String smoothFile)
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void collect​(@NotNull net.sf.japi.swing.misc.Progress progress, @NotNull java.io.File collectedDirectory)
      Collects information.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SmoothFacesCollectable

        public SmoothFacesCollectable​(@NotNull
                                      @NotNull SmoothFaces smoothFaces,
                                      @NotNull
                                      @NotNull java.lang.String smoothFile)
        Creates a new instance.
        Parameters:
        smoothFaces - the smooth faces to collect
        smoothFile - the smooth file to write to
    • Method Detail

      • collect

        public void collect​(@NotNull
                            @NotNull net.sf.japi.swing.misc.Progress progress,
                            @NotNull
                            @NotNull java.io.File collectedDirectory)
                     throws java.io.IOException
        Description copied from interface: Collectable
        Collects information.
        Specified by:
        collect in interface Collectable
        Parameters:
        progress - the progress to report progress to
        collectedDirectory - the destination directory to collect data to
        Throws:
        java.io.IOException - in case of I/O problems during collection