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, @NotNull final Integer @Nullable [] subLayers) {
74  // ignore
75  }
76 
77  @Override
78  public void applyMassChange(@NotNull final Integer @NotNull [] layers, @NotNull final Integer @NotNull [] 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 }
net.sf.gridarta.model.archetype.TestArchetype
Definition: TestArchetype.java:30
net.sf.gridarta.model.gameobject.DefaultIsoGameObject
Definition: DefaultIsoGameObject.java:38
net.sf.gridarta
net.sf.gridarta.model.anim.AnimationObjects
Definition: AnimationObjects.java:30
net.sf.gridarta.model.gameobject.TestGameObject
Definition: TestGameObject.java:34
net.sf.gridarta.model.gameobject.TestGameObject.propagateElevation
void propagateElevation(@NotNull final BaseObject<?, ?, ?, ?> gameObject)
Definition: TestGameObject.java:68
net.sf
net.sf.gridarta.model.archetype
Definition: AbstractArchetype.java:20
net.sf.gridarta.model.face.FaceObjectProviders
Definition: FaceObjectProviders.java:46
net.sf.gridarta.model.gameobject.TestGameObject.getLightRadius
int getLightRadius()
Definition: TestGameObject.java:63
net
net.sf.gridarta.model.gameobject.DefaultIsoGameObject< TestGameObject, TestMapArchObject, TestArchetype >::faceObjectProviders
final transient FaceObjectProviders faceObjectProviders
Definition: DefaultIsoGameObject.java:121
net.sf.gridarta.model.gameobject.TestGameObject.isScripted
boolean isScripted()
Definition: TestGameObject.java:82
net.sf.gridarta.model.gameobject.TestGameObject.isStretched
boolean isStretched(final boolean tileStretching)
Definition: TestGameObject.java:58
net.sf.gridarta.model.gameobject.TestGameObject.getThis
TestGameObject getThis()
Definition: TestGameObject.java:94
net.sf.gridarta.model.gameobject.TestGameObject.applyMassChange
void applyMassChange(@NotNull final Integer @NotNull[] layers, @NotNull final Integer @NotNull[] subLayers, @NotNull final String changes)
Definition: TestGameObject.java:78
net.sf.gridarta.model.gameobject.TestGameObject.clone
TestGameObject clone()
Definition: TestGameObject.java:88
net.sf.gridarta.model.gameobject.TestGameObject.TestGameObject
TestGameObject(@NotNull final TestArchetype archetype, @NotNull final FaceObjectProviders faceObjectProviders, @NotNull final AnimationObjects animationObjects)
Definition: TestGameObject.java:48
net.sf.gridarta.model.gameobject.TestGameObject.updateTileStretch
void updateTileStretch(final int heightValue, final boolean isAbsolute, @NotNull final Integer @Nullable[] subLayers)
Definition: TestGameObject.java:73
net.sf.gridarta.model.baseobject.BaseObject
Definition: BaseObject.java:34
net.sf.gridarta.model
net.sf.gridarta.model.gameobject.TestGameObject.isDrawDouble
boolean isDrawDouble(final boolean drawDoubleFaces)
Definition: TestGameObject.java:53
net.sf.gridarta.model.baseobject
Definition: AbstractBaseObject.java:20
net.sf.gridarta.model.face
Definition: AbstractFaceObjects.java:20
net.sf.gridarta.model.anim
Definition: AbstractAnimationObjects.java:20
net.sf.gridarta.model.maparchobject.TestMapArchObject
Definition: TestMapArchObject.java:28
net.sf.gridarta.model.maparchobject
Definition: AbstractMapArchObject.java:20
net.sf.gridarta.model.gameobject.TestGameObject.serialVersionUID
static final long serialVersionUID
Definition: TestGameObject.java:39