Gridarta Editor
net.sf.gridarta.action.NewMapAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R > Class Template Reference

An EditorAction that opens the "Create New Map" dialog. More...

+ Inheritance diagram for net.sf.gridarta.action.NewMapAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:
+ Collaboration diagram for net.sf.gridarta.action.NewMapAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:

Public Member Functions

void newMap ()
 Shows a dialog for creating a new map. More...
 
 NewMapAction (@NotNull final NewMapDialogFactory< G, A, R > newMapDialogFactory)
 Creates a new instance. More...
 
void setAction (@NotNull final Action action, @NotNull final String name)
 Sets the Action instance for this editor action. More...
 

Private Attributes

final NewMapDialogFactory< G, A, R > newMapDialogFactory
 The NewMapDialogFactory for opening "Create New Map" dialogs. More...
 

Detailed Description

An EditorAction that opens the "Create New Map" dialog.

Author
Andreas Kirschbaum

Definition at line 35 of file NewMapAction.java.

Constructor & Destructor Documentation

◆ NewMapAction()

net.sf.gridarta.action.NewMapAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.NewMapAction ( @NotNull final NewMapDialogFactory< G, A, R >  newMapDialogFactory)

Creates a new instance.

Parameters
newMapDialogFactorythe new map dialog factory to use

Definition at line 47 of file NewMapAction.java.

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

Member Function Documentation

◆ newMap()

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

Shows a dialog for creating a new map.

Definition at line 55 of file NewMapAction.java.

References net.sf.gridarta.gui.dialog.newmap.NewMapDialogFactory< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.showNewMapDialog().

+ Here is the call graph for this function:

◆ setAction()

void net.sf.gridarta.action.NewMapAction< 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 
)

Sets the Action instance for this editor action.

Parameters
actionthe action instance
namethe name of the action

Implements net.sf.gridarta.utils.EditorAction.

Definition at line 60 of file NewMapAction.java.

Member Data Documentation

◆ newMapDialogFactory

final NewMapDialogFactory<G, A, R> net.sf.gridarta.action.NewMapAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.newMapDialogFactory
private

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