Gridarta Editor
net.sf.gridarta.gui.panel.connectionview.MonsterView< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R > Class Template Reference

The view of the connection view control. More...

+ Inheritance diagram for net.sf.gridarta.gui.panel.connectionview.MonsterView< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:
+ Collaboration diagram for net.sf.gridarta.gui.panel.connectionview.MonsterView< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:

Classes

class  MonsterComparator
 A Comparator for ordering the values of this view. More...
 

Public Member Functions

 MonsterView (@NotNull final MapViewManager< G, A, R > mapViewManager, @NotNull final DelayedMapModelListenerManager< G, A, R > delayedMapModelListenerManager, @NotNull final GameObjectMatcher monsterMatcher)
 Creates a new instance. More...
 
- Public Member Functions inherited from net.sf.gridarta.gui.panel.connectionview.View< GameObject< G, A, R >, G, A, R >
void addListMouseListener ( @NotNull final MouseListener listener)
 Registers a MouseListener for the connection list. More...
 
void addListSelectionListener ( @NotNull final ListSelectionListener listener)
 Registers a ListSelectionListener for the connection list. More...
 
MapView< G, A, R > getMapView ()
 Returns the current map view. More...
 
Iterable< Connection< K > > getSelectedConnections ()
 Returns a list of all selected connections. More...
 

Protected Member Functions

void scanGameObjectForConnections (@NotNull final G gameObject)
 
- Protected Member Functions inherited from net.sf.gridarta.gui.panel.connectionview.View< GameObject< G, A, R >, G, A, R >
void addConnection ( @NotNull final K key, @NotNull final GameObject< G, A, R > gameObject)
 
abstract void scanGameObjectForConnections ( @NotNull G gameObject)
 Scans the given game object for connections. More...
 
 View ( @NotNull final Comparator< K > keyComparator, @NotNull final CellRenderer< K > cellRenderer, @NotNull final MapViewManager< G, A, R > mapViewManager, @NotNull final DelayedMapModelListenerManager< G, A, R > delayedMapModelListenerManager)
 Creates a new instance. More...
 

Private Member Functions

void scanGameObject (@NotNull final GameObject< G, A, R > gameObject)
 Adds the given game object as a connection if it is a monster object. More...
 

Private Attributes

final GameObjectMatcher monsterMatcher
 The GameObjectMatcher for matching monster objects. More...
 

Static Private Attributes

static final long serialVersionUID = 1L
 The serial version UID. More...
 

Detailed Description

The view of the connection view control.

It holds information about the connections of the selected connection value on the selected map.

Author
Christian Hujer
Andreas Kirschbaum

Definition at line 39 of file MonsterView.java.

Constructor & Destructor Documentation

◆ MonsterView()

net.sf.gridarta.gui.panel.connectionview.MonsterView< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.MonsterView ( @NotNull final MapViewManager< G, A, R >  mapViewManager,
@NotNull final DelayedMapModelListenerManager< G, A, R >  delayedMapModelListenerManager,
@NotNull final GameObjectMatcher  monsterMatcher 
)

Creates a new instance.

Parameters
mapViewManagerthe map view manager
delayedMapModelListenerManagerthe delayed map model listener manager to use
monsterMatcherthe
GameObjectMatcher
for matching monster objects

Definition at line 60 of file MonsterView.java.

References net.sf.gridarta.gui.panel.connectionview.MonsterView< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.monsterMatcher.

Member Function Documentation

◆ scanGameObject()

void net.sf.gridarta.gui.panel.connectionview.MonsterView< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.scanGameObject ( @NotNull final GameObject< G, A, R >  gameObject)
private

◆ scanGameObjectForConnections()

Member Data Documentation

◆ monsterMatcher

◆ serialVersionUID

final long net.sf.gridarta.gui.panel.connectionview.MonsterView< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.serialVersionUID = 1L
staticprivate

The serial version UID.

Definition at line 44 of file MonsterView.java.


The documentation for this class was generated from the following file: