Package | Description |
---|---|
net.sf.gridarta.model.archetype | |
net.sf.gridarta.model.archetypetype |
Defines types of
GameObjects with corresponding attributes. |
net.sf.gridarta.model.artifact | |
net.sf.gridarta.model.errorview | |
net.sf.gridarta.model.io |
Reading and writing of maps, handling of paths.
|
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.smoothface | |
net.sf.gridarta.model.spells | |
net.sf.gridarta.model.treasurelist | |
net.sf.gridarta.project | |
net.sf.gridarta.var.atrinik.maincontrol | |
net.sf.gridarta.var.atrinik.model.io |
Script related Atrinik specific classes.
|
net.sf.gridarta.var.crossfire.maincontrol | |
net.sf.gridarta.var.crossfire.model.io |
Reading and writing of Crossfire maps.
|
net.sf.gridarta.var.daimonin.maincontrol | |
net.sf.gridarta.var.daimonin.model.io |
Reading and writing of Daimonin maps.
|
Modifier and Type | Field and Description |
---|---|
private ErrorViewCollector |
AbstractArchetypeBuilder.errorViewCollector
The
ErrorViewCollector for reporting errors. |
Modifier and Type | Method and Description |
---|---|
void |
AbstractArchetypeBuilder.init(R prototype,
ErrorViewCollector errorViewCollector) |
Modifier and Type | Field and Description |
---|---|
private ErrorViewCollector |
ArchetypeTypeSetParserTest.errorViewCollector
The
ErrorViewCollector used for parsing. |
Modifier and Type | Method and Description |
---|---|
private Iterable<ArchetypeAttributeSection> |
ArchetypeTypeParser.addAttributeList(Element typeElement,
ArchetypeAttributeSection defaultAttributeSection,
ErrorViewCollector errorViewCollector,
String typeName,
ArchetypeTypeSet archetypeTypeSet)
Parses the
Constants.XML_ELEMENT_ATTRIBUTE and Constants.XML_ELEMENT_SECTION children of a "type" or "default_type"
element and adds all found attributes to an ArchetypeAttribute . |
private static void |
ArchetypeTypeParser.addImportList(String importName,
ArchetypeType newArchetypeType,
ErrorViewCollector errorViewCollector,
String typeName,
ArchetypeTypeSet archetypeTypeSet,
Collection<String> autoIgnoreTable)
Adds all imported attributes to an
ArchetypeAttributeSection . |
private static int |
ArchetypeAttributeParser.getAttributeIntValue(Element element,
String attributeKey,
int defaultValue,
String typeName,
ErrorViewCollector errorViewCollector)
Returns the value of an attribute as an
int value. |
ArchetypeAttribute |
ArchetypeAttributeParser.load(Element attributeElement,
ErrorViewCollector errorViewCollector,
ArchetypeTypeSet archetypeTypeSet,
String typeName)
Loading the data from an xml element into this object.
|
ArchetypeType |
ArchetypeTypeParser.loadAttributeList(Element typeElement,
ErrorViewCollector errorViewCollector,
ArchetypeType parentArchetypeType,
ArchetypeTypeSet archetypeTypeSet,
IgnorelistsDefinition ignorelistsDefinition,
boolean isDefaultType)
Parses an element which contains a list of
Constants.XML_ELEMENT_ATTRIBUTE elements from a types.xml file. |
ArchetypeTypeSet |
ArchetypeTypeSetParser.loadTypesFromXML(ErrorViewCollector errorViewCollector,
InputSource inputSource)
Loads a types.xml file.
|
ArchetypeTypeSet |
ArchetypeTypeSetParser.loadTypesFromXML(ErrorViewCollector errorViewCollector,
String filename,
Document document)
Loads a types.xml file.
|
private ArchetypeAttribute |
ArchetypeTypeParser.parseAttribute(Element attributeElement,
ErrorViewCollector errorViewCollector,
String typeName,
ArchetypeTypeSet archetypeTypeSet)
Parses an XML attribute element.
|
private void |
ArchetypeTypeParser.parseAttribute(Element attributeElement,
ErrorViewCollector errorViewCollector,
String typeName,
ArchetypeTypeSet archetypeTypeSet,
ArchetypeAttributeSections sections,
String sectionName)
Parses an
Constants.XML_ELEMENT_ATTRIBUTE element. |
private static void |
ArchetypeTypeParser.parseAttributeAttributes(Element ignoreElement,
String typeName,
ErrorViewCollector errorViewCollector,
Collection<String> ignoreTable)
Parses the
Constants.XML_ELEMENT_ATTRIBUTE child. |
private static void |
ArchetypeTypeSetParser.parseAttributeOrder(ArchetypeTypeSet archetypeTypeSet,
Node attributeOrderElement,
ErrorViewCollector errorViewCollector)
Parses the
Constants.XML_ELEMENT_ATTRIBUTE_ORDER section of a
types.xml file. |
private static AttributeBitmask |
ArchetypeTypeSetParser.parseBitmask(Element bitmaskElement,
String name,
ErrorViewCollector errorViewCollector)
Parses a
Constants.XML_ELEMENT_BITMASK section of a types.xml
file. |
private static void |
ArchetypeTypeSetParser.parseBitmasks(ArchetypeTypeSet archetypeTypeSet,
Element bitmasksElement,
ErrorViewCollector errorViewCollector)
Parses the
Constants.XML_ELEMENT_BITMASKS section of a types.xml
file. |
private static void |
ArchetypeTypeSetParser.parseBmentry(Element bmentryElement,
ErrorViewCollector errorViewCollector,
String bitmaskName,
boolean isNamed,
AttributeBitmask attributeBitmask)
Parses a
Constants.XML_ELEMENT_BMENTRY section of a types.xml
file. |
private ArchetypeType |
ArchetypeTypeSetParser.parseDefaultType(ArchetypeTypeSet archetypeTypeSet,
Element defaultTypeElement,
ErrorViewCollector errorViewCollector,
IgnorelistsDefinition ignorelistsDefinition)
Parses the
Constants.XML_ELEMENT_DEFAULT_TYPE element of a
types.xml file. |
private static void |
ArchetypeTypeSetParser.parseIgnoreList(Element ignoreListElement,
ErrorViewCollector errorViewCollector,
IgnorelistsDefinition ignorelistsDefinition)
Parses the
Constants.XML_ELEMENT_IGNORE_LIST section of a
types.xml file. |
private static void |
ArchetypeTypeParser.parseIgnoreListAttribute(Element ignoreElement,
String typeName,
ErrorViewCollector errorViewCollector,
Collection<String> ignoreTable,
IgnorelistsDefinition ignorelistsDefinition)
Parses the "ignore_list" children.
|
private static IgnorelistsDefinition |
ArchetypeTypeSetParser.parseIgnoreLists(Element ignorelistsElement,
ErrorViewCollector errorViewCollector)
Parses the
Constants.XML_ELEMENT_IGNORELISTS section of a
types.xml file. |
private static String |
ArchetypeTypeParser.parseImportType(Element importTypeElement,
String typeName,
ErrorViewCollector errorViewCollector)
|
private static int[] |
ArchetypeTypeParser.parseInv(Element typeElement,
String typeName,
ErrorViewCollector errorViewCollector)
Parses the "inv" attribute of a "type"
Element . |
private static void |
ArchetypeTypeSetParser.parseList(ArchetypeTypeSet archetypeTypeSet,
Element listElement,
ErrorViewCollector errorViewCollector)
Parses an
Constants.XML_ELEMENT_LIST section of a types.xml file
and adds it to archetypeTypeSet . |
private static void |
ArchetypeTypeSetParser.parseListEntry(Element listentryElement,
ErrorViewCollector errorViewCollector,
ArchetypeTypeList list)
Parses an
Constants.XML_ELEMENT_LISTENTRY section of a types.xml
file and adds it to an ArchetypeTypeList . |
private static void |
ArchetypeTypeSetParser.parseLists(ArchetypeTypeSet archetypeTypeSet,
Element listsElement,
ErrorViewCollector errorViewCollector)
Parses the
Constants.XML_ELEMENT_LISTS section of a types.xml
file. |
private static ArchetypeAttributesDefinition |
ArchetypeTypeParser.parseRequiredAttribute(Element typeElement,
String typeName,
ErrorViewCollector errorViewCollector)
Parses the
Constants.XML_ELEMENT_REQUIRED child. |
private static ArchetypeAttributesDefinition |
ArchetypeTypeParser.parseTypeAttributes(Element typeElement,
String typeName,
ErrorViewCollector errorViewCollector,
Collection<String> ignoreTable,
IgnorelistsDefinition ignorelistsDefinition)
Parses the type attributes of a "type" or "default_type"
Element . |
private static int |
ArchetypeTypeParser.parseTypeNo(Element typeElement,
boolean isDefaultType,
String typeName,
ErrorViewCollector errorViewCollector)
Parses the type number of a "type" or "default_type"
Element . |
private void |
ArchetypeTypeSetParser.parseTypes(ArchetypeTypeSet archetypeTypeSet,
Element typeElement,
ErrorViewCollector errorViewCollector,
ArchetypeType defaultArchetypeType,
IgnorelistsDefinition ignorelistsDefinition)
Parses an
Constants.XML_ELEMENT_TYPE element of a types.xml
file. |
Modifier and Type | Field and Description |
---|---|
private ErrorViewCollector |
TestParser.errorViewCollector
The
ErrorViewCollector instance. |
Modifier and Type | Method and Description |
---|---|
void |
ArtifactParser.loadArtifact(BufferedReader in,
ErrorViewCollector errorViewCollector,
String archPath,
String panelName,
String folderName)
Loads one artifact.
|
private void |
ArtifactParser.loadArtifact(ErrorViewCollector errorViewCollector,
File f,
String archPath,
String panelName,
String folderName)
Loads one artifact.
|
Modifier and Type | Field and Description |
---|---|
private ErrorViewCollector |
ErrorViewCollectorErrorHandler.errorViewCollector
The
ErrorViewCollector instance for adding messages. |
Constructor and Description |
---|
ErrorViewCollectorErrorHandler(ErrorViewCollector errorViewCollector,
ErrorViewCategory errorViewCategory)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
AbstractArchetypeParser.finishParseArchetypePart(R firstArch,
R archetype,
ErrorViewCollector errorViewCollector)
Called after the "end" line of a part has been read.
|
protected void |
TestArchetypeParser.finishParseArchetypePart(TestArchetype firstArch,
TestArchetype archetype,
ErrorViewCollector errorViewCollector)
Called after the "end" line of a part has been read.
|
static void |
AnimationObjectsReader.loadAnimations(AnimationObjects animationObjects,
ErrorViewCollector errorViewCollector,
Reader reader,
String startKey,
boolean ignoreOtherText,
String path,
Map<String,String> animations)
Loads any number of animations from a reader.
|
static void |
AnimationObjectsReader.loadAnimations(AnimationObjects animationObjects,
ErrorViewCollector errorViewCollector,
String path,
File animFile,
String startKey,
boolean ignoreOtherText)
Loads animations from a file.
|
private void |
AbstractArchetypeParser.parseAnim(BufferedReader in,
ErrorViewCollector errorViewCollector,
String path)
Parses an "anim..mina" block.
|
void |
ArchetypeParser.parseArchetypeFromStream(BufferedReader in,
R prototype,
String line,
String archName,
String panelName,
String folderName,
String archPath,
List<G> invObjects,
ErrorViewCollector errorViewCollector)
Here we read an Archetype from a
BufferedReader , parse the data
and put the result in the ArchetypeSet in CMainControl. |
void |
AbstractArchetypeParser.parseArchetypeFromStream(BufferedReader in,
R prototype,
String line,
String archName,
String panelName,
String folderName,
String archPath,
List<G> invObjects,
ErrorViewCollector errorViewCollector)
Here we read an Archetype from a
BufferedReader , parse the data
and put the result in the ArchetypeSet in CMainControl. |
private void |
AbstractArchetypeParser.parseMsg(BufferedReader in,
ErrorViewCollector errorViewCollector)
Parses a "msg..endmsg" block.
|
private static int |
AnimationObjectsReader.processAnimation(String animName,
int startLineNumber,
BufferedReader in,
String startKey,
AnimationObjects animationObjects,
ErrorViewCollector errorViewCollector,
String path,
Map<String,String> animations)
Processes an anim..mina block.
|
private static void |
AnimationObjectsReader.processAnimationLine(AnimationObjects animationObjects,
ErrorViewCollector errorViewCollector,
String path,
Map<String,String> animations,
String animName,
String animText)
Processes a complete anim..mina block.
|
protected abstract boolean |
AbstractArchetypeParser.processLine(BufferedReader in,
String line,
String line2,
B archetypeBuilder,
ErrorViewCollector errorViewCollector,
List<G> invObjects)
Called for each processed line.
|
protected boolean |
TestArchetypeParser.processLine(BufferedReader in,
String line,
String line2,
TestArchetypeBuilder archetypeBuilder,
ErrorViewCollector errorViewCollector,
List<TestGameObject> invObjects)
Called for each processed line.
|
Modifier and Type | Method and Description |
---|---|
GameObjectMatcher |
GameObjectMatchers.getMatcherWarn(ErrorViewCollector errorViewCollector,
String... ids)
Returns a matcher by id; prints a warning if the matcher does not exist.
|
void |
GameObjectMatchersParser.readGameObjectMatchers(URL url,
GameObjectMatchers gameObjectMatchers,
ErrorViewCollector errorViewCollector)
Parses a .xml file defining game object matchers.
|
Modifier and Type | Method and Description |
---|---|
private void |
AbstractFilesResourcesReader.loadAnimationsFromFiles(ErrorViewCollector errorViewCollector,
Iterable<Pair<String,File>> animFiles)
This method loads animations that are separately defined by looping
through all files that were previously collected by
AbstractFilesResourcesReader.loadArchetypesFromFiles(ErrorViewCollector, AbstractArchetypeParser,
String, File, int, String, String, List, ArchFaceProvider, ErrorView,
Collection) . |
private void |
AbstractFilesResourcesReader.loadArchetypesFromFiles(ErrorViewCollector errorViewCollector,
AbstractArchetypeParser<G,A,R,?> archetypeParser,
String path,
File f,
int folderLevel,
String panelName,
String folderName,
List<G> invObjects,
ArchFaceProvider archFaceProvider,
ErrorView errorView,
Collection<Pair<String,File>> animFiles)
Loads all archetypes and faces by recursing through the
arch/ directory tree. |
Modifier and Type | Method and Description |
---|---|
private static void |
SmoothFacesLoader.load(String readerName,
Reader reader,
SmoothFaces smoothFaces,
ErrorViewCollector errorViewCollector)
Loads a smooth file.
|
Modifier and Type | Method and Description |
---|---|
static void |
XMLSpellLoader.load(ErrorViewCollector errorViewCollector,
URL url,
DocumentBuilder documentBuilder,
Spells<NumberSpell> spells)
Load an XML spell definitions file.
|
Modifier and Type | Method and Description |
---|---|
private static void |
TreasureLoader.readInsideList(ErrorViewCollector errorViewCollector,
TreasureTreeNode parentNode,
BufferedReader reader,
List<TreasureTreeNode> needLink)
Reads and parses the text inside a treasurelist definition.
|
Modifier and Type | Method and Description |
---|---|
AttributeRangeChecker<G,A,R> |
ProjectFactory.loadAttributeRangeChecker(ErrorViewCollector errorViewCollector,
GameObjectMatchers gameObjectMatchers,
ValidatorPreferences validatorPreferences)
Loads the attribute range checker for map validation.
|
Modifier and Type | Method and Description |
---|---|
AttributeRangeChecker<GameObject,MapArchObject,Archetype> |
DefaultEditorFactory.loadAttributeRangeChecker(ErrorViewCollector errorViewCollector,
GameObjectMatchers gameObjectMatchers,
ValidatorPreferences validatorPreferences)
Loads the attribute range checker for map validation.
|
Modifier and Type | Method and Description |
---|---|
protected void |
ArchetypeParser.finishParseArchetypePart(Archetype firstArch,
Archetype archetype,
ErrorViewCollector errorViewCollector)
Called after the "end" line of a part has been read.
|
protected boolean |
ArchetypeParser.processLine(BufferedReader in,
String line,
String line2,
DefaultArchetypeBuilder archetypeBuilder,
ErrorViewCollector errorViewCollector,
List<GameObject> invObjects)
Called for each processed line.
|
Modifier and Type | Method and Description |
---|---|
AttributeRangeChecker<GameObject,MapArchObject,Archetype> |
DefaultEditorFactory.loadAttributeRangeChecker(ErrorViewCollector errorViewCollector,
GameObjectMatchers gameObjectMatchers,
ValidatorPreferences validatorPreferences)
Loads the attribute range checker for map validation.
|
Modifier and Type | Method and Description |
---|---|
protected void |
ArchetypeParser.finishParseArchetypePart(Archetype firstArch,
Archetype archetype,
ErrorViewCollector errorViewCollector)
Called after the "end" line of a part has been read.
|
private static void |
ArchetypeParser.parseLore(BufferedReader in,
DefaultArchetypeBuilder archetypeBuilder,
ErrorViewCollector errorViewCollector)
Parses a "lore..endlore" block.
|
protected boolean |
ArchetypeParser.processLine(BufferedReader in,
String line,
String line2,
DefaultArchetypeBuilder archetypeBuilder,
ErrorViewCollector errorViewCollector,
List<GameObject> invObjects)
Called for each processed line.
|
Modifier and Type | Method and Description |
---|---|
AttributeRangeChecker<GameObject,MapArchObject,Archetype> |
DefaultEditorFactory.loadAttributeRangeChecker(ErrorViewCollector errorViewCollector,
GameObjectMatchers gameObjectMatchers,
ValidatorPreferences validatorPreferences)
Loads the attribute range checker for map validation.
|
Modifier and Type | Method and Description |
---|---|
protected void |
ArchetypeParser.finishParseArchetypePart(Archetype firstArch,
Archetype archetype,
ErrorViewCollector errorViewCollector)
Called after the "end" line of a part has been read.
|
protected boolean |
ArchetypeParser.processLine(BufferedReader in,
String line,
String line2,
DefaultArchetypeBuilder archetypeBuilder,
ErrorViewCollector errorViewCollector,
List<GameObject> invObjects)
Called for each processed line.
|
Feedback: webmaster
© 2003-2010 The Gridarta Developers. All rights reserved.