Package | Description |
---|---|
net.sf.gridarta.actions | |
net.sf.gridarta.gui.map.mapview | |
net.sf.gridarta.gui.map.renderer | |
net.sf.gridarta.gui.map.test | |
net.sf.gridarta.model.archetype | |
net.sf.gridarta.model.artifact | |
net.sf.gridarta.model.autojoin | |
net.sf.gridarta.model.baseobject | |
net.sf.gridarta.model.gameobject |
GameObjects are the objects based on Archetypes found on maps.
|
net.sf.gridarta.model.io |
Reading and writing of maps, handling of paths.
|
net.sf.gridarta.model.mapcontrol | |
net.sf.gridarta.model.mapcursor | |
net.sf.gridarta.model.mapmanager | |
net.sf.gridarta.model.mapmodel | |
net.sf.gridarta.model.match |
This package contains classes related to matching
GameObjects , so called GameObjectMatchers . |
net.sf.gridarta.model.resource | |
net.sf.gridarta.model.validation |
This package contains the framework for validating maps.
|
net.sf.gridarta.plugin.parameter | |
net.sf.gridarta.var.atrinik.gui.map.renderer |
Renders maps.
|
Modifier and Type | Method and Description |
---|---|
private ExitConnectorActions<TestGameObject,TestMapArchObject,TestArchetype> |
ExitConnectorActionsTest.createActions(ExitConnectorModel model)
Creates a new
ExitConnectorActions instance. |
Modifier and Type | Method and Description |
---|---|
private static void |
ExitConnectorActionsTest.checkExit(MapModel<TestGameObject,TestMapArchObject,TestArchetype> mapModel,
Point point,
int index,
String exitPath,
Point exitPoint)
Checks that a map model contains an exit game object.
|
private static void |
UndoActionsTest.checkFace(MapModel<TestGameObject,TestMapArchObject,TestArchetype> mapModel,
int x,
int y,
String face)
Checks the face name of the first object in a map square.
|
Modifier and Type | Field and Description |
---|---|
private MapControl<TestGameObject,TestMapArchObject,TestArchetype> |
TestMapView.mapControl
The controller of this view.
|
Modifier and Type | Method and Description |
---|---|
MapControl<TestGameObject,TestMapArchObject,TestArchetype> |
TestMapView.getMapControl()
Return the controller of this view.
|
MapView<TestGameObject,TestMapArchObject,TestArchetype> |
TestMapViewFactory.newMapView(MapControl<TestGameObject,TestMapArchObject,TestArchetype> mapControl,
Point viewPosition,
int viewCounter)
Creates a new map view instance for a map control.
|
Modifier and Type | Method and Description |
---|---|
MapView<TestGameObject,TestMapArchObject,TestArchetype> |
TestMapViewFactory.newMapView(MapControl<TestGameObject,TestMapArchObject,TestArchetype> mapControl,
Point viewPosition,
int viewCounter)
Creates a new map view instance for a map control.
|
Constructor and Description |
---|
TestMapView(MapControl<TestGameObject,TestMapArchObject,TestArchetype> mapControl,
MapGrid mapGrid,
MapCursor<TestGameObject,TestMapArchObject,TestArchetype> mapCursor)
Creates a new instance.
|
TestMapView(MapControl<TestGameObject,TestMapArchObject,TestArchetype> mapControl,
MapGrid mapGrid,
MapCursor<TestGameObject,TestMapArchObject,TestArchetype> mapCursor)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
AbstractMapRenderer<TestGameObject,TestMapArchObject,TestArchetype> |
TestRendererFactory.newMapRenderer(MapModel<TestGameObject,TestMapArchObject,TestArchetype> mapModel,
MapGrid mapGrid)
Creates a new
MapRenderer suitable for painting maps. |
AbstractMapRenderer<TestGameObject,TestMapArchObject,TestArchetype> |
TestRendererFactory.newPickmapRenderer(MapModel<TestGameObject,TestMapArchObject,TestArchetype> mapModel,
MapGrid mapGrid)
Creates a new
MapRenderer suitable for painting pickmaps. |
Modifier and Type | Method and Description |
---|---|
AbstractMapRenderer<TestGameObject,TestMapArchObject,TestArchetype> |
TestRendererFactory.newMapRenderer(MapModel<TestGameObject,TestMapArchObject,TestArchetype> mapModel,
MapGrid mapGrid)
Creates a new
MapRenderer suitable for painting maps. |
AbstractMapRenderer<TestGameObject,TestMapArchObject,TestArchetype> |
TestRendererFactory.newPickmapRenderer(MapModel<TestGameObject,TestMapArchObject,TestArchetype> mapModel,
MapGrid mapGrid)
Creates a new
MapRenderer suitable for painting pickmaps. |
MapRenderer |
TestRendererFactory.newSimpleMapRenderer(MapModel<TestGameObject,TestMapArchObject,TestArchetype> mapModel)
Creates a new map renderer instance which paints only squares but no
grid, cursor, selection, or errors.
|
Constructor and Description |
---|
TestMapRenderer(MapModel<TestGameObject,TestMapArchObject,TestArchetype> mapModel)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
static CopyBuffer<TestGameObject,TestMapArchObject,TestArchetype> |
TestMapControlCreatorUtils.newCopyBuffer(TestMapControlCreator mapControlCreator)
Returns a new
CopyBuffer instance. |
static MapImageCache<TestGameObject,TestMapArchObject,TestArchetype> |
TestMapControlCreatorUtils.newMapImageCache(TestMapControlCreator mapControlCreator)
Creates a new
MapImageCache instance. |
static MapView<TestGameObject,TestMapArchObject,TestArchetype> |
TestMapControlCreatorUtils.newMapView(MapControl<TestGameObject,TestMapArchObject,TestArchetype> mapControl)
Creates a new
MapView instance. |
static MapViewsManager<TestGameObject,TestMapArchObject,TestArchetype> |
TestMapControlCreatorUtils.newMapViewsManager(TestMapControlCreator mapControlCreator)
Creates a new
MapViewsManager instance. |
Modifier and Type | Method and Description |
---|---|
static MapView<TestGameObject,TestMapArchObject,TestArchetype> |
TestMapControlCreatorUtils.newMapView(MapControl<TestGameObject,TestMapArchObject,TestArchetype> mapControl)
Creates a new
MapView instance. |
Constructor and Description |
---|
TestArchetypeBuilder(GameObjectFactory<TestGameObject,TestMapArchObject,TestArchetype> gameObjectFactory)
Creates a new instance.
|
Modifier and Type | Field and Description |
---|---|
private ArchetypeSet<TestGameObject,TestMapArchObject,TestArchetype> |
TestParser.archetypeSet
The
ArchetypeSet instance. |
private ArtifactParser<TestGameObject,TestMapArchObject,TestArchetype> |
TestParser.artifactParser
The
ArtifactParser instance. |
Modifier and Type | Method and Description |
---|---|
Archetype<TestGameObject,TestMapArchObject,TestArchetype> |
TestParser.getArchetype(String archetypeName)
Returns an
Archetype by name. |
Modifier and Type | Field and Description |
---|---|
private AutojoinLists<TestGameObject,TestMapArchObject,TestArchetype> |
AutojoinListsHelper.autojoinLists
The
AutojoinLists instance. |
Modifier and Type | Method and Description |
---|---|
private static GameObject<TestGameObject,TestMapArchObject,TestArchetype> |
AbstractBaseObjectTest.newGameObject(TestArchetype archetype,
String name,
FaceObjectProviders faceObjectProviders,
AnimationObjects animationObjects)
Creates a new game object instance.
|
Modifier and Type | Method and Description |
---|---|
TestGameObject |
TestGameObject.clone() |
TestGameObject |
TestGameObjectFactory.cloneGameObject(TestGameObject gameObject)
Creates a copy of a game object.
|
TestGameObject |
TestGameObjectFactory.createGameObject(TestArchetype archetype)
Creates a new GameObject from an
Archetype . |
TestGameObject |
TestGameObjectFactory.createGameObjectPart(TestArchetype archetype,
TestGameObject head)
Creates a new GameObject from an
Archetype . |
protected TestGameObject |
TestGameObject.getThis()
Returns
this as its real type. |
Modifier and Type | Method and Description |
---|---|
TestGameObject |
TestGameObjectFactory.cloneGameObject(TestGameObject gameObject)
Creates a copy of a game object.
|
TestGameObject |
TestGameObjectFactory.createGameObjectPart(TestArchetype archetype,
TestGameObject head)
Creates a new GameObject from an
Archetype . |
Modifier and Type | Field and Description |
---|---|
private ArchetypeSet<TestGameObject,TestMapArchObject,TestArchetype> |
ArchetypeParserTest.archetypeSet
The loaded archetypes.
|
private GameObjectParser<TestGameObject,TestMapArchObject,TestArchetype> |
TestMapReaderFactory.gameObjectParser
The
GameObjectParser instance. |
Modifier and Type | Method and Description |
---|---|
protected ArchetypeSet<TestGameObject,TestMapArchObject,TestArchetype> |
ArchetypeParserTest.getArchetypeSet()
Returns the
ArchetypeSet . |
protected AbstractArchetypeParser<TestGameObject,TestMapArchObject,TestArchetype,? extends AbstractArchetypeBuilder<TestGameObject,TestMapArchObject,TestArchetype>> |
ArchetypeParserTest.newArchetypeParser()
Creates a new
AbstractArchetypeParser instance. |
protected AbstractArchetypeParser<TestGameObject,TestMapArchObject,TestArchetype,? extends AbstractArchetypeBuilder<TestGameObject,TestMapArchObject,TestArchetype>> |
ArchetypeParserTest.newArchetypeParser()
Creates a new
AbstractArchetypeParser instance. |
MapReader<TestGameObject,TestMapArchObject> |
TestMapReaderFactory.newMapReader(File file)
Create a new
MapReader instance. |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
TestGameObjectParser.getModifiedFields(TestGameObject gameObject)
Returns the modified fields of a
GameObject . |
Modifier and Type | Method and Description |
---|---|
protected boolean |
TestArchetypeParser.processLine(BufferedReader in,
String line,
String line2,
TestArchetypeBuilder archetypeBuilder,
ErrorViewCollector errorViewCollector,
List<TestGameObject> invObjects)
Called for each processed line.
|
Constructor and Description |
---|
TestArchetypeParser(TestArchetypeBuilder archetypeBuilder,
AnimationObjects animationObjects,
ArchetypeSet<TestGameObject,TestMapArchObject,TestArchetype> archetypeSet)
Creates an ArchetypeParser.
|
TestGameObjectParser(GameObjectFactory<TestGameObject,TestMapArchObject,TestArchetype> gameObjectFactory,
ArchetypeSet<TestGameObject,TestMapArchObject,TestArchetype> archetypeSet)
Create a new instance.
|
TestGameObjectParser(GameObjectFactory<TestGameObject,TestMapArchObject,TestArchetype> gameObjectFactory,
ArchetypeSet<TestGameObject,TestMapArchObject,TestArchetype> archetypeSet)
Create a new instance.
|
TestMapReaderFactory(MapArchObjectParserFactory<TestMapArchObject> mapArchObjectParserFactory,
MapArchObjectFactory<TestMapArchObject> mapArchObjectFactory,
GameObjectParser<TestGameObject,TestMapArchObject,TestArchetype> gameObjectParser)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
MapControl<TestGameObject,TestMapArchObject,TestArchetype> |
TestMapControlFactory.newMapControl(List<TestGameObject> objects,
TestMapArchObject mapArchObject,
File file)
Create a new map control instance.
|
MapControl<TestGameObject,TestMapArchObject,TestArchetype> |
TestMapControlFactory.newPickmapControl(List<TestGameObject> objects,
TestMapArchObject mapArchObject,
File file)
Create a new pickmap map control instance.
|
Constructor and Description |
---|
TestMapControlFactory(MapWriter<TestGameObject,TestMapArchObject,TestArchetype> mapWriter,
ProjectSettings projectSettings,
MapModelFactory<TestGameObject,TestMapArchObject,TestArchetype> mapModelFactory)
Creates a new instance.
|
TestMapControlFactory(MapWriter<TestGameObject,TestMapArchObject,TestArchetype> mapWriter,
ProjectSettings projectSettings,
MapModelFactory<TestGameObject,TestMapArchObject,TestArchetype> mapModelFactory)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
private static MapCursor<TestGameObject,TestMapArchObject,TestArchetype> |
MapCursorTest.createCursor(MapGrid grid)
Creates a new
MapCursor instance. |
Modifier and Type | Method and Description |
---|---|
void |
MapCursorTest.TestMapCursorListener.mapCursorChangedGameObject(MapSquare<TestGameObject,TestMapArchObject,TestArchetype> mapSquare,
TestGameObject gameObject) |
Modifier and Type | Method and Description |
---|---|
private static void |
MapCursorTest.dragTo(MapCursor<TestGameObject,TestMapArchObject,TestArchetype> cursor,
MapGrid grid,
Direction dir,
Point start,
Point p,
Dimension offset)
Calls
MapCursor.dragTo(Point) and checks for expected results. |
void |
MapCursorTest.TestMapCursorListener.mapCursorChangedGameObject(MapSquare<TestGameObject,TestMapArchObject,TestArchetype> mapSquare,
TestGameObject gameObject) |
Modifier and Type | Method and Description |
---|---|
boolean |
TestFileControl.confirmSaveChanges(MapControl<TestGameObject,TestMapArchObject,TestArchetype> mapControl)
Asks the user whether to save changes of a map.
|
void |
TestFileControl.reportSaveError(MapControl<TestGameObject,TestMapArchObject,TestArchetype> mapControl,
String message)
Reports an error while saving a map file to the user.
|
boolean |
TestFileControl.save(MapControl<TestGameObject,TestMapArchObject,TestArchetype> mapControl)
Save one map.
|
boolean |
TestFileControl.saveAs(MapControl<TestGameObject,TestMapArchObject,TestArchetype> mapControl)
Asks the user for a filename, then saves the map.
|
Modifier and Type | Field and Description |
---|---|
private TestGameObject[] |
FilterGameObjectIteratorTest.ArrayGameObjectIterator.gameObjects
The
GameObjects to return. |
Modifier and Type | Method and Description |
---|---|
private static void |
FilterGameObjectIteratorTest.check(GameObjectMatcher matcher,
Iterator<TestGameObject> iterator,
TestGameObject... gameObjects)
Creates a new
FilterGameObjectIterator instance and checks that
it returns the expected game objects. |
Modifier and Type | Method and Description |
---|---|
void |
TestMapModelCreator.addGameObjectToMap(MapModel<TestGameObject,TestMapArchObject,TestArchetype> mapModel,
String archetypeName,
String name,
int x,
int y,
InsertionMode<TestGameObject,TestMapArchObject,TestArchetype> insertionMode)
Inserts a game object into a map.
|
void |
TestMapModelCreator.addGameObjectToMap(MapModel<TestGameObject,TestMapArchObject,TestArchetype> mapModel,
String archetypeName,
String name,
int x,
int y,
InsertionMode<TestGameObject,TestMapArchObject,TestArchetype> insertionMode)
Inserts a game object into a map.
|
private static void |
FilterGameObjectIteratorTest.check(GameObjectMatcher matcher,
Iterator<TestGameObject> iterator,
TestGameObject... gameObjects)
Creates a new
FilterGameObjectIterator instance and checks that
it returns the expected game objects. |
static void |
TestMapModelHelper.checkContents(Iterable<TestGameObject> mapSquare,
BaseObject<?,?,?,?>... gameObjects)
Checks that a
MapSquare contains the given game objects. |
private static void |
TestMapModelHelper.checkContentsString(MapSquare<TestGameObject,TestMapArchObject,TestArchetype> mapSquare,
String... gameObjects)
Checks that a
MapSquare contains the given game objects. |
static void |
TestMapModelHelper.checkMapContents(MapModel<TestGameObject,TestMapArchObject,TestArchetype> mapModel,
String... lines)
Checks for expected
MapModel 's contents. |
TestGameObject |
TestMapModelHelper.insertArchetype(GameObjectContainer<TestGameObject,TestMapArchObject,TestArchetype> gameObject,
BaseObject<TestGameObject,TestMapArchObject,TestArchetype,?> archetype)
Inserts an archetype into a game object.
|
TestGameObject |
TestMapModelHelper.insertArchetype(GameObjectContainer<TestGameObject,TestMapArchObject,TestArchetype> gameObject,
BaseObject<TestGameObject,TestMapArchObject,TestArchetype,?> archetype)
Inserts an archetype into a game object.
|
TestGameObject |
TestMapModelHelper.insertArchetype(MapModel<TestGameObject,TestMapArchObject,TestArchetype> mapModel,
int x,
int y,
BaseObject<TestGameObject,TestMapArchObject,TestArchetype,?> archetype,
boolean join)
Inserts an archetype game object into a map model.
|
TestGameObject |
TestMapModelHelper.insertArchetype(MapModel<TestGameObject,TestMapArchObject,TestArchetype> mapModel,
int x,
int y,
BaseObject<TestGameObject,TestMapArchObject,TestArchetype,?> archetype,
boolean join)
Inserts an archetype game object into a map model.
|
TestGameObject |
TestMapModelHelper.insertArchetype(MapModel<TestGameObject,TestMapArchObject,TestArchetype> mapModel,
Point point,
BaseObject<TestGameObject,TestMapArchObject,TestArchetype,?> archetype,
boolean join)
Inserts an archetype game object into a map model.
|
TestGameObject |
TestMapModelHelper.insertArchetype(MapModel<TestGameObject,TestMapArchObject,TestArchetype> mapModel,
Point point,
BaseObject<TestGameObject,TestMapArchObject,TestArchetype,?> archetype,
boolean join)
Inserts an archetype game object into a map model.
|
TestGameObject |
TestMapModelHelper.insertExit(GameObjectContainer<TestGameObject,TestMapArchObject,TestArchetype> gameObject)
Inserts an
TestMapModelHelper.exitArchetype game object into a game object. |
TestGameObject |
TestMapModelHelper.insertExit(MapModel<TestGameObject,TestMapArchObject,TestArchetype> mapModel,
Point point)
Inserts an
TestMapModelHelper.exitArchetype game object into a map model. |
TestGameObject |
TestMapModelHelper.insertFloor(MapModel<TestGameObject,TestMapArchObject,TestArchetype> mapModel,
Point point)
Inserts a
TestMapModelHelper.floorArchetype game object into a map model. |
void |
TestMapModelCreator.insertGameObject(GameObject<TestGameObject,TestMapArchObject,TestArchetype> gameObject,
String archetypeName,
String name)
Inserts a game object into the inventory of another game object.
|
TestGameObject |
TestMapModelHelper.insertMob21(GameObjectContainer<TestGameObject,TestMapArchObject,TestArchetype> gameObject)
Inserts a
TestMapModelHelper.mob21Archetype game object into a game object. |
TestGameObject |
TestMapModelHelper.insertMob21(MapModel<TestGameObject,TestMapArchObject,TestArchetype> mapModel,
Point point)
Inserts a
TestMapModelHelper.mob21Archetype game object into a map model. |
private void |
DefaultMapModelTest.log(String name,
Iterable<MapSquare<TestGameObject,TestMapArchObject,TestArchetype>> mapSquares,
Iterable<TestGameObject> gameObjects)
Records a change event.
|
private void |
DefaultMapModelTest.log(String name,
Iterable<MapSquare<TestGameObject,TestMapArchObject,TestArchetype>> mapSquares,
Iterable<TestGameObject> gameObjects)
Records a change event.
|
Constructor and Description |
---|
FilterGameObjectIteratorTest.ArrayGameObjectIterator(TestGameObject... gameObjects)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
private static TestGameObject |
NamedGameObjectMatcherTest.newGameObject(TestGameObjectFactory gameObjectFactory,
TestArchetype archetype,
String gameObjectName)
Creates a new
TestGameObject instance. |
Constructor and Description |
---|
TestFilesResourcesReader(File archDirectory,
ArchetypeSet<TestGameObject,TestMapArchObject,TestArchetype> archetypeSet,
AbstractArchetypeParser<TestGameObject,TestMapArchObject,TestArchetype,?> archetypeParser,
ArchFaceProvider archFaceProvider,
File collectedDirectory,
String imageSet,
AnimationObjects animationObjects,
FaceObjects faceObjects)
Creates a new instance.
|
TestFilesResourcesReader(File archDirectory,
ArchetypeSet<TestGameObject,TestMapArchObject,TestArchetype> archetypeSet,
AbstractArchetypeParser<TestGameObject,TestMapArchObject,TestArchetype,?> archetypeParser,
ArchFaceProvider archFaceProvider,
File collectedDirectory,
String imageSet,
AnimationObjects animationObjects,
FaceObjects faceObjects)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
static ValidatorFactory<TestGameObject,TestMapArchObject,TestArchetype> |
ValidationUtils.newValidatorFactory()
Creates a new
ValidatorFactory instance. |
Modifier and Type | Method and Description |
---|---|
private static PluginParameter<TestGameObject,TestMapArchObject,TestArchetype,?> |
PluginParameterCodecTest.fromXML(TestMapControlCreator mapControlCreator,
String string)
Decodes a
PluginParameter from its string representation. |
Modifier and Type | Method and Description |
---|---|
private static String |
PluginParameterCodecTest.toXML(PluginParameter<TestGameObject,TestMapArchObject,TestArchetype,?> parameter)
Encodes a
PluginParameter to its string representation. |
Modifier and Type | Method and Description |
---|---|
private TestMapRenderer |
MapRendererTest.newRenderer(MapModel<TestGameObject,TestMapArchObject,TestArchetype> mapModel)
Creates a new
TestMapRenderer instance for a MapModel . |
Feedback: webmaster
© 2003-2010 The Gridarta Developers. All rights reserved.