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.maparchobject;
021
022import org.jetbrains.annotations.NotNull;
023
024/**
025 * A {@link MapArchObject} implementation for testing purposes.
026 * @author Andreas Kirschbaum
027 */
028public class TestMapArchObject extends AbstractMapArchObject<TestMapArchObject> {
029
030    /**
031     * The serial version UID.
032     */
033    private static final long serialVersionUID = 1L;
034
035    /**
036     * Creates a new instance.
037     */
038    public TestMapArchObject() {
039    }
040
041    /**
042     * Creates a new instance as a copy of another map arch object.
043     * @param mapArchObject the other map arch object
044     * @noinspection TypeMayBeWeakened
045     */
046    private TestMapArchObject(@NotNull final TestMapArchObject mapArchObject) {
047        super(mapArchObject);
048    }
049
050    /**
051     * {@inheritDoc}
052     */
053    @NotNull
054    @Override
055    public TestMapArchObject createClone() {
056        return new TestMapArchObject(this);
057    }
058
059    /**
060     * {@inheritDoc}
061     */
062    @NotNull
063    @Override
064    protected TestMapArchObject getThis() {
065        return this;
066    }
067
068}