Gridarta Editor
UndefinedArchetype.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.atrinik.model.archetype;
21 
27 import org.jetbrains.annotations.NotNull;
28 
33 public class UndefinedArchetype extends AbstractArchetype<GameObject, MapArchObject, Archetype> implements Archetype {
34 
38  private static final long serialVersionUID = 1L;
39 
47  public UndefinedArchetype(@NotNull final String archetypeName, @NotNull final FaceObjectProviders faceObjectProviders, @NotNull final AnimationObjects animationObjects) {
50  }
51 
52  @Override
53  public boolean isUndefinedArchetype() {
54  return true;
55  }
56 
57  @NotNull
58  @Override
60  return (UndefinedArchetype) super.clone();
61  }
62 
63  @Override
64  public boolean usesDirection() {
65  return false;
66  }
67 
68  @NotNull
69  @Override
70  protected Archetype getThis() {
71  return this;
72  }
73 
74 }
net.sf.gridarta.var.atrinik.model.archetype.UndefinedArchetype.clone
UndefinedArchetype clone()
Definition: UndefinedArchetype.java:59
net.sf.gridarta
Base package of all Gridarta classes.
net.sf.gridarta.model.anim.AnimationObjects
AnimationObjects is a container for AnimationObjects.
Definition: AnimationObjects.java:30
net.sf.gridarta.var.atrinik.model.archetype.UndefinedArchetype
Implements an undefined Atrinik archetype.
Definition: UndefinedArchetype.java:33
net.sf
net.sf.gridarta.model.archetype
Definition: AbstractArchetype.java:20
net.sf.gridarta.model.face.FaceObjectProviders
Provider for faces of GameObjects and Archetypes.
Definition: FaceObjectProviders.java:46
net.sf.gridarta.model.gameobject.GameObject
Reflects a game object (object on a map).
Definition: GameObject.java:36
net.sf.gridarta.var
net.sf.gridarta.model.archetype.AbstractArchetype.archetypeName
String archetypeName
The name of this archetype.
Definition: AbstractArchetype.java:50
net.sf.gridarta.model.archetype.AbstractArchetype.setEditorFolder
void setEditorFolder(@Nullable final String editorFolder)
Definition: AbstractArchetype.java:269
net.sf.gridarta.var.atrinik.model.archetype.Archetype
Implements Atrinik archetypes.
Definition: Archetype.java:30
net.sf.gridarta.var.atrinik.model.archetype.UndefinedArchetype.serialVersionUID
static final long serialVersionUID
The serial version UID.
Definition: UndefinedArchetype.java:38
net.sf.gridarta.model.gameobject
GameObjects are the objects based on Archetypes found on maps.
Definition: AbstractGameObject.java:20
net
net.sf.gridarta.var.atrinik.model.archetype.UndefinedArchetype.usesDirection
boolean usesDirection()
Definition: UndefinedArchetype.java:64
net.sf.gridarta.var.atrinik.model.maparchobject.MapArchObject
MapArchObject contains the specific meta data about a map that is stored in the map-arch,...
Definition: MapArchObject.java:39
net.sf.gridarta.var.atrinik
Main package of Gridarta4Atrinik, contains all classes specific to the Atrinik version of the Gridart...
net.sf.gridarta.var.atrinik.model.gameobject.GameObject
Handles the Atrinik GameObjects.
Definition: GameObject.java:44
net.sf.gridarta.model.gameobject.GameObject.EDITOR_FOLDER_INTERN
String EDITOR_FOLDER_INTERN
The editor folder name for server-internal archetypes.
Definition: GameObject.java:42
net.sf.gridarta.var.atrinik.model.maparchobject
Definition: DefaultMapArchObjectFactory.java:20
net.sf.gridarta.model
net.sf.gridarta.var.atrinik.model.archetype.UndefinedArchetype.isUndefinedArchetype
boolean isUndefinedArchetype()
Definition: UndefinedArchetype.java:53
net.sf.gridarta.model.face
The face is the appearance of an object.
Definition: AbstractFaceObjects.java:20
net.sf.gridarta.model.anim
Gridarta can handle frame information of animations and allow the selection of an animation using a t...
Definition: AbstractAnimationObjects.java:20
net.sf.gridarta.var.atrinik.model
net.sf.gridarta.var.atrinik.model.archetype.UndefinedArchetype.UndefinedArchetype
UndefinedArchetype(@NotNull final String archetypeName, @NotNull final FaceObjectProviders faceObjectProviders, @NotNull final AnimationObjects animationObjects)
Creates a new undefined archetype with the given archetype name.
Definition: UndefinedArchetype.java:47
net.sf.gridarta.var.atrinik.model.archetype.UndefinedArchetype.getThis
Archetype getThis()
Returns.
Definition: UndefinedArchetype.java:70
net.sf.gridarta.model.baseobject.AbstractBaseObject.animationObjects
final AnimationObjects animationObjects
The AnimationObjects for looking up animations.
Definition: AbstractBaseObject.java:57
net.sf.gridarta.var.atrinik.model.gameobject
Handles the Atrinik variants of GameObjects and Archetypes.
Definition: DefaultGameObjectFactory.java:20
net.sf.gridarta.model.archetype.AbstractArchetype
Abstract base class for Archetype implementations.
Definition: AbstractArchetype.java:38
net.sf.gridarta.model.baseobject.AbstractBaseObject.faceObjectProviders
final transient FaceObjectProviders faceObjectProviders
The FaceObjectProviders for looking up faces.
Definition: AbstractBaseObject.java:93