Gridarta Editor
TestProjectSettings.java
Go to the documentation of this file.
1 /*
2  * Gridarta MMORPG map editor for Crossfire, Daimonin and similar games.
3  * Copyright (C) 2000-2015 The Gridarta Developers.
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License along
16  * with this program; if not, write to the Free Software Foundation, Inc.,
17  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18  */
19 
20 package net.sf.gridarta.model.settings;
21 
22 import java.io.File;
23 import org.jetbrains.annotations.NotNull;
24 
30 
34  @NotNull
35  private File mapsDirectory = new File("maps");
36 
37  @NotNull
38  @Override
39  public File getArchDirectory() {
40  return new File("arch");
41  }
42 
43  @Override
44  public void setArchDirectory(@NotNull final File archDirectory) {
45  throw new AssertionError();
46  }
47 
48  @NotNull
49  @Override
50  public File getMapsDirectory() {
51  return mapsDirectory;
52  }
53 
54  @Override
55  public void setMapsDirectory(@NotNull final File mapsDirectory) {
56  if (this.mapsDirectory.equals(mapsDirectory)) {
57  return;
58  }
59 
60  this.mapsDirectory = mapsDirectory;
62  }
63 
64  @NotNull
65  @Override
66  public String getConfigSourceName() {
67  throw new AssertionError();
68  }
69 
70  @Override
71  public void setConfigSourceName(@NotNull final String configSourceName) {
72  throw new AssertionError();
73  }
74 
75  @Override
76  @NotNull
77  public File getPickmapDir() {
78  throw new AssertionError();
79  }
80 
81  @Override
82  @NotNull
83  public File getMediaDirectory() {
84  throw new AssertionError();
85  }
86 
87  @Override
88  public void setMediaDirectory(@NotNull final File mediaDirectory) {
89  throw new AssertionError();
90  }
91 
92  @NotNull
93  @Override
94  public String getImageSet() {
95  throw new AssertionError();
96  }
97 
98  @Override
99  public void setImageSet(@NotNull final String imageSet) {
100  throw new AssertionError();
101  }
102 
103  @Override
104  @NotNull
106  throw new AssertionError();
107  }
108 
109  @Override
110  @NotNull
111  public File getCollectedDirectory() {
112  return new File("collected");
113  }
114 
115  @NotNull
116  @Override
117  public String getUserName() {
118  return "user";
119  }
120 
121  @Override
122  public void setUserName(@NotNull final String userName) {
123  throw new AssertionError();
124  }
125 
126  @Override
127  public boolean saveIndices() {
128  return false;
129  }
130 
131 }
void setImageSet(@NotNull final String imageSet)
Sets the image set.
void setUserName(@NotNull final String userName)
Sets the user name.
String getConfigSourceName()
Returns the name of the configuration source.
void fireMapsDirectoryChanged()
Notifies all listeners about a changed maps directory.
File getMediaDirectory()
Returns the media directory.
File getMapsDirectory()
Returns the default maps directory.
void setArchDirectory(@NotNull final File archDirectory)
Sets the archetype directory.
File getArchDirectory()
Returns the archetype directory.
File getCollectedDirectory()
Returns the directory where collected archetypes are stored.
File getConfigurationDirectory()
Returns the configuration directory which is used to load configuration information like types...
An ProjectSettings implementation for testing purposes.
void setMapsDirectory(@NotNull final File mapsDirectory)
Sets the default maps directory.
boolean saveIndices()
Returns whether indices should be saved to disk.
void setConfigSourceName(@NotNull final String configSourceName)
Sets the name of the configuration source.
File getPickmapDir()
Returns the pickmap directory.
Abstract base class for ProjectSettings implementations.
void setMediaDirectory(@NotNull final File mediaDirectory)
Sets the media directory.