net.sf.gridarta.var.crossfire.model.gameobject
public class PropagateElevationTest extends Object
GameObjectContainers
correctly
propagate elevation information when being modified.Constructor and Description |
---|
PropagateElevationTest() |
public PropagateElevationTest()
public void testAddFirst()
GameObjectContainer.addFirst(net.sf.gridarta.model.gameobject.GameObject)
does work correctly.public void testAddLast()
GameObjectContainer.addLast(net.sf.gridarta.model.gameobject.GameObject)
does work correctly.public void testInsertBefore()
GameObjectContainer.insertBefore(net.sf.gridarta.model.gameobject.GameObject,
net.sf.gridarta.model.gameobject.GameObject)
does work correctly.public void testInsertAfter()
GameObjectContainer.insertAfter(net.sf.gridarta.model.gameobject.GameObject,
net.sf.gridarta.model.gameobject.GameObject)
does work correctly.public void testMoveBottom()
GameObjectContainer.moveBottom(net.sf.gridarta.model.gameobject.GameObject)
does work correctly.public void testMoveDown()
GameObjectContainer.moveDown(net.sf.gridarta.model.gameobject.GameObject)
does work correctly.public void testMoveUp()
GameObjectContainer.moveUp(net.sf.gridarta.model.gameobject.GameObject)
does work correctly.public void testMoveTop()
GameObjectContainer.moveTop(net.sf.gridarta.model.gameobject.GameObject)
does work correctly.public void testRemove()
GameObjectContainer.remove(net.sf.gridarta.model.gameobject.GameObject)
does work correctly.public void testReplace()
GameObjectContainer.replace(net.sf.gridarta.model.gameobject.GameObject,
net.sf.gridarta.model.gameobject.GameObject)
does work correctly.public void testIterator()
GameObjectContainer.iterator()
's Iterator.remove()
does work correctly.public void testReverse()
GameObjectContainer.reverse()
's Iterator.remove()
does work correctly.@NotNull private static GameObjectContainer<GameObject,MapArchObject,Archetype> newContainer(@NotNull GameObjectCreator gameObjectCreator, int... elevations)
GameObjectContainer
that contains game objects with
the given elevation values.gameObjectCreator
- the game object creator to useelevations
- the elevations@NotNull private static GameObject get(@NotNull Iterable<GameObject> gameObjects, int index)
gameObjects
- the game objects to searchindex
- the indexindex
private static void check(@NotNull Iterable<GameObject> gameObjects, int... elevation)
gameObjects
- the game objectselevation
- the expected elevation value for the first game objectFeedback: webmaster
© 2003-2010 The Gridarta Developers. All rights reserved.