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.exitconnector; 021 022import org.jetbrains.annotations.NotNull; 023 024/** 025 * {@link ExitConnectorModel} implementation for regression tests. It does not 026 * retain attribute values. 027 * @author Andreas Kirschbaum 028 */ 029public class TestExitConnectorModel extends AbstractExitConnectorModel { 030 031 /** 032 * {@inheritDoc} 033 */ 034 @Override 035 protected boolean loadPasteExitName() { 036 return true; 037 } 038 039 /** 040 * {@inheritDoc} 041 */ 042 @Override 043 protected void savePasteExitName(final boolean pasteExitName) { 044 // ignore 045 } 046 047 /** 048 * {@inheritDoc} 049 */ 050 @Override 051 protected boolean loadAutoCreateExit() { 052 return false; 053 } 054 055 /** 056 * {@inheritDoc} 057 */ 058 @Override 059 protected void saveAutoCreateExit(final boolean autoCreateExit) { 060 // ignore 061 } 062 063 /** 064 * {@inheritDoc} 065 */ 066 @NotNull 067 @Override 068 protected String loadExitArchetypeName() { 069 return "exit"; 070 } 071 072 /** 073 * {@inheritDoc} 074 */ 075 @Override 076 protected void saveExitArchetypeName(@NotNull final String exitArchetypeName) { 077 // ignore 078 } 079 080}