Package games.stendhal.tools
Class MapRenderer
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
games.stendhal.tools.MapRenderer
- All Implemented Interfaces:
Cloneable
public class MapRenderer
extends org.apache.tools.ant.Task
Renders Stendhal maps from *.tmx into PNG files of the same base name. This class can be started
from the command line or through an ant task.
- Author:
- mtotz
-
Field Summary
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapperFields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFileset(org.apache.tools.ant.types.FileSet set) Adds a set of files to copy.voidconverts the map files.voidexecute()ants execute method.static voidvoidsetImagePath(String imagePath) The setter for the "stendPath" attribute.voidsetZoom(double zoom) sets a zoom levelMethods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeMethods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
-
Constructor Details
-
MapRenderer
public MapRenderer()
-
-
Method Details
-
convert
converts the map files.- Parameters:
tmxFile-- Throws:
Exception
-
addFileset
public void addFileset(org.apache.tools.ant.types.FileSet set) Adds a set of files to copy.- Parameters:
set- a set of files to copy
-
setImagePath
The setter for the "stendPath" attribute.- Parameters:
imagePath-
-
execute
public void execute()ants execute method.- Overrides:
executein classorg.apache.tools.ant.Task
-
setZoom
public void setZoom(double zoom) sets a zoom level- Parameters:
zoom- zoom
-
main
- Throws:
Exception
-