 |
Gridarta Editor
|
Go to the documentation of this file.
20 package net.sf.gridarta.gui.map.renderer;
22 import java.util.Collections;
24 import java.util.Map.Entry;
32 import org.jetbrains.annotations.NotNull;
33 import org.jetbrains.annotations.Nullable;
48 private final StringBuilder
sb =
new StringBuilder(
"<html>");
61 public void appendGameObject(@NotNull
final G gameObject,
final boolean alwaysInclude, @NotNull
final String prefix) {
65 if (alwaysInclude || !fields.isEmpty() || !gameObject.isEmpty()) {
69 sb.append(
"<br><hr>");
72 sb.append(
"<b>").append(
HtmlUtils.
encode(gameObject.getBestName())).append(
"</b>");
73 for (
final Entry<String, String> field : fields.entrySet()) {
78 for (
final G invGameObject : gameObject.reverse()) {
90 sb.append(error.getMessage().trim());
Base package of all Gridarta classes.
Super class of all errors that could occur during map validation.
Utility class for HTML related functions.
Reflects a game object (object on a map).
Map< String, String > getModifiedFields(@NotNull G gameObject)
Returns the modified fields of a GameObject.
static String encode(@NotNull final String str)
Encodes a string so that the result can be embedded into HTML.
GameObjects are the objects based on Archetypes found on maps.
Interface for MapArchObjects.
This package contains the framework for validating maps.
Utility class for string manipulation.
Reading and writing of maps, handling of paths.
static final Pattern PATTERN_NEWLINE
The pattern that matches a single newline ("\n").
Interface for classes that read or write GameObject instances.