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

An EditorAction that reloads all images from disk. More...

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

Public Member Functions

void reloadFaces ()
 Invoked when the user wants to reload the images. More...
 
 ReloadFacesAction (@NotNull final ArchetypeSet< G, A, R > archetypeSet, @NotNull final FaceObjectProviders faceObjectProviders)
 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 Member Functions

boolean doReloadFaces (final boolean performAction)
 Executes the action. More...
 
void updateAction ()
 Updates the enabled state of action. More...
 

Private Attributes

Action action
 The Action associated to this editor action. More...
 
final ArchetypeSet< G, A, R > archetypeSet
 The archetype set instance. More...
 
final FaceObjectProviders faceObjectProviders
 The FaceObjectProviders for looking up faces. More...
 

Detailed Description

An EditorAction that reloads all images from disk.

Author
Andreas Kirschbaum

Definition at line 37 of file ReloadFacesAction.java.

Constructor & Destructor Documentation

◆ ReloadFacesAction()

net.sf.gridarta.action.ReloadFacesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.ReloadFacesAction ( @NotNull final ArchetypeSet< G, A, R >  archetypeSet,
@NotNull final FaceObjectProviders  faceObjectProviders 
)

Member Function Documentation

◆ doReloadFaces()

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

◆ reloadFaces()

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

Invoked when the user wants to reload the images.

Definition at line 73 of file ReloadFacesAction.java.

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

+ Here is the call graph for this function:

◆ setAction()

void net.sf.gridarta.action.ReloadFacesAction< 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 78 of file ReloadFacesAction.java.

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

◆ updateAction()

void net.sf.gridarta.action.ReloadFacesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.updateAction ( )
private

Member Data Documentation

◆ action

Action net.sf.gridarta.action.ReloadFacesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.action
private

The Action associated to this editor action.

Set to

null

if none is associated.

Definition at line 56 of file ReloadFacesAction.java.

Referenced by net.sf.gridarta.action.ReloadFacesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.setAction().

◆ archetypeSet

◆ faceObjectProviders


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