Gridarta Editor
net.sf.gridarta.action.CollectArchesAction< 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.CollectArchesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:
+ Collaboration diagram for net.sf.gridarta.action.CollectArchesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:

Public Member Functions

void collectArches ()
 
 CollectArchesAction (@NotNull final ProjectSettings projectSettings, @NotNull final AbstractResources< G, A, R > resources, @NotNull final Exiter exiter, @NotNull final JFrame parent)
 
void setAction (@NotNull final Action action, @NotNull final String name)
 

Private Member Functions

boolean doCollectArches (final boolean performAction)
 
ExiterListener newExiterListener ()
 
void updateAction ()
 

Private Attributes

Action action
 
volatile Collector collector
 
final JFrame parent
 
final ProjectSettings projectSettings
 
final AbstractResources< G, A, R > resources
 

Static Private Attributes

static final ActionBuilder ACTION_BUILDER = ActionBuilderFactory.getInstance().getActionBuilder("net.sf.gridarta")
 
static final Category LOG = Logger.getLogger(CollectArchesAction.class)
 

Detailed Description

An EditorAction that runs the archetype collection.

Author
Andreas Kirschbaum

Definition at line 50 of file CollectArchesAction.java.

Constructor & Destructor Documentation

◆ CollectArchesAction()

Member Function Documentation

◆ collectArches()

◆ doCollectArches()

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

Executes the "collect arches" action.

Parameters
performActionwhether the action should be performed
Returns
whether the action was or can be performed

Definition at line 129 of file CollectArchesAction.java.

References net.sf.gridarta.action.CollectArchesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.ACTION_BUILDER, net.sf.gridarta.model.resource.AbstractResources< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.canWriteCollected(), net.sf.gridarta.action.CollectArchesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.collectArches(), net.sf.gridarta.action.CollectArchesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.collector, net.sf.gridarta.model.settings.ProjectSettings.getCollectedDirectory(), net.sf.gridarta.utils.ActionBuilderUtils.getString(), net.sf.gridarta.action.CollectArchesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.parent, net.sf.gridarta.action.CollectArchesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.projectSettings, net.sf.gridarta.action.CollectArchesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.resources, net.sf.gridarta.commands.Collector.start(), and net.sf.gridarta.action.CollectArchesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.updateAction().

Referenced by net.sf.gridarta.action.CollectArchesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.collectArches(), and net.sf.gridarta.action.CollectArchesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.updateAction().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ newExiterListener()

◆ setAction()

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

◆ updateAction()

Member Data Documentation

◆ action

◆ ACTION_BUILDER

final ActionBuilder net.sf.gridarta.action.CollectArchesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.ACTION_BUILDER = ActionBuilderFactory.getInstance().getActionBuilder("net.sf.gridarta")
staticprivate

◆ collector

◆ LOG

final Category net.sf.gridarta.action.CollectArchesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.LOG = Logger.getLogger(CollectArchesAction.class)
staticprivate

◆ parent

◆ projectSettings

◆ resources


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