 |
Gridarta Editor
|
Go to the documentation of this file.
20 package net.sf.gridarta.var.crossfire.model.io;
22 import java.io.BufferedReader;
23 import java.io.IOException;
32 import org.jetbrains.annotations.NotNull;
44 private static final String
FACE =
"face";
100 int lineNumber = startLineNumber;
103 final String untrimmedLine = in.readLine();
104 if (untrimmedLine ==
null) {
107 final String line = untrimmedLine.trim();
109 if (line.startsWith(
"#") || line.isEmpty()) {
111 }
else if (line.startsWith(
"face ")) {
113 }
else if (line.equals(
"end")) {
129 return lineNumber - startLineNumber;
Smoothing information for one face name.
Base package of all Gridarta classes.
AnimationObjects is a container for AnimationObjects.
Utility class for reading AnimationObjects from files.
int parseLine(@NotNull final String line, final int startLineNumber, @NotNull final BufferedReader in, @NotNull final ErrorViewCollector errorViewCollector)
Parses a line.
void add(@NotNull final SmoothFace smoothFace)
Adds a SmoothFace instance.
Convenience class for adding messages to a ErrorView instance using a fixed category name.
int processFace(@NotNull final String faceName, final int startLineNumber, @NotNull final BufferedReader in, @NotNull final ErrorViewCollector errorViewCollector)
Processes a face..end block.
This exception is thrown when parsing an animation definition file (.
Defines possible error categories for ErrorView instances.
Thrown to indicate that a SmoothFace instance is not unique.
static final String SMOOTHFACE
The tag for smoothing information.
final SmoothFaces smoothFaces
The SmoothFaces instance to update.
Reading and writing of maps, handling of paths.
Collection of all smoothing information.
Gridarta can handle frame information of animations and allow the selection of an animation using a t...
Reads Crossfire AnimationObjects from files.
CrossfireAnimationObjectsReader(@NotNull final SmoothFaces smoothFaces)
Creates a new instance.
static final String FACE
The start tag for face blocks.
static final String FACE_SPACE
The start tag for face blocks, including a trailing space.
static final String SMOOTHFACE_SPACE
The tag for smoothing information, including a trailing space.