Gridarta Editor
DefaultArchetypeFactory.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.model.archetype;
21 
27 import org.jetbrains.annotations.NotNull;
28 
33 public class DefaultArchetypeFactory implements ArchetypeFactory<GameObject, MapArchObject, Archetype> {
34 
38  @NotNull
40 
44  @NotNull
46 
54  this.faceObjectProviders = faceObjectProviders;
55  this.animationObjects = animationObjects;
56  }
57 
58  @NotNull
59  @Override
60  public Archetype newUndefinedArchetype(@NotNull final String archetypeName) {
61  return new UndefinedArchetype(archetypeName, faceObjectProviders, animationObjects);
62  }
63 
64 }
net.sf.gridarta.var.daimonin.model.archetype.DefaultArchetypeFactory.faceObjectProviders
final FaceObjectProviders faceObjectProviders
The FaceObjectProviders for looking up faces.
Definition: DefaultArchetypeFactory.java:39
net.sf.gridarta.var.daimonin.model.gameobject
Handles the Daimonin variants of GameObjects and Archetypes.
Definition: DefaultGameObjectFactory.java:20
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
net.sf.gridarta.var.daimonin.model.archetype.DefaultArchetypeFactory
A ArchetypeFactory creating Daimonin objects.
Definition: DefaultArchetypeFactory.java:33
net.sf.gridarta.var.daimonin.model.archetype.Archetype
Implements Daimonin archetypes.
Definition: Archetype.java:30
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.var
net.sf.gridarta.var.daimonin.model.archetype.UndefinedArchetype
Implements an undefined Daimonin archetype.
Definition: UndefinedArchetype.java:33
net.sf.gridarta.var.daimonin.model
net
net.sf.gridarta.model.archetype.ArchetypeFactory
A factory for creating Archetype instances.
Definition: ArchetypeFactory.java:30
net.sf.gridarta.var.daimonin.model.gameobject.GameObject
Handles the Daimonin GameObjects.
Definition: GameObject.java:42
net.sf.gridarta.var.daimonin.model.archetype.DefaultArchetypeFactory.animationObjects
final AnimationObjects animationObjects
The AnimationObjects for looking up animations.
Definition: DefaultArchetypeFactory.java:45
net.sf.gridarta.var.daimonin.model.archetype.DefaultArchetypeFactory.DefaultArchetypeFactory
DefaultArchetypeFactory(@NotNull final FaceObjectProviders faceObjectProviders, @NotNull final AnimationObjects animationObjects)
Creates a new instance.
Definition: DefaultArchetypeFactory.java:53
net.sf.gridarta.model
net.sf.gridarta.var.daimonin
Main package of Gridarta4Daimonin, contains all classes specific to the Daimonin version of the Grida...
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.daimonin.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.daimonin.model.maparchobject
Definition: DefaultMapArchObjectFactory.java:20
net.sf.gridarta.var.daimonin.model.archetype.DefaultArchetypeFactory.newUndefinedArchetype
Archetype newUndefinedArchetype(@NotNull final String archetypeName)
Creates a new undefined archetype instance.
Definition: DefaultArchetypeFactory.java:60