Class FaceObjectsCollectable

  • All Implemented Interfaces:
    Collectable

    public class FaceObjectsCollectable
    extends java.lang.Object
    implements Collectable
    A Collectable that creates the atrinik.0/crossfire.0/daimonin.0 files which contains all defined faces. It also creates index or editor helper files such as bmaps or bmaps.paths.
    • 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

      • FaceObjectsCollectable

        public FaceObjectsCollectable​(@NotNull
                                      @NotNull FaceObjects faceObjects,
                                      @NotNull
                                      @NotNull ArchFaceProvider archFaceProvider)
        Creates a new instance.
        Parameters:
        faceObjects - the face objects to collect
        archFaceProvider - the arch face provider to use
    • 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
        Collects information. Collects the faces. The graphics information is written to "crossfire.0" resp. "daimonin.0". The meta information (offsets etc.) is written to "bmaps". The tree information for the editor is written to "bmaps.paths" resp. "facetree".

        Theoretically it would also be possible to recode the images. But the Java image encoder isn't as good as that of gimp in many cases (yet much better as the old visualtek's).

        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