 |
Gridarta Editor
|
Go to the documentation of this file.
20 package net.sf.gridarta.var.crossfire.model.validation.checks;
25 import org.apache.log4j.Category;
26 import org.apache.log4j.Logger;
27 import org.jetbrains.annotations.NotNull;
36 @SuppressWarnings(
"DuplicateBranchesInSwitch")
49 private State state = State.N;
55 if (LOG.isDebugEnabled()) {
56 LOG.debug(
"init: state=" + state);
66 if (LOG.isDebugEnabled()) {
67 LOG.debug(
"reset: state=" + state);
76 if (LOG.isDebugEnabled()) {
77 LOG.debug(
"event: text");
92 generator.errorSyntaxError(
"text after @reply or @question");
97 throw new AssertionError(
"state=" + state);
104 if (LOG.isDebugEnabled()) {
105 LOG.debug(
"event: match");
122 throw new AssertionError(
"state=" + state);
130 if (LOG.isDebugEnabled()) {
131 LOG.debug(
"event: reply");
139 generator.errorSyntaxError(
"@reply or @question without preceding text");
151 throw new AssertionError(
"state=" + state);
158 private void setState(@NotNull
final State state) {
159 if (this.state == state) {
163 if (LOG.isDebugEnabled()) {
164 LOG.debug(
"state=" + state);
void reply(@NotNull final ErrorGenerator< G, A, R > generator)
Processes a qreply or @question line.
void text(@NotNull final ErrorGenerator< G, A, R > generator)
Processes a line of text.
Generator for SuspiciousMsgChecker related error messages.
Base package of all Gridarta classes.
MT
A @match line and at least one text line has been processed.
Reflects a game object (object on a map).
ReplyValidator()
Creates a new instance.
void setState(@NotNull final State state)
Updates state and prints a debug message if it changes.
M
A @match line has been processed.
GameObjects are the objects based on Archetypes found on maps.
Implements Crossfire archetypes.
MapArchObject contains the specific meta data about a map that is stored in the map-arch,...
Interface for MapArchObjects.
void match()
Processes a @match line.
Checks that @match, text, @reply, and @question lines occur in the correct order.
Handles the Crossfire GameObjects.
void reset()
Resets the checker state.