001/*
002 * Gridarta MMORPG map editor for Crossfire, Daimonin and similar games.
003 * Copyright (C) 2000-2010 The Gridarta Developers.
004 *
005 * This program is free software; you can redistribute it and/or modify
006 * it under the terms of the GNU General Public License as published by
007 * the Free Software Foundation; either version 2 of the License, or
008 * (at your option) any later version.
009 *
010 * This program is distributed in the hope that it will be useful,
011 * but WITHOUT ANY WARRANTY; without even the implied warranty of
012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
013 * GNU General Public License for more details.
014 *
015 * You should have received a copy of the GNU General Public License along
016 * with this program; if not, write to the Free Software Foundation, Inc.,
017 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
018 */
019
020package net.sf.gridarta.model.resource;
021
022import java.io.File;
023import net.sf.gridarta.model.anim.AnimationObjects;
024import net.sf.gridarta.model.archetype.TestArchetype;
025import net.sf.gridarta.model.archetypeset.ArchetypeSet;
026import net.sf.gridarta.model.face.ArchFaceProvider;
027import net.sf.gridarta.model.face.FaceObjects;
028import net.sf.gridarta.model.gameobject.TestGameObject;
029import net.sf.gridarta.model.io.AbstractArchetypeParser;
030import net.sf.gridarta.model.maparchobject.TestMapArchObject;
031import org.jetbrains.annotations.NotNull;
032import org.jetbrains.annotations.Nullable;
033
034/**
035 * An {@link AbstractFilesResourcesReader} for regression tests.
036 * @author Andreas Kirschbaum
037 */
038public class TestFilesResourcesReader extends AbstractFilesResourcesReader<TestGameObject, TestMapArchObject, TestArchetype> {
039
040    /**
041     * Creates a new instance.
042     * @param archDirectory the "arch" directory to read
043     * @param archetypeSet the archetype set to update
044     * @param archetypeParser the archetype parser to use
045     * @param archFaceProvider the arch face provider to use
046     * @param collectedDirectory the collected directory
047     * @param imageSet the active image set or <code>null</code>
048     * @param animationObjects the animation objects instance
049     * @param faceObjects the face objects instance
050     */
051    public TestFilesResourcesReader(@NotNull final File archDirectory, @NotNull final ArchetypeSet<TestGameObject, TestMapArchObject, TestArchetype> archetypeSet, @NotNull final AbstractArchetypeParser<TestGameObject, TestMapArchObject, TestArchetype, ?> archetypeParser, @NotNull final ArchFaceProvider archFaceProvider, @NotNull final File collectedDirectory, @Nullable final String imageSet, @NotNull final AnimationObjects animationObjects, @NotNull final FaceObjects faceObjects) {
052        super(archDirectory, archetypeSet, archetypeParser, archFaceProvider, collectedDirectory, imageSet, animationObjects, faceObjects);
053    }
054
055    @Override
056    protected boolean isValidEntry(final int folderLevel, final String name) {
057        return true;
058    }
059
060}