Gridarta Editor
TestArchetypeAttributeFactory.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.archetypetype;
21 
22 import org.jetbrains.annotations.NotNull;
23 import org.jetbrains.annotations.Nullable;
24 
30 
31  @NotNull
32  @Override
33  public ArchetypeAttribute newArchetypeAttributeAnimname(@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength) {
34  return new TestArchetypeAttribute("animname", archetypeAttributeName, attributeName, description, inputLength);
35  }
36 
37  @NotNull
38  @Override
39  public ArchetypeAttribute newArchetypeAttributeBitmask(@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength, @NotNull final String bitmaskName) {
40  return new TestArchetypeAttribute("bitmask", archetypeAttributeName, attributeName, description, inputLength);
41  }
42 
43  @NotNull
44  @Override
45  public ArchetypeAttribute newArchetypeAttributeBool(@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength) {
46  return new TestArchetypeAttribute("bool", archetypeAttributeName, attributeName, description, inputLength);
47  }
48 
49  @NotNull
50  @Override
51  public ArchetypeAttribute newArchetypeAttributeBoolSpec(@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength, @NotNull final String trueValue, @NotNull final String falseValue) {
52  return new TestArchetypeAttribute("bool_spec", archetypeAttributeName, attributeName, description, inputLength);
53  }
54 
55  @NotNull
56  @Override
57  public ArchetypeAttribute newArchetypeAttributeFacename(@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength) {
58  return new TestArchetypeAttribute("face_name", archetypeAttributeName, attributeName, description, inputLength);
59  }
60 
61  @NotNull
62  @Override
63  public ArchetypeAttribute newArchetypeAttributeFixed(@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength) {
64  return new TestArchetypeAttribute("fixed", archetypeAttributeName, attributeName, description, inputLength);
65  }
66 
67  @NotNull
68  @Override
69  public ArchetypeAttribute newArchetypeAttributeFloat(@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength) {
70  return new TestArchetypeAttribute("float", archetypeAttributeName, attributeName, description, inputLength);
71  }
72 
73  @NotNull
74  @Override
75  public ArchetypeAttribute newArchetypeAttributeInt(@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength, final int minValue, final int maxValue, final int minCheckValue, final int maxCheckValue) {
76  return new TestArchetypeAttribute("int", archetypeAttributeName, attributeName, description, inputLength);
77  }
78 
79  @NotNull
80  @Override
81  public ArchetypeAttribute newArchetypeAttributeInvSpell(@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength) {
82  return new TestArchetypeAttribute("inv_spell", archetypeAttributeName, attributeName, description, inputLength);
83  }
84 
85  @NotNull
86  @Override
87  public ArchetypeAttribute newArchetypeAttributeInvSpellOptional(@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength) {
88  return new TestArchetypeAttribute("inv_spell_optional", archetypeAttributeName, attributeName, description, inputLength);
89  }
90 
91  @NotNull
92  @Override
93  public ArchetypeAttribute newArchetypeAttributeList(@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength, @NotNull final String listName) {
94  return new TestArchetypeAttribute("list", archetypeAttributeName, attributeName, description, inputLength);
95  }
96 
97  @NotNull
98  @Override
99  public ArchetypeAttribute newArchetypeAttributeList2(@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength, @NotNull final String listName1, @NotNull final String listName2) {
100  return new TestArchetypeAttribute("list2", archetypeAttributeName, attributeName, description, inputLength);
101  }
102 
103  @NotNull
104  @Override
105  public ArchetypeAttribute newArchetypeAttributeLong(@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength) {
106  return new TestArchetypeAttribute("long", archetypeAttributeName, attributeName, description, inputLength);
107  }
108 
109  @NotNull
110  @Override
111  public ArchetypeAttribute newArchetypeAttributeMapPath(@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength) {
112  return new TestArchetypeAttribute("map_path", archetypeAttributeName, attributeName, description, inputLength);
113  }
114 
115  @NotNull
116  @Override
117  public ArchetypeAttribute newArchetypeAttributeScriptFile(@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength) {
118  return new TestArchetypeAttribute("script_file", archetypeAttributeName, attributeName, description, inputLength);
119  }
120 
121  @NotNull
122  @Override
123  public ArchetypeAttribute newArchetypeAttributeSpell(@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength) {
124  return new TestArchetypeAttribute("spell", archetypeAttributeName, attributeName, description, inputLength);
125  }
126 
127  @NotNull
128  @Override
129  public ArchetypeAttribute newArchetypeAttributeString(@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength) {
130  return new TestArchetypeAttribute("string", archetypeAttributeName, attributeName, description, inputLength);
131  }
132 
133  @NotNull
134  @Override
135  public ArchetypeAttribute newArchetypeAttributeText(@NotNull final String archetypeAttributeName, @NotNull final String endingOld, @NotNull final String attributeName, @NotNull final String description, final int inputLength, @Nullable final String fileExtension) {
136  return new TestArchetypeAttribute("text", archetypeAttributeName, attributeName, description, inputLength);
137  }
138 
139  @NotNull
140  @Override
141  public ArchetypeAttribute newArchetypeAttributeTreasure(@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength) {
142  return new TestArchetypeAttribute("treasure", archetypeAttributeName, attributeName, description, inputLength);
143  }
144 
145  @NotNull
146  @Override
147  public ArchetypeAttribute newArchetypeAttributeZSpell(@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength) {
148  return new TestArchetypeAttribute("nz_spell", archetypeAttributeName, attributeName, description, inputLength);
149  }
150 
151 }
ArchetypeAttribute newArchetypeAttributeBoolSpec(@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength, @NotNull final String trueValue, @NotNull final String falseValue)
Creates a new "bool spec" archetype attribute.
ArchetypeAttribute newArchetypeAttributeZSpell(@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength)
Creates a new "z-spell" archetype attribute.
ArchetypeAttribute newArchetypeAttributeInvSpell(@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength)
Creates a new "inv spell" archetype attribute.
ArchetypeAttribute newArchetypeAttributeTreasure(@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength)
Creates a new "treasure" archetype attribute.
ArchetypeAttribute newArchetypeAttributeText(@NotNull final String archetypeAttributeName, @NotNull final String endingOld, @NotNull final String attributeName, @NotNull final String description, final int inputLength, @Nullable final String fileExtension)
Creates a new "text" archetype attribute.
ArchetypeAttribute newArchetypeAttributeString(@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength)
Creates a new "string" archetype attribute.
Interface for classes implementing ArchetypeAttribute factories.
This Class contains the data of one archetype attribute.
ArchetypeAttribute newArchetypeAttributeFixed(@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength)
Creates a new "fixed" archetype attribute.
ArchetypeAttribute newArchetypeAttributeList(@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength, @NotNull final String listName)
Creates a new "list" archetype attribute.
ArchetypeAttribute newArchetypeAttributeSpell(@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength)
Creates a new "spell" archetype attribute.
ArchetypeAttribute newArchetypeAttributeInvSpellOptional(@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength)
Creates a new "inv spell optional" archetype attribute.
ArchetypeAttribute newArchetypeAttributeMapPath(@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength)
Creates a new "map path" archetype attribute.
ArchetypeAttribute newArchetypeAttributeFacename(@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength)
Creates a new "face name" archetype attribute.
ArchetypeAttribute newArchetypeAttributeBool(@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength)
Creates a new "bool" archetype attribute.
ArchetypeAttribute newArchetypeAttributeList2(@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength, @NotNull final String listName1, @NotNull final String listName2)
Creates a new "list2" archetype attribute.
ArchetypeAttribute newArchetypeAttributeInt(@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength, final int minValue, final int maxValue, final int minCheckValue, final int maxCheckValue)
Creates a new "int" archetype attribute.
ArchetypeAttribute newArchetypeAttributeFloat(@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength)
Creates a new "float" archetype attribute.
ArchetypeAttribute newArchetypeAttributeScriptFile(@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength)
Creates a new "script file" archetype attribute.
ArchetypeAttribute newArchetypeAttributeBitmask(@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength, @NotNull final String bitmaskName)
Creates a new "bitmask" archetype attribute.
ArchetypeAttribute newArchetypeAttributeAnimname(@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength)
Creates a new "animname" archetype attribute.
An ArchetypeAttribute suitable for unit tests.
ArchetypeAttribute newArchetypeAttributeLong(@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength)
Creates a new "long" archetype attribute.