Gridarta Editor
net.sf.gridarta.action.ArchAttributesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R > Class Template Reference
+ Inheritance diagram for net.sf.gridarta.action.ArchAttributesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:
+ Collaboration diagram for net.sf.gridarta.action.ArchAttributesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:

Public Member Functions

void activeMapViewChanged (@Nullable final MapView< G, A, R > mapView)
 
void archAttributes ()
 
 ArchAttributesAction (@NotNull final GameObjectAttributesDialogFactory< G, A, R > gameObjectAttributesDialogFactory)
 
void mapCursorChangedGameObject (@Nullable final MapSquare< G, A, R > mapSquare, @Nullable final G gameObject)
 
void mapCursorChangedMode ()
 
void mapCursorChangedPos (@NotNull final Point location)
 
void mapCursorChangedSize ()
 
void mapViewClosing (@NotNull final MapView< G, A, R > mapView)
 
void mapViewCreated (@NotNull final MapView< G, A, R > mapView)
 
void setAction (@NotNull final Action action, @NotNull final String name)
 

Private Member Functions

boolean doArchAttributes (final boolean performAction)
 
void updateActions ()
 

Private Attributes

Action action
 
MapView< G, A, R > currentMapView
 
final GameObjectAttributesDialogFactory< G, A, R > gameObjectAttributesDialogFactory
 

Detailed Description

An EditorAction that opens the game object attributes dialog for the currently selected game object.

Author
Andreas Kirschbaum

Definition at line 43 of file ArchAttributesAction.java.

Constructor & Destructor Documentation

◆ ArchAttributesAction()

net.sf.gridarta.action.ArchAttributesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.ArchAttributesAction ( @NotNull final GameObjectAttributesDialogFactory< G, A, R >  gameObjectAttributesDialogFactory)

Creates a new instance.

Parameters
gameObjectAttributesDialogFactorythe factory for creating game object attributes dialog instances

Definition at line 69 of file ArchAttributesAction.java.

References net.sf.gridarta.action.ArchAttributesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.gameObjectAttributesDialogFactory.

Member Function Documentation

◆ activeMapViewChanged()

void net.sf.gridarta.action.ArchAttributesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.activeMapViewChanged ( @Nullable final MapView< G, A, R >  mapView)

◆ archAttributes()

void net.sf.gridarta.action.ArchAttributesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.archAttributes ( )

Action method for "arch attributes".

Definition at line 77 of file ArchAttributesAction.java.

References net.sf.gridarta.action.ArchAttributesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doArchAttributes().

+ Here is the call graph for this function:

◆ doArchAttributes()

boolean net.sf.gridarta.action.ArchAttributesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doArchAttributes ( final boolean  performAction)
private

◆ mapCursorChangedGameObject()

void net.sf.gridarta.action.ArchAttributesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.mapCursorChangedGameObject ( @Nullable final MapSquare< G, A, R >  mapSquare,
@Nullable final G  gameObject 
)

Called whenever the selected game object has changed. This function is not called if mapCursorChangedPos(Point) occurs concurrently.

Parameters
mapSquarethe newly selected map square or
null
if no map square is selected
gameObjectthe newly selected game object or
null
if no game object is selected

Implements net.sf.gridarta.model.mapcursor.MapCursorListener< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.

Definition at line 146 of file ArchAttributesAction.java.

◆ mapCursorChangedMode()

void net.sf.gridarta.action.ArchAttributesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.mapCursorChangedMode ( )

◆ mapCursorChangedPos()

void net.sf.gridarta.action.ArchAttributesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.mapCursorChangedPos ( @NotNull final Point  location)

◆ mapCursorChangedSize()

void net.sf.gridarta.action.ArchAttributesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.mapCursorChangedSize ( )

◆ mapViewClosing()

void net.sf.gridarta.action.ArchAttributesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.mapViewClosing ( @NotNull final MapView< G, A, R >  mapView)

This event handler is called when a map view is to be closed.

Parameters
mapViewthe map view that is to be closed

Implements net.sf.gridarta.gui.map.mapview.MapViewManagerListener< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.

Definition at line 131 of file ArchAttributesAction.java.

◆ mapViewCreated()

void net.sf.gridarta.action.ArchAttributesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.mapViewCreated ( @NotNull final MapView< G, A, R >  mapView)

This event handler is called when a map view was created.

Parameters
mapViewthe created map view

Implements net.sf.gridarta.gui.map.mapview.MapViewManagerListener< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.

Definition at line 126 of file ArchAttributesAction.java.

◆ setAction()

void net.sf.gridarta.action.ArchAttributesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.setAction ( @NotNull final Action  action,
@NotNull final String  name 
)

◆ updateActions()

Member Data Documentation

◆ action

◆ currentMapView

◆ gameObjectAttributesDialogFactory


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