20 package net.sf.gridarta.model.archetypetype;
22 import org.jetbrains.annotations.NotNull;
23 import org.jetbrains.annotations.Nullable;
34 return new TestArchetypeAttribute(
"animname", archetypeAttributeName, attributeName, description, inputLength);
40 return new TestArchetypeAttribute(
"bitmask", archetypeAttributeName, attributeName, description, inputLength);
46 return new TestArchetypeAttribute(
"bool", archetypeAttributeName, attributeName, description, inputLength);
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);
58 return new TestArchetypeAttribute(
"face_name", archetypeAttributeName, attributeName, description, inputLength);
64 return new TestArchetypeAttribute(
"fixed", archetypeAttributeName, attributeName, description, inputLength);
70 return new TestArchetypeAttribute(
"float", archetypeAttributeName, attributeName, description, inputLength);
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) {
82 return new TestArchetypeAttribute(
"inv_spell", archetypeAttributeName, attributeName, description, inputLength);
88 return new TestArchetypeAttribute(
"inv_spell_optional", archetypeAttributeName, attributeName, description, inputLength);
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);
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);
106 return new TestArchetypeAttribute(
"long", archetypeAttributeName, attributeName, description, inputLength);
112 return new TestArchetypeAttribute(
"map_path", archetypeAttributeName, attributeName, description, inputLength);
118 return new TestArchetypeAttribute(
"script_file", archetypeAttributeName, attributeName, description, inputLength);
124 return new TestArchetypeAttribute(
"spell", archetypeAttributeName, attributeName, description, inputLength);
130 return new TestArchetypeAttribute(
"string", archetypeAttributeName, attributeName, description, inputLength);
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);
142 return new TestArchetypeAttribute(
"treasure", archetypeAttributeName, attributeName, description, inputLength);
148 return new TestArchetypeAttribute(
"nz_spell", archetypeAttributeName, attributeName, description, inputLength);
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.
An ArchetypeAttributeFactory suitable for unit tests.
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.