20 package net.sf.gridarta.gui.panel.connectionview;
22 import java.io.Serializable;
23 import java.util.Comparator;
31 import org.jetbrains.annotations.NotNull;
39 public class MonsterView<G
extends GameObject<G, A, R>, A extends
MapArchObject<A>, R extends
Archetype<G, A, R>> extends
View<GameObject<G, A, R>, G, A, R> {
78 if (gameObject.isHead() && monsterMatcher.
isMatching(gameObject)) {
91 private static final long serialVersionUID = 1L;
97 if (level1 < level2) {
100 if (level1 > level2) {
104 final String name1 = o1.getBestName();
105 final String name2 = o2.getBestName();
106 return String.CASE_INSENSITIVE_ORDER.compare(name1, name2);
String LEVEL
The name of the "level" attribute.
Graphical User Interface of Gridarta.
Interface for classes that match GameObjects.
This package contains classes related to matching GameObjects, so called GameObjectMatchers.
A Comparator for ordering the values of this view.
Abstract base class for a panel that holds information about connections of the selected key on the s...
final GameObjectMatcher monsterMatcher
The GameObjectMatcher for matching monster objects.
void scanGameObjectForConnections(@NotNull final G gameObject)
Base package of all Gridarta classes.
Reflects a game object (object on a map).
The view of the connection view control.
GameObjects are the objects based on Archetypes found on maps.
void addConnection( @NotNull final K key, @NotNull final GameObject< G, A, R > gameObject)
Base classes for rendering maps.
MonsterView(@NotNull final MapViewManager< G, A, R > mapViewManager, @NotNull final DelayedMapModelListenerManager< G, A, R > delayedMapModelListenerManager, @NotNull final GameObjectMatcher monsterMatcher)
Create a MonsterView.
Iterable< G > recursive()
Return an object that is a recursive representation.
int compare(@NotNull final GameObject< G, A, R > o1, @NotNull final GameObject< G, A, R > o2)
A CellRenderer for the monster view.
void scanGameObject(@NotNull final GameObject< G, A, R > gameObject)
Add the given game object as a connection if it is a monster object.
static final long serialVersionUID
The serial version UID.
Provides support for delayed notification of MapModel changes.
Interface for MapArchObjects.
boolean isMatching(@NotNull GameObject<?, ?, ?> gameObject)
Matches an GameObject.