|
Gridarta Editor
|
Maintains resources. More...
Inheritance diagram for net.sf.gridarta.model.resource.AbstractResources< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:
Collaboration diagram for net.sf.gridarta.model.resource.AbstractResources< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:Public Member Functions | |
| boolean | canWriteCollected () |
| Whether the resources can be written in collected form. More... | |
| void | readCollected (@NotNull final ProjectSettings projectSettings, @NotNull final ErrorView errorView) |
| Reads the resources from a collection. More... | |
| void | readFiles (@NotNull final ProjectSettings projectSettings, @NotNull final ErrorView errorView) |
| Reads the resources from individual files. More... | |
| void | writeCollected (@NotNull final Progress progress, @NotNull final File collectedDirectory) throws IOException |
| Writes the resources in collected form. More... | |
Protected Member Functions | |
| AbstractResources (@NotNull final GameObjectParser< G, A, R > gameObjectParser, @NotNull final ArchetypeSet< G, A, R > archetypeSet) | |
| Creates a new instance. More... | |
| abstract List< G > | readCollectedInt (@NotNull ProjectSettings projectSettings, @NotNull ErrorView errorView) |
| Reads the resources from a collection. More... | |
| abstract void | readFilesInt (@NotNull ProjectSettings projectSettings, @NotNull ErrorView errorView, @NotNull List< G > invObjects) |
| Reads the resources from individual files. More... | |
| abstract void | writeCollectedInt (@NotNull Progress progress, @NotNull File collectedDirectory) throws IOException |
| Writes the resources in collected form. More... | |
Private Member Functions | |
| void | finishRead (@NotNull final List< G > invObjects) |
| Common code to be executed after reading resources. More... | |
Private Attributes | |
| final ArchetypeSet< G, A, R > | archetypeSet |
| The ArchetypeSet to update. More... | |
| final GameObjectParser< G, A, R > | gameObjectParser |
| The GameObjectParser to use. More... | |
| boolean | loaded |
| Whether the resources have been loaded. More... | |
| boolean | loadedFromFiles |
| Whether the resources have been loaded from individual files. More... | |
Maintains resources.
Definition at line 40 of file AbstractResources.java.
|
protected |
Creates a new instance.
| gameObjectParser | the game object parser to use |
| archetypeSet | the archetype set to update |
Definition at line 69 of file AbstractResources.java.
| boolean net.sf.gridarta.model.resource.AbstractResources< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.canWriteCollected | ( | ) |
Whether the resources can be written in collected form.
Definition at line 119 of file AbstractResources.java.
Referenced by net.sf.gridarta.action.CollectArchesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doCollectArches(), net.sf.gridarta.commands.CollectArchesCommand.execute(), and net.sf.gridarta.model.resource.AbstractResources<?, ?, ?>.writeCollected().
Here is the caller graph for this function:
|
private |
Common code to be executed after reading resources.
| invObjects | all archetypes |
Definition at line 78 of file AbstractResources.java.
Referenced by net.sf.gridarta.model.resource.AbstractResources<?, ?, ?>.readCollected(), and net.sf.gridarta.model.resource.AbstractResources<?, ?, ?>.readFiles().
Here is the caller graph for this function:| void net.sf.gridarta.model.resource.AbstractResources< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.readCollected | ( | @NotNull final ProjectSettings | projectSettings, |
| @NotNull final ErrorView | errorView | ||
| ) |
Reads the resources from a collection.
| projectSettings | the project settings to read from |
| errorView | the error view for reporting problems |
Definition at line 104 of file AbstractResources.java.
|
abstractprotected |
Reads the resources from a collection.
| projectSettings | the project settings to read from |
| errorView | the error view for reporting problems |
Referenced by net.sf.gridarta.model.resource.AbstractResources<?, ?, ?>.readCollected(), and net.sf.gridarta.model.resource.AbstractResources<?, ?, ?>.writeCollected().
Here is the caller graph for this function:| void net.sf.gridarta.model.resource.AbstractResources< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.readFiles | ( | @NotNull final ProjectSettings | projectSettings, |
| @NotNull final ErrorView | errorView | ||
| ) |
Reads the resources from individual files.
| projectSettings | the project settings to read from |
| errorView | the error view for reporting problems |
Definition at line 88 of file AbstractResources.java.
|
abstractprotected |
Reads the resources from individual files.
| projectSettings | the project settings to read from |
| errorView | the error view for reporting problems |
| invObjects | all read archetypes |
Referenced by net.sf.gridarta.model.resource.AbstractResources<?, ?, ?>.readFiles(), and net.sf.gridarta.model.resource.AbstractResources<?, ?, ?>.writeCollected().
Here is the caller graph for this function:| void net.sf.gridarta.model.resource.AbstractResources< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.writeCollected | ( | @NotNull final Progress | progress, |
| @NotNull final File | collectedDirectory | ||
| ) | throws IOException |
Writes the resources in collected form.
| progress | the progress to use |
| collectedDirectory | the collected directory to write to |
| IOException | if collection fails |
| IllegalStateException | if returns false |
Definition at line 131 of file AbstractResources.java.
Referenced by net.sf.gridarta.commands.Collector.run().
Here is the caller graph for this function:
|
abstractprotected |
Writes the resources in collected form.
| progress | the progress to use |
| collectedDirectory | the collected directory to write to |
| IOException | if collection fails |
Referenced by net.sf.gridarta.model.resource.AbstractResources<?, ?, ?>.writeCollected().
Here is the caller graph for this function:
|
private |
The ArchetypeSet to update.
Definition at line 52 of file AbstractResources.java.
Referenced by net.sf.gridarta.model.resource.AbstractResources<?, ?, ?>.AbstractResources().
|
private |
The GameObjectParser to use.
Definition at line 46 of file AbstractResources.java.
Referenced by net.sf.gridarta.model.resource.AbstractResources<?, ?, ?>.AbstractResources().
|
private |
Whether the resources have been loaded.
Definition at line 57 of file AbstractResources.java.
|
private |
Whether the resources have been loaded from individual files.
Definition at line 62 of file AbstractResources.java.
Referenced by net.sf.gridarta.model.resource.AbstractResources<?, ?, ?>.canWriteCollected().