 |
Crossfire JXClient, Trunk
|
Go to the documentation of this file.
23 package com.realtime.crossfire.jxclient.server.crossfire;
26 import java.util.ArrayList;
27 import java.util.Collection;
28 import java.util.Collections;
29 import org.jetbrains.annotations.NotNull;
30 import org.jetbrains.annotations.Nullable;
64 private final Collection<StartingMap>
startingMaps =
new ArrayList<>();
83 System.err.println(
"missing archetype name for name '"+
name+
"' in startingmap block");
86 if (this.name !=
null) {
87 System.err.println(
"duplicate name '"+
name+
"' in startingmap block; previous name was '"+this.name+
"'");
99 System.err.println(
"missing archetype name for description '"+
description+
"' in startingmap block");
102 if (this.description !=
null) {
103 System.err.println(
"duplicate description '"+
description+
"' in startingmap block; previous description was '"+this.description+
"'");
114 public Collection<StartingMap>
finish() {
116 return Collections.unmodifiableCollection(
startingMaps);
String archName
The archetype name of the current entry.
void setDescription(@NotNull final String description)
Sets the description of the current entry.
String description
The description of this entry.
void addStartingMap()
Adds a new StartingMap entry to startingMaps for the current entry.
final Collection< StartingMap > startingMaps
The StartingMap entries parsed so far.
String name
The proper name of this entry.
Collection< StartingMap > finish()
Finishes parsing.
Builder for StartingMap instances while parsing a "replyinfo startingmap" response packet.
void setName(@NotNull final String name)
Sets the name of the current entry.
One possible starting map for character creation.
void setArchName(@NotNull final String archName)
Starts a new starting map entry.