Gridarta Editor
TestGameObject.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.gameobject;
21 
27 import org.jetbrains.annotations.NotNull;
28 import org.jetbrains.annotations.Nullable;
29 
34 public class TestGameObject extends DefaultIsoGameObject<TestGameObject, TestMapArchObject, TestArchetype> {
35 
39  private static final long serialVersionUID = 1L;
40 
48  public TestGameObject(@NotNull final TestArchetype archetype, @NotNull final FaceObjectProviders faceObjectProviders, @NotNull final AnimationObjects animationObjects) {
49  super(archetype, faceObjectProviders, animationObjects);
50  }
51 
52  @Override
53  public boolean isDrawDouble(final boolean drawDoubleFaces) {
54  return drawDoubleFaces;
55  }
56 
57  @Override
58  public boolean isStretched(final boolean tileStretching) {
59  return false;
60  }
61 
62  @Override
63  public int getLightRadius() {
64  return 0;
65  }
66 
67  @Override
68  public void propagateElevation(@NotNull final BaseObject<?, ?, ?, ?> gameObject) {
69  // ignore
70  }
71 
72  @Override
73  public void updateTileStretch(final int heightValue, final boolean isAbsolute, @Nullable final Integer[] subLayers) {
74  // ignore
75  }
76 
77  @Override
78  public void applyMassChange(@NotNull final Integer[] layers, @NotNull final Integer[] subLayers, @NotNull final String changes) {
79  }
80 
81  @Override
82  public boolean isScripted() {
83  throw new AssertionError();
84  }
85 
86  @NotNull
87  @Override
88  public TestGameObject clone() {
89  return super.clone();
90  }
91 
92  @NotNull
93  @Override
94  protected TestGameObject getThis() {
95  return this;
96  }
97 
98 }
Gridarta can handle frame information of animations and allow the selection of an animation using a t...
void propagateElevation(@NotNull final BaseObject<?, ?, ?, ?> gameObject)
A MapArchObject implementation for testing purposes.
boolean isDrawDouble(final boolean drawDoubleFaces)
Base package of all Gridarta classes.
static final long serialVersionUID
The serial version UID.
AnimationObjects is a container for AnimationObjects.
void applyMassChange(@NotNull final Integer[] layers, @NotNull final Integer[] subLayers, @NotNull final String changes)
void updateTileStretch(final int heightValue, final boolean isAbsolute, @Nullable final Integer[] subLayers)
Provider for faces of GameObjects and Archetypes.
final transient FaceObjectProviders faceObjectProviders
The FaceObjectProviders for looking up faces.
The face is the appearance of an object.
An Archetype implementation for testing purposes.
boolean isStretched(final boolean tileStretching)
A GameObject implementation for testing purposes.
TestGameObject(@NotNull final TestArchetype archetype, @NotNull final FaceObjectProviders faceObjectProviders, @NotNull final AnimationObjects animationObjects)
Creates a new instance.
Default implementation for GameObject implementing classes.