Gridarta Editor
net.sf.gridarta.commands.SinglePngCommand Class Reference

Run in single png mode. More...

+ Inheritance diagram for net.sf.gridarta.commands.SinglePngCommand:
+ Collaboration diagram for net.sf.gridarta.commands.SinglePngCommand:

Public Member Functions

int execute ()
 Executes the command. More...
 
 SinglePngCommand (@NotNull final File in, @NotNull final File out, @NotNull final ImageCreator<?, ?, ?> imageCreator)
 Creates a new instance. More...
 

Private Attributes

final ImageCreator<?, ?, ?> imageCreator
 The ImageCreator to use. More...
 
final File in
 The input file. More...
 
final File out
 The output file. More...
 

Detailed Description

Run in single png mode.

Author
Christian Hujer
Andreas Kirschbaum

Definition at line 33 of file SinglePngCommand.java.

Constructor & Destructor Documentation

◆ SinglePngCommand()

net.sf.gridarta.commands.SinglePngCommand.SinglePngCommand ( @NotNull final File  in,
@NotNull final File  out,
@NotNull final ImageCreator<?, ?, ?>  imageCreator 
)

Creates a new instance.

Parameters
inthe input file
outthe output file
imageCreatorthe image creator to use

Definition at line 59 of file SinglePngCommand.java.

Member Function Documentation

◆ execute()

int net.sf.gridarta.commands.SinglePngCommand.execute ( )

Executes the command.

Returns
return code suitable for passing to System#exit(int)

Implements net.sf.gridarta.commands.Command.

Definition at line 66 of file SinglePngCommand.java.

References net.sf.gridarta.gui.map.renderer.ImageCreator< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.makeImage().

+ Here is the call graph for this function:

Member Data Documentation

◆ imageCreator

final ImageCreator<?, ?, ?> net.sf.gridarta.commands.SinglePngCommand.imageCreator
private

The ImageCreator to use.

Definition at line 51 of file SinglePngCommand.java.

◆ in

final File net.sf.gridarta.commands.SinglePngCommand.in
private

The input file.

Definition at line 39 of file SinglePngCommand.java.

◆ out

final File net.sf.gridarta.commands.SinglePngCommand.out
private

The output file.

Definition at line 45 of file SinglePngCommand.java.


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