Gridarta Editor
DefaultScriptArchUtils.java
Go to the documentation of this file.
1 /*
2  * Gridarta MMORPG map editor for Crossfire, Daimonin and similar games.
3  * Copyright (C) 2000-2023 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.var.daimonin.gui.scripts;
21 
23 import net.sf.gridarta.utils.Pair;
24 import org.jetbrains.annotations.NotNull;
25 
27 
34  public DefaultScriptArchUtils(@NotNull final Iterable<Pair<Integer, String>> eventTypes, @NotNull final String subtypeAttribute, final int eventTypeNo) {
35  super(eventTypes, subtypeAttribute, eventTypeNo);
36  }
37 
38  @NotNull
39  @Override
40  public String getArchetypeNameForEventType(final int eventType) {
41  return "event_obj";
42  }
43 
44 }
net.sf.gridarta
Base package of all Gridarta classes.
net.sf
net.sf.gridarta.gui.scripts.AbstractScriptArchUtils.subtypeAttribute
final String subtypeAttribute
The attribute name for the subtype field.
Definition: AbstractScriptArchUtils.java:42
net.sf.gridarta.gui
Graphical User Interface of Gridarta.
net
net.sf.gridarta.utils.Pair
Stores a pair of values.
Definition: Pair.java:26
net.sf.gridarta.var.daimonin.gui.scripts.DefaultScriptArchUtils
Definition: DefaultScriptArchUtils.java:26
net.sf.gridarta.gui.scripts
Definition: AbstractScriptArchUtils.java:20
net.sf.gridarta.gui.scripts.AbstractScriptArchUtils
Definition: AbstractScriptArchUtils.java:35
net.sf.gridarta.gui.scripts.AbstractScriptArchUtils.eventTypeNo
final int eventTypeNo
The object type for event objects.
Definition: AbstractScriptArchUtils.java:48
net.sf.gridarta.var.daimonin.gui.scripts.DefaultScriptArchUtils.DefaultScriptArchUtils
DefaultScriptArchUtils(@NotNull final Iterable< Pair< Integer, String >> eventTypes, @NotNull final String subtypeAttribute, final int eventTypeNo)
Creates a new instance.
Definition: DefaultScriptArchUtils.java:34
net.sf.gridarta.var.daimonin.gui.scripts.DefaultScriptArchUtils.getArchetypeNameForEventType
String getArchetypeNameForEventType(final int eventType)
Returns the archetype for an event type.
Definition: DefaultScriptArchUtils.java:40
net.sf.gridarta.utils
Definition: ActionBuilderUtils.java:20