Gridarta Editor
DefaultArchetypeAttributeFactory.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 
31 
32  @NotNull
33  @Override
34  public ArchetypeAttribute newArchetypeAttributeAnimname(@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength) {
35  return new ArchetypeAttributeAnimationName(archetypeAttributeName, attributeName, description, inputLength);
36  }
37 
38  @NotNull
39  @Override
40  public ArchetypeAttribute newArchetypeAttributeBitmask(@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength, @NotNull final String bitmaskName) {
41  return new ArchetypeAttributeBitmask(archetypeAttributeName, attributeName, description, inputLength, bitmaskName);
42  }
43 
44  @NotNull
45  @Override
46  public ArchetypeAttribute newArchetypeAttributeBool(@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength) {
47  return new ArchetypeAttributeBool(archetypeAttributeName, attributeName, description, inputLength);
48  }
49 
50  @NotNull
51  @Override
52  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) {
53  return new ArchetypeAttributeBoolSpec(archetypeAttributeName, attributeName, description, inputLength, trueValue, falseValue);
54  }
55 
56  @NotNull
57  @Override
58  public ArchetypeAttribute newArchetypeAttributeFacename(@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength) {
59  return new ArchetypeAttributeFaceName(archetypeAttributeName, attributeName, description, inputLength);
60  }
61 
62  @NotNull
63  @Override
64  public ArchetypeAttribute newArchetypeAttributeFixed(@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength) {
65  return new ArchetypeAttributeFixed(archetypeAttributeName, attributeName, description, inputLength);
66  }
67 
68  @NotNull
69  @Override
70  public ArchetypeAttribute newArchetypeAttributeFloat(@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength) {
71  return new ArchetypeAttributeFloat(archetypeAttributeName, attributeName, description, inputLength);
72  }
73 
74  @NotNull
75  @Override
76  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) {
77  return new ArchetypeAttributeInt(archetypeAttributeName, attributeName, description, inputLength, minValue, maxValue, minCheckValue, maxCheckValue);
78  }
79 
80  @NotNull
81  @Override
82  public ArchetypeAttribute newArchetypeAttributeInvSpell(@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength) {
83  return new ArchetypeAttributeInvSpell(false, archetypeAttributeName, attributeName, description, inputLength);
84  }
85 
86  @NotNull
87  @Override
88  public ArchetypeAttribute newArchetypeAttributeInvSpellOptional(@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength) {
89  return new ArchetypeAttributeInvSpell(true, archetypeAttributeName, attributeName, description, inputLength);
90  }
91 
92  @NotNull
93  @Override
94  public ArchetypeAttribute newArchetypeAttributeList(@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength, @NotNull final String listName) {
95  return new ArchetypeAttributeList(archetypeAttributeName, attributeName, description, inputLength, listName);
96  }
97 
98  @NotNull
99  @Override
100  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) {
101  return new ArchetypeAttributeList2(archetypeAttributeName, attributeName, description, inputLength, listName1, listName2);
102  }
103 
104  @NotNull
105  @Override
106  public ArchetypeAttribute newArchetypeAttributeLong(@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength) {
107  return new ArchetypeAttributeLong(archetypeAttributeName, attributeName, description, inputLength);
108  }
109 
110  @NotNull
111  @Override
112  public ArchetypeAttribute newArchetypeAttributeMapPath(@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength) {
113  return new ArchetypeAttributeMapPath(archetypeAttributeName, attributeName, description, inputLength);
114  }
115 
116  @NotNull
117  @Override
118  public ArchetypeAttribute newArchetypeAttributeScriptFile(@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength) {
119  return new ArchetypeAttributeScriptFile(archetypeAttributeName, attributeName, description, inputLength);
120  }
121 
122  @NotNull
123  @Override
124  public ArchetypeAttribute newArchetypeAttributeSpell(@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength) {
125  return new ArchetypeAttributeSpell(archetypeAttributeName, attributeName, description, inputLength);
126  }
127 
128  @NotNull
129  @Override
130  public ArchetypeAttribute newArchetypeAttributeString(@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength) {
131  return new ArchetypeAttributeString(archetypeAttributeName, attributeName, description, inputLength);
132  }
133 
134  @NotNull
135  @Override
136  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) {
137  return new ArchetypeAttributeText(archetypeAttributeName, endingOld, attributeName, description, inputLength, fileExtension);
138  }
139 
140  @NotNull
141  @Override
142  public ArchetypeAttribute newArchetypeAttributeTreasure(@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength) {
143  return new ArchetypeAttributeTreasure(archetypeAttributeName, attributeName, description, inputLength);
144  }
145 
146  @NotNull
147  @Override
148  public ArchetypeAttribute newArchetypeAttributeZSpell(@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength) {
149  return new ArchetypeAttributeZSpell(archetypeAttributeName, attributeName, description, inputLength);
150  }
151 
152 }
An ArchetypeAttribute for selecting long integer values.
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 newArchetypeAttributeBool(@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength)
Creates a new "bool" 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.
Interface for classes implementing ArchetypeAttribute factories.
This Class contains the data of one archetype attribute.
An ArchetypeAttribute for selecting an optional spell encoded as an integer 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 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.
An ArchetypeAttribute displaying a fixed string.
An ArchetypeAttribute for selecting boolean values having specific "true" and "false" values...
ArchetypeAttribute newArchetypeAttributeAnimname(@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength)
Creates a new "animname" 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 newArchetypeAttributeZSpell(@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength)
Creates a new "z-spell" archetype attribute.
An ArchetypeAttribute for selecting map path names.
An ArchetypeAttribute for selecting string values.
ArchetypeAttribute newArchetypeAttributeFixed(@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength)
Creates a new "fixed" archetype attribute.
ArchetypeAttribute newArchetypeAttributeLong(@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength)
Creates a new "long" 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 newArchetypeAttributeString(@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength)
Creates a new "string" 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.
An ArchetypeAttribute for selecting bitmask values.
An ArchetypeAttribute for selecting spells encoded as in integer attribute.
An ArchetypeAttribute for selecting integer values.
An ArchetypeAttribute for selecting a value from two lists.
An ArchetypeAttribute for selecting boolean values.
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 newArchetypeAttributeScriptFile(@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength)
Creates a new "script file" 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.
An ArchetypeAttribute for selecting a value from a list.
An ArchetypeAttribute for selecting floating point values.
An ArchetypeAttribute for selecting text fields.
An ArchetypeAttribute for selecting a spell encoded as an inventory game object.
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 newArchetypeAttributeMapPath(@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength)
Creates a new "map path" archetype attribute.
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 newArchetypeAttributeTreasure(@NotNull final String archetypeAttributeName, @NotNull final String attributeName, @NotNull final String description, final int inputLength)
Creates a new "treasure" archetype attribute.