mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-10 13:51:53 +09:00
Former-commit-id: 9340873f9cfb15264004c32d6e4b8f8bd6828d94 Former-commit-id: 1916747c109876aa064412e01204c3aeda9bbbc0
1498 lines
57 KiB
HTML
1498 lines
57 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<!--NewPage-->
|
|
<HTML>
|
|
<HEAD>
|
|
<!-- Generated by javadoc (build 1.6.0_34) on Mon Jun 03 22:20:33 BST 2013 -->
|
|
<TITLE>
|
|
TiledMap (Slick - The 2D Library)
|
|
</TITLE>
|
|
|
|
<META NAME="date" CONTENT="2013-06-03">
|
|
|
|
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
|
|
|
|
<SCRIPT type="text/javascript">
|
|
function windowTitle()
|
|
{
|
|
if (location.href.indexOf('is-external=true') == -1) {
|
|
parent.document.title="TiledMap (Slick - The 2D Library)";
|
|
}
|
|
}
|
|
</SCRIPT>
|
|
<NOSCRIPT>
|
|
</NOSCRIPT>
|
|
|
|
</HEAD>
|
|
|
|
<BODY BGCOLOR="white" onload="windowTitle();">
|
|
<HR>
|
|
|
|
|
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
|
<A NAME="navbar_top"><!-- --></A>
|
|
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
|
|
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
|
<TR>
|
|
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
|
<A NAME="navbar_top_firstrow"><!-- --></A>
|
|
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
|
<TR ALIGN="center" VALIGN="top">
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/TiledMap.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
|
</TR>
|
|
</TABLE>
|
|
</TD>
|
|
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
|
</EM>
|
|
</TD>
|
|
</TR>
|
|
|
|
<TR>
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
<A HREF="../../../../org/newdawn/slick/tiled/Layer.html" title="class in org.newdawn.slick.tiled"><B>PREV CLASS</B></A>
|
|
<A HREF="../../../../org/newdawn/slick/tiled/TiledMap.GroupObject.html" title="class in org.newdawn.slick.tiled"><B>NEXT CLASS</B></A></FONT></TD>
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
<A HREF="../../../../index.html?org/newdawn/slick/tiled/TiledMap.html" target="_top"><B>FRAMES</B></A>
|
|
<A HREF="TiledMap.html" target="_top"><B>NO FRAMES</B></A>
|
|
<SCRIPT type="text/javascript">
|
|
<!--
|
|
if(window==top) {
|
|
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
|
}
|
|
//-->
|
|
</SCRIPT>
|
|
<NOSCRIPT>
|
|
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
|
|
</NOSCRIPT>
|
|
|
|
|
|
</FONT></TD>
|
|
</TR>
|
|
<TR>
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
|
</TR>
|
|
</TABLE>
|
|
<A NAME="skip-navbar_top"></A>
|
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
|
|
|
<HR>
|
|
<!-- ======== START OF CLASS DATA ======== -->
|
|
<H2>
|
|
<FONT SIZE="-1">
|
|
org.newdawn.slick.tiled</FONT>
|
|
<BR>
|
|
Class TiledMap</H2>
|
|
<PRE>
|
|
java.lang.Object
|
|
<IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.newdawn.slick.tiled.TiledMap</B>
|
|
</PRE>
|
|
<HR>
|
|
<DL>
|
|
<DT><PRE>public class <B>TiledMap</B><DT>extends java.lang.Object</DL>
|
|
</PRE>
|
|
|
|
<P>
|
|
This class is intended to parse TilED maps. TilED is a generic tool for tile
|
|
map editing and can be found at:
|
|
|
|
http://mapeditor.org/
|
|
<P>
|
|
|
|
<P>
|
|
<DL>
|
|
<DT><B>Author:</B></DT>
|
|
<DD>kevin, Tiago Costa, Loads of others!</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<P>
|
|
<!-- ======== NESTED CLASS SUMMARY ======== -->
|
|
|
|
<A NAME="nested_class_summary"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
|
<B>Nested Class Summary</B></FONT></TH>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected class</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../org/newdawn/slick/tiled/TiledMap.GroupObject.html" title="class in org.newdawn.slick.tiled">TiledMap.GroupObject</A></B></CODE>
|
|
|
|
<BR>
|
|
An object from a object-group on the map</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected class</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../org/newdawn/slick/tiled/TiledMap.ObjectGroup.html" title="class in org.newdawn.slick.tiled">TiledMap.ObjectGroup</A></B></CODE>
|
|
|
|
<BR>
|
|
A group of objects on the map (objects layer)</TD>
|
|
</TR>
|
|
</TABLE>
|
|
<!-- =========== FIELD SUMMARY =========== -->
|
|
|
|
<A NAME="field_summary"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
|
<B>Field Summary</B></FONT></TH>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../org/newdawn/slick/tiled/TiledMap.html#height">height</A></B></CODE>
|
|
|
|
<BR>
|
|
The height of the map</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected static int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../org/newdawn/slick/tiled/TiledMap.html#ISOMETRIC">ISOMETRIC</A></B></CODE>
|
|
|
|
<BR>
|
|
Indicates an isometric map</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected java.util.ArrayList</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../org/newdawn/slick/tiled/TiledMap.html#layers">layers</A></B></CODE>
|
|
|
|
<BR>
|
|
The list of layers defined in the map</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected java.util.ArrayList</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../org/newdawn/slick/tiled/TiledMap.html#objectGroups">objectGroups</A></B></CODE>
|
|
|
|
<BR>
|
|
The list of object-groups defined in the map</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../org/newdawn/slick/tiled/TiledMap.html#orientation">orientation</A></B></CODE>
|
|
|
|
<BR>
|
|
The orientation of this map</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected static int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../org/newdawn/slick/tiled/TiledMap.html#ORTHOGONAL">ORTHOGONAL</A></B></CODE>
|
|
|
|
<BR>
|
|
Indicates a orthogonal map</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected java.util.Properties</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../org/newdawn/slick/tiled/TiledMap.html#props">props</A></B></CODE>
|
|
|
|
<BR>
|
|
the properties of the map</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../org/newdawn/slick/tiled/TiledMap.html#tileHeight">tileHeight</A></B></CODE>
|
|
|
|
<BR>
|
|
The height of the tiles used on the map</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected java.util.ArrayList</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../org/newdawn/slick/tiled/TiledMap.html#tileSets">tileSets</A></B></CODE>
|
|
|
|
<BR>
|
|
The list of tilesets defined in the map</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected java.lang.String</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../org/newdawn/slick/tiled/TiledMap.html#tilesLocation">tilesLocation</A></B></CODE>
|
|
|
|
<BR>
|
|
The location prefix where we can find tileset images</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../org/newdawn/slick/tiled/TiledMap.html#tileWidth">tileWidth</A></B></CODE>
|
|
|
|
<BR>
|
|
The width of the tiles used on the map</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../org/newdawn/slick/tiled/TiledMap.html#width">width</A></B></CODE>
|
|
|
|
<BR>
|
|
The width of the map</TD>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
|
|
|
<A NAME="constructor_summary"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
|
<B>Constructor Summary</B></FONT></TH>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD><CODE><B><A HREF="../../../../org/newdawn/slick/tiled/TiledMap.html#TiledMap(java.io.InputStream)">TiledMap</A></B>(java.io.InputStream in)</CODE>
|
|
|
|
<BR>
|
|
Load a tile map from an arbitary input stream</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD><CODE><B><A HREF="../../../../org/newdawn/slick/tiled/TiledMap.html#TiledMap(java.io.InputStream, java.lang.String)">TiledMap</A></B>(java.io.InputStream in,
|
|
java.lang.String tileSetsLocation)</CODE>
|
|
|
|
<BR>
|
|
Load a tile map from an arbitary input stream</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD><CODE><B><A HREF="../../../../org/newdawn/slick/tiled/TiledMap.html#TiledMap(java.lang.String)">TiledMap</A></B>(java.lang.String ref)</CODE>
|
|
|
|
<BR>
|
|
Create a new tile map based on a given TMX file</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD><CODE><B><A HREF="../../../../org/newdawn/slick/tiled/TiledMap.html#TiledMap(java.lang.String, boolean)">TiledMap</A></B>(java.lang.String ref,
|
|
boolean loadTileSets)</CODE>
|
|
|
|
<BR>
|
|
Create a new tile map based on a given TMX file</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD><CODE><B><A HREF="../../../../org/newdawn/slick/tiled/TiledMap.html#TiledMap(java.lang.String, java.lang.String)">TiledMap</A></B>(java.lang.String ref,
|
|
java.lang.String tileSetsLocation)</CODE>
|
|
|
|
<BR>
|
|
Create a new tile map based on a given TMX file</TD>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<!-- ========== METHOD SUMMARY =========== -->
|
|
|
|
<A NAME="method_summary"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
|
<B>Method Summary</B></FONT></TH>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../../org/newdawn/slick/tiled/TileSet.html" title="class in org.newdawn.slick.tiled">TileSet</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../org/newdawn/slick/tiled/TiledMap.html#findTileSet(int)">findTileSet</A></B>(int gid)</CODE>
|
|
|
|
<BR>
|
|
Find a tile for a given global tile id</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../org/newdawn/slick/tiled/TiledMap.html#getHeight()">getHeight</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Get the height of the map</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../org/newdawn/slick/tiled/TiledMap.html#getLayerCount()">getLayerCount</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Retrieve a count of the number of layers available</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../org/newdawn/slick/tiled/TiledMap.html#getLayerIndex(java.lang.String)">getLayerIndex</A></B>(java.lang.String name)</CODE>
|
|
|
|
<BR>
|
|
Get the index of the layer with given name</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> java.lang.String</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../org/newdawn/slick/tiled/TiledMap.html#getLayerProperty(int, java.lang.String, java.lang.String)">getLayerProperty</A></B>(int layerIndex,
|
|
java.lang.String propertyName,
|
|
java.lang.String def)</CODE>
|
|
|
|
<BR>
|
|
Get a property given to a particular layer.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> java.lang.String</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../org/newdawn/slick/tiled/TiledMap.html#getMapProperty(java.lang.String, java.lang.String)">getMapProperty</A></B>(java.lang.String propertyName,
|
|
java.lang.String def)</CODE>
|
|
|
|
<BR>
|
|
Get a property given to the map.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../org/newdawn/slick/tiled/TiledMap.html#getObjectCount(int)">getObjectCount</A></B>(int groupID)</CODE>
|
|
|
|
<BR>
|
|
Returns the number of objects of a specific object-group.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../org/newdawn/slick/tiled/TiledMap.html#getObjectGroupCount()">getObjectGroupCount</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Returns the number of object-groups defined in the map.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../org/newdawn/slick/tiled/TiledMap.html#getObjectHeight(int, int)">getObjectHeight</A></B>(int groupID,
|
|
int objectID)</CODE>
|
|
|
|
<BR>
|
|
Returns the height of a specific object from a specific group.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> java.lang.String</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../org/newdawn/slick/tiled/TiledMap.html#getObjectImage(int, int)">getObjectImage</A></B>(int groupID,
|
|
int objectID)</CODE>
|
|
|
|
<BR>
|
|
Retrieve the image source property for a given object</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> java.lang.String</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../org/newdawn/slick/tiled/TiledMap.html#getObjectName(int, int)">getObjectName</A></B>(int groupID,
|
|
int objectID)</CODE>
|
|
|
|
<BR>
|
|
Return the name of a specific object from a specific group.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> java.lang.String</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../org/newdawn/slick/tiled/TiledMap.html#getObjectProperty(int, int, java.lang.String, java.lang.String)">getObjectProperty</A></B>(int groupID,
|
|
int objectID,
|
|
java.lang.String propertyName,
|
|
java.lang.String def)</CODE>
|
|
|
|
<BR>
|
|
Looks for a property with the given name and returns it's value.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> java.lang.String</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../org/newdawn/slick/tiled/TiledMap.html#getObjectType(int, int)">getObjectType</A></B>(int groupID,
|
|
int objectID)</CODE>
|
|
|
|
<BR>
|
|
Return the type of an specific object from a specific group.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../org/newdawn/slick/tiled/TiledMap.html#getObjectWidth(int, int)">getObjectWidth</A></B>(int groupID,
|
|
int objectID)</CODE>
|
|
|
|
<BR>
|
|
Returns the width of a specific object from a specific group.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../org/newdawn/slick/tiled/TiledMap.html#getObjectX(int, int)">getObjectX</A></B>(int groupID,
|
|
int objectID)</CODE>
|
|
|
|
<BR>
|
|
Returns the x-coordinate of a specific object from a specific group.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../org/newdawn/slick/tiled/TiledMap.html#getObjectY(int, int)">getObjectY</A></B>(int groupID,
|
|
int objectID)</CODE>
|
|
|
|
<BR>
|
|
Returns the y-coordinate of a specific object from a specific group.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../org/newdawn/slick/tiled/TiledMap.html#getTileHeight()">getTileHeight</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Get the height of a single tile</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../org/newdawn/slick/tiled/TiledMap.html#getTileId(int, int, int)">getTileId</A></B>(int x,
|
|
int y,
|
|
int layerIndex)</CODE>
|
|
|
|
<BR>
|
|
Get the global ID of a tile at specified location in the map</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../../org/newdawn/slick/Image.html" title="class in org.newdawn.slick">Image</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../org/newdawn/slick/tiled/TiledMap.html#getTileImage(int, int, int)">getTileImage</A></B>(int x,
|
|
int y,
|
|
int layerIndex)</CODE>
|
|
|
|
<BR>
|
|
Gets the Image used to draw the tile at the given x and y coordinates.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> java.lang.String</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../org/newdawn/slick/tiled/TiledMap.html#getTileProperty(int, java.lang.String, java.lang.String)">getTileProperty</A></B>(int tileID,
|
|
java.lang.String propertyName,
|
|
java.lang.String def)</CODE>
|
|
|
|
<BR>
|
|
Get a propety given to a particular tile.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../../org/newdawn/slick/tiled/TileSet.html" title="class in org.newdawn.slick.tiled">TileSet</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../org/newdawn/slick/tiled/TiledMap.html#getTileSet(int)">getTileSet</A></B>(int index)</CODE>
|
|
|
|
<BR>
|
|
Get a tileset at a particular index in the list of sets for this map</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../../org/newdawn/slick/tiled/TileSet.html" title="class in org.newdawn.slick.tiled">TileSet</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../org/newdawn/slick/tiled/TiledMap.html#getTileSetByGID(int)">getTileSetByGID</A></B>(int gid)</CODE>
|
|
|
|
<BR>
|
|
Get a tileset by a given global ID</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../org/newdawn/slick/tiled/TiledMap.html#getTileSetCount()">getTileSetCount</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Retrieve the number of tilesets available in this map</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> java.lang.String</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../org/newdawn/slick/tiled/TiledMap.html#getTilesLocation()">getTilesLocation</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Get the location of the tile images specified</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../org/newdawn/slick/tiled/TiledMap.html#getTileWidth()">getTileWidth</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Get the width of a single tile</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../org/newdawn/slick/tiled/TiledMap.html#getWidth()">getWidth</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Get the width of the map</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../org/newdawn/slick/tiled/TiledMap.html#render(int, int)">render</A></B>(int x,
|
|
int y)</CODE>
|
|
|
|
<BR>
|
|
Render the whole tile map at a given location</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../org/newdawn/slick/tiled/TiledMap.html#render(int, int, int)">render</A></B>(int x,
|
|
int y,
|
|
int layer)</CODE>
|
|
|
|
<BR>
|
|
Render a single layer from the map</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../org/newdawn/slick/tiled/TiledMap.html#render(int, int, int, int, int, int)">render</A></B>(int x,
|
|
int y,
|
|
int sx,
|
|
int sy,
|
|
int width,
|
|
int height)</CODE>
|
|
|
|
<BR>
|
|
Render a section of the tile map</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../org/newdawn/slick/tiled/TiledMap.html#render(int, int, int, int, int, int, boolean)">render</A></B>(int x,
|
|
int y,
|
|
int sx,
|
|
int sy,
|
|
int width,
|
|
int height,
|
|
boolean lineByLine)</CODE>
|
|
|
|
<BR>
|
|
Render a section of the tile map</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../org/newdawn/slick/tiled/TiledMap.html#render(int, int, int, int, int, int, int, boolean)">render</A></B>(int x,
|
|
int y,
|
|
int sx,
|
|
int sy,
|
|
int width,
|
|
int height,
|
|
int l,
|
|
boolean lineByLine)</CODE>
|
|
|
|
<BR>
|
|
Render a section of the tile map</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../org/newdawn/slick/tiled/TiledMap.html#renderedLine(int, int, int)">renderedLine</A></B>(int visualY,
|
|
int mapY,
|
|
int layer)</CODE>
|
|
|
|
<BR>
|
|
Overrideable to allow other sprites to be rendered between lines of the
|
|
map</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../org/newdawn/slick/tiled/TiledMap.html#renderIsometricMap(int, int, int, int, int, int, org.newdawn.slick.tiled.Layer, boolean)">renderIsometricMap</A></B>(int x,
|
|
int y,
|
|
int sx,
|
|
int sy,
|
|
int width,
|
|
int height,
|
|
<A HREF="../../../../org/newdawn/slick/tiled/Layer.html" title="class in org.newdawn.slick.tiled">Layer</A> layer,
|
|
boolean lineByLine)</CODE>
|
|
|
|
<BR>
|
|
Render of isometric map renders.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../org/newdawn/slick/tiled/TiledMap.html#setTileId(int, int, int, int)">setTileId</A></B>(int x,
|
|
int y,
|
|
int layerIndex,
|
|
int tileid)</CODE>
|
|
|
|
<BR>
|
|
Set the global ID of a tile at specified location in the map</TD>
|
|
</TR>
|
|
</TABLE>
|
|
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
|
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<P>
|
|
|
|
<!-- ============ FIELD DETAIL =========== -->
|
|
|
|
<A NAME="field_detail"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
|
<B>Field Detail</B></FONT></TH>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<A NAME="width"><!-- --></A><H3>
|
|
width</H3>
|
|
<PRE>
|
|
protected int <B>width</B></PRE>
|
|
<DL>
|
|
<DD>The width of the map
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="height"><!-- --></A><H3>
|
|
height</H3>
|
|
<PRE>
|
|
protected int <B>height</B></PRE>
|
|
<DL>
|
|
<DD>The height of the map
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="tileWidth"><!-- --></A><H3>
|
|
tileWidth</H3>
|
|
<PRE>
|
|
protected int <B>tileWidth</B></PRE>
|
|
<DL>
|
|
<DD>The width of the tiles used on the map
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="tileHeight"><!-- --></A><H3>
|
|
tileHeight</H3>
|
|
<PRE>
|
|
protected int <B>tileHeight</B></PRE>
|
|
<DL>
|
|
<DD>The height of the tiles used on the map
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="tilesLocation"><!-- --></A><H3>
|
|
tilesLocation</H3>
|
|
<PRE>
|
|
protected java.lang.String <B>tilesLocation</B></PRE>
|
|
<DL>
|
|
<DD>The location prefix where we can find tileset images
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="props"><!-- --></A><H3>
|
|
props</H3>
|
|
<PRE>
|
|
protected java.util.Properties <B>props</B></PRE>
|
|
<DL>
|
|
<DD>the properties of the map
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="tileSets"><!-- --></A><H3>
|
|
tileSets</H3>
|
|
<PRE>
|
|
protected java.util.ArrayList <B>tileSets</B></PRE>
|
|
<DL>
|
|
<DD>The list of tilesets defined in the map
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="layers"><!-- --></A><H3>
|
|
layers</H3>
|
|
<PRE>
|
|
protected java.util.ArrayList <B>layers</B></PRE>
|
|
<DL>
|
|
<DD>The list of layers defined in the map
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="objectGroups"><!-- --></A><H3>
|
|
objectGroups</H3>
|
|
<PRE>
|
|
protected java.util.ArrayList <B>objectGroups</B></PRE>
|
|
<DL>
|
|
<DD>The list of object-groups defined in the map
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="ORTHOGONAL"><!-- --></A><H3>
|
|
ORTHOGONAL</H3>
|
|
<PRE>
|
|
protected static final int <B>ORTHOGONAL</B></PRE>
|
|
<DL>
|
|
<DD>Indicates a orthogonal map
|
|
<P>
|
|
<DL>
|
|
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.newdawn.slick.tiled.TiledMap.ORTHOGONAL">Constant Field Values</A></DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="ISOMETRIC"><!-- --></A><H3>
|
|
ISOMETRIC</H3>
|
|
<PRE>
|
|
protected static final int <B>ISOMETRIC</B></PRE>
|
|
<DL>
|
|
<DD>Indicates an isometric map
|
|
<P>
|
|
<DL>
|
|
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.newdawn.slick.tiled.TiledMap.ISOMETRIC">Constant Field Values</A></DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="orientation"><!-- --></A><H3>
|
|
orientation</H3>
|
|
<PRE>
|
|
protected int <B>orientation</B></PRE>
|
|
<DL>
|
|
<DD>The orientation of this map
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
|
|
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
|
|
|
<A NAME="constructor_detail"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
|
<B>Constructor Detail</B></FONT></TH>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<A NAME="TiledMap(java.lang.String)"><!-- --></A><H3>
|
|
TiledMap</H3>
|
|
<PRE>
|
|
public <B>TiledMap</B>(java.lang.String ref)
|
|
throws <A HREF="../../../../org/newdawn/slick/SlickException.html" title="class in org.newdawn.slick">SlickException</A></PRE>
|
|
<DL>
|
|
<DD>Create a new tile map based on a given TMX file
|
|
<P>
|
|
<DL>
|
|
<DT><B>Parameters:</B><DD><CODE>ref</CODE> - The location of the tile map to load
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../../org/newdawn/slick/SlickException.html" title="class in org.newdawn.slick">SlickException</A></CODE> - Indicates a failure to load the tilemap</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="TiledMap(java.lang.String, boolean)"><!-- --></A><H3>
|
|
TiledMap</H3>
|
|
<PRE>
|
|
public <B>TiledMap</B>(java.lang.String ref,
|
|
boolean loadTileSets)
|
|
throws <A HREF="../../../../org/newdawn/slick/SlickException.html" title="class in org.newdawn.slick">SlickException</A></PRE>
|
|
<DL>
|
|
<DD>Create a new tile map based on a given TMX file
|
|
<P>
|
|
<DL>
|
|
<DT><B>Parameters:</B><DD><CODE>ref</CODE> - The location of the tile map to load<DD><CODE>loadTileSets</CODE> - True if we want to load tilesets - including their image data
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../../org/newdawn/slick/SlickException.html" title="class in org.newdawn.slick">SlickException</A></CODE> - Indicates a failure to load the tilemap</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="TiledMap(java.lang.String, java.lang.String)"><!-- --></A><H3>
|
|
TiledMap</H3>
|
|
<PRE>
|
|
public <B>TiledMap</B>(java.lang.String ref,
|
|
java.lang.String tileSetsLocation)
|
|
throws <A HREF="../../../../org/newdawn/slick/SlickException.html" title="class in org.newdawn.slick">SlickException</A></PRE>
|
|
<DL>
|
|
<DD>Create a new tile map based on a given TMX file
|
|
<P>
|
|
<DL>
|
|
<DT><B>Parameters:</B><DD><CODE>ref</CODE> - The location of the tile map to load<DD><CODE>tileSetsLocation</CODE> - The location where we can find the tileset images and other
|
|
resources
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../../org/newdawn/slick/SlickException.html" title="class in org.newdawn.slick">SlickException</A></CODE> - Indicates a failure to load the tilemap</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="TiledMap(java.io.InputStream)"><!-- --></A><H3>
|
|
TiledMap</H3>
|
|
<PRE>
|
|
public <B>TiledMap</B>(java.io.InputStream in)
|
|
throws <A HREF="../../../../org/newdawn/slick/SlickException.html" title="class in org.newdawn.slick">SlickException</A></PRE>
|
|
<DL>
|
|
<DD>Load a tile map from an arbitary input stream
|
|
<P>
|
|
<DL>
|
|
<DT><B>Parameters:</B><DD><CODE>in</CODE> - The input stream to load from
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../../org/newdawn/slick/SlickException.html" title="class in org.newdawn.slick">SlickException</A></CODE> - Indicates a failure to load the tilemap</DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="TiledMap(java.io.InputStream, java.lang.String)"><!-- --></A><H3>
|
|
TiledMap</H3>
|
|
<PRE>
|
|
public <B>TiledMap</B>(java.io.InputStream in,
|
|
java.lang.String tileSetsLocation)
|
|
throws <A HREF="../../../../org/newdawn/slick/SlickException.html" title="class in org.newdawn.slick">SlickException</A></PRE>
|
|
<DL>
|
|
<DD>Load a tile map from an arbitary input stream
|
|
<P>
|
|
<DL>
|
|
<DT><B>Parameters:</B><DD><CODE>in</CODE> - The input stream to load from<DD><CODE>tileSetsLocation</CODE> - The location at which we can find tileset images
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../../../../org/newdawn/slick/SlickException.html" title="class in org.newdawn.slick">SlickException</A></CODE> - Indicates a failure to load the tilemap</DL>
|
|
</DL>
|
|
|
|
<!-- ============ METHOD DETAIL ========== -->
|
|
|
|
<A NAME="method_detail"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
|
<B>Method Detail</B></FONT></TH>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<A NAME="getTilesLocation()"><!-- --></A><H3>
|
|
getTilesLocation</H3>
|
|
<PRE>
|
|
public java.lang.String <B>getTilesLocation</B>()</PRE>
|
|
<DL>
|
|
<DD>Get the location of the tile images specified
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>The location of the tile images specified as a resource reference
|
|
prefix</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getLayerIndex(java.lang.String)"><!-- --></A><H3>
|
|
getLayerIndex</H3>
|
|
<PRE>
|
|
public int <B>getLayerIndex</B>(java.lang.String name)</PRE>
|
|
<DL>
|
|
<DD>Get the index of the layer with given name
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>name</CODE> - The name of the tile to search for
|
|
<DT><B>Returns:</B><DD>The index of the layer or -1 if there is no layer with given name</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getTileImage(int, int, int)"><!-- --></A><H3>
|
|
getTileImage</H3>
|
|
<PRE>
|
|
public <A HREF="../../../../org/newdawn/slick/Image.html" title="class in org.newdawn.slick">Image</A> <B>getTileImage</B>(int x,
|
|
int y,
|
|
int layerIndex)</PRE>
|
|
<DL>
|
|
<DD>Gets the Image used to draw the tile at the given x and y coordinates.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>x</CODE> - The x coordinate of the tile whose image should be retrieved<DD><CODE>y</CODE> - The y coordinate of the tile whose image should be retrieved<DD><CODE>layerIndex</CODE> - The index of the layer on which the tile whose image should be
|
|
retrieve exists
|
|
<DT><B>Returns:</B><DD>The image used to draw the specified tile or null if there is no
|
|
image for the specified tile.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getWidth()"><!-- --></A><H3>
|
|
getWidth</H3>
|
|
<PRE>
|
|
public int <B>getWidth</B>()</PRE>
|
|
<DL>
|
|
<DD>Get the width of the map
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>The width of the map (in tiles)</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getHeight()"><!-- --></A><H3>
|
|
getHeight</H3>
|
|
<PRE>
|
|
public int <B>getHeight</B>()</PRE>
|
|
<DL>
|
|
<DD>Get the height of the map
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>The height of the map (in tiles)</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getTileHeight()"><!-- --></A><H3>
|
|
getTileHeight</H3>
|
|
<PRE>
|
|
public int <B>getTileHeight</B>()</PRE>
|
|
<DL>
|
|
<DD>Get the height of a single tile
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>The height of a single tile (in pixels)</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getTileWidth()"><!-- --></A><H3>
|
|
getTileWidth</H3>
|
|
<PRE>
|
|
public int <B>getTileWidth</B>()</PRE>
|
|
<DL>
|
|
<DD>Get the width of a single tile
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>The height of a single tile (in pixels)</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getTileId(int, int, int)"><!-- --></A><H3>
|
|
getTileId</H3>
|
|
<PRE>
|
|
public int <B>getTileId</B>(int x,
|
|
int y,
|
|
int layerIndex)</PRE>
|
|
<DL>
|
|
<DD>Get the global ID of a tile at specified location in the map
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>x</CODE> - The x location of the tile<DD><CODE>y</CODE> - The y location of the tile<DD><CODE>layerIndex</CODE> - The index of the layer to retireve the tile from
|
|
<DT><B>Returns:</B><DD>The global ID of the tile</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="setTileId(int, int, int, int)"><!-- --></A><H3>
|
|
setTileId</H3>
|
|
<PRE>
|
|
public void <B>setTileId</B>(int x,
|
|
int y,
|
|
int layerIndex,
|
|
int tileid)</PRE>
|
|
<DL>
|
|
<DD>Set the global ID of a tile at specified location in the map
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>x</CODE> - The x location of the tile<DD><CODE>y</CODE> - The y location of the tile<DD><CODE>layerIndex</CODE> - The index of the layer to set the new tileid<DD><CODE>tileid</CODE> - The tileid to be set</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getMapProperty(java.lang.String, java.lang.String)"><!-- --></A><H3>
|
|
getMapProperty</H3>
|
|
<PRE>
|
|
public java.lang.String <B>getMapProperty</B>(java.lang.String propertyName,
|
|
java.lang.String def)</PRE>
|
|
<DL>
|
|
<DD>Get a property given to the map. Note that this method will not perform
|
|
well and should not be used as part of the default code path in the game
|
|
loop.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>propertyName</CODE> - The name of the property of the map to retrieve<DD><CODE>def</CODE> - The default value to return
|
|
<DT><B>Returns:</B><DD>The value assigned to the property on the map (or the default
|
|
value if none is supplied)</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getLayerProperty(int, java.lang.String, java.lang.String)"><!-- --></A><H3>
|
|
getLayerProperty</H3>
|
|
<PRE>
|
|
public java.lang.String <B>getLayerProperty</B>(int layerIndex,
|
|
java.lang.String propertyName,
|
|
java.lang.String def)</PRE>
|
|
<DL>
|
|
<DD>Get a property given to a particular layer. Note that this method will
|
|
not perform well and should not be used as part of the default code path
|
|
in the game loop.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>layerIndex</CODE> - The index of the layer to retrieve<DD><CODE>propertyName</CODE> - The name of the property of this layer to retrieve<DD><CODE>def</CODE> - The default value to return
|
|
<DT><B>Returns:</B><DD>The value assigned to the property on the layer (or the default
|
|
value if none is supplied)</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getTileProperty(int, java.lang.String, java.lang.String)"><!-- --></A><H3>
|
|
getTileProperty</H3>
|
|
<PRE>
|
|
public java.lang.String <B>getTileProperty</B>(int tileID,
|
|
java.lang.String propertyName,
|
|
java.lang.String def)</PRE>
|
|
<DL>
|
|
<DD>Get a propety given to a particular tile. Note that this method will not
|
|
perform well and should not be used as part of the default code path in
|
|
the game loop.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>tileID</CODE> - The global ID of the tile to retrieve<DD><CODE>propertyName</CODE> - The name of the property to retireve<DD><CODE>def</CODE> - The default value to return
|
|
<DT><B>Returns:</B><DD>The value assigned to the property on the tile (or the default
|
|
value if none is supplied)</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="render(int, int)"><!-- --></A><H3>
|
|
render</H3>
|
|
<PRE>
|
|
public void <B>render</B>(int x,
|
|
int y)</PRE>
|
|
<DL>
|
|
<DD>Render the whole tile map at a given location
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>x</CODE> - The x location to render at<DD><CODE>y</CODE> - The y location to render at</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="render(int, int, int)"><!-- --></A><H3>
|
|
render</H3>
|
|
<PRE>
|
|
public void <B>render</B>(int x,
|
|
int y,
|
|
int layer)</PRE>
|
|
<DL>
|
|
<DD>Render a single layer from the map
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>x</CODE> - The x location to render at<DD><CODE>y</CODE> - The y location to render at<DD><CODE>layer</CODE> - The layer to render</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="render(int, int, int, int, int, int)"><!-- --></A><H3>
|
|
render</H3>
|
|
<PRE>
|
|
public void <B>render</B>(int x,
|
|
int y,
|
|
int sx,
|
|
int sy,
|
|
int width,
|
|
int height)</PRE>
|
|
<DL>
|
|
<DD>Render a section of the tile map
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>x</CODE> - The x location to render at<DD><CODE>y</CODE> - The y location to render at<DD><CODE>sx</CODE> - The x tile location to start rendering<DD><CODE>sy</CODE> - The y tile location to start rendering<DD><CODE>width</CODE> - The width of the section to render (in tiles)<DD><CODE>height</CODE> - The height of the secton to render (in tiles)</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="render(int, int, int, int, int, int, int, boolean)"><!-- --></A><H3>
|
|
render</H3>
|
|
<PRE>
|
|
public void <B>render</B>(int x,
|
|
int y,
|
|
int sx,
|
|
int sy,
|
|
int width,
|
|
int height,
|
|
int l,
|
|
boolean lineByLine)</PRE>
|
|
<DL>
|
|
<DD>Render a section of the tile map
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>x</CODE> - The x location to render at<DD><CODE>y</CODE> - The y location to render at<DD><CODE>sx</CODE> - The x tile location to start rendering<DD><CODE>sy</CODE> - The y tile location to start rendering<DD><CODE>width</CODE> - The width of the section to render (in tiles)<DD><CODE>height</CODE> - The height of the secton to render (in tiles)<DD><CODE>l</CODE> - The index of the layer to render<DD><CODE>lineByLine</CODE> - True if we should render line by line, i.e. giving us a chance
|
|
to render something else between lines (@see
|
|
<A HREF="../../../../org/newdawn/slick/tiled/TiledMap.html#renderedLine(int, int, int)"><CODE>renderedLine(int, int, int)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="render(int, int, int, int, int, int, boolean)"><!-- --></A><H3>
|
|
render</H3>
|
|
<PRE>
|
|
public void <B>render</B>(int x,
|
|
int y,
|
|
int sx,
|
|
int sy,
|
|
int width,
|
|
int height,
|
|
boolean lineByLine)</PRE>
|
|
<DL>
|
|
<DD>Render a section of the tile map
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>x</CODE> - The x location to render at<DD><CODE>y</CODE> - The y location to render at<DD><CODE>sx</CODE> - The x tile location to start rendering<DD><CODE>sy</CODE> - The y tile location to start rendering<DD><CODE>width</CODE> - The width of the section to render (in tiles)<DD><CODE>height</CODE> - The height of the secton to render (in tiles)<DD><CODE>lineByLine</CODE> - True if we should render line by line, i.e. giving us a chance
|
|
to render something else between lines (@see
|
|
<A HREF="../../../../org/newdawn/slick/tiled/TiledMap.html#renderedLine(int, int, int)"><CODE>renderedLine(int, int, int)</CODE></A></DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="renderIsometricMap(int, int, int, int, int, int, org.newdawn.slick.tiled.Layer, boolean)"><!-- --></A><H3>
|
|
renderIsometricMap</H3>
|
|
<PRE>
|
|
protected void <B>renderIsometricMap</B>(int x,
|
|
int y,
|
|
int sx,
|
|
int sy,
|
|
int width,
|
|
int height,
|
|
<A HREF="../../../../org/newdawn/slick/tiled/Layer.html" title="class in org.newdawn.slick.tiled">Layer</A> layer,
|
|
boolean lineByLine)</PRE>
|
|
<DL>
|
|
<DD>Render of isometric map renders.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>x</CODE> - The x location to render at<DD><CODE>y</CODE> - The y location to render at<DD><CODE>sx</CODE> - The x tile location to start rendering<DD><CODE>sy</CODE> - The y tile location to start rendering<DD><CODE>width</CODE> - The width of the section to render (in tiles)<DD><CODE>height</CODE> - The height of the section to render (in tiles)<DD><CODE>layer</CODE> - if this is null all layers are rendered, if not only the
|
|
selected layer is renderered<DD><CODE>lineByLine</CODE> - True if we should render line by line, i.e. giving us a chance
|
|
to render something else between lines (@see
|
|
<A HREF="../../../../org/newdawn/slick/tiled/TiledMap.html#renderedLine(int, int, int)"><CODE>renderedLine(int, int, int)</CODE></A>
|
|
|
|
TODO: [Isometric map] Render stuff between lines, concept of
|
|
line differs from ortho maps</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getLayerCount()"><!-- --></A><H3>
|
|
getLayerCount</H3>
|
|
<PRE>
|
|
public int <B>getLayerCount</B>()</PRE>
|
|
<DL>
|
|
<DD>Retrieve a count of the number of layers available
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>The number of layers available in this map</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getTileSetCount()"><!-- --></A><H3>
|
|
getTileSetCount</H3>
|
|
<PRE>
|
|
public int <B>getTileSetCount</B>()</PRE>
|
|
<DL>
|
|
<DD>Retrieve the number of tilesets available in this map
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>The number of tilesets available in this map</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getTileSet(int)"><!-- --></A><H3>
|
|
getTileSet</H3>
|
|
<PRE>
|
|
public <A HREF="../../../../org/newdawn/slick/tiled/TileSet.html" title="class in org.newdawn.slick.tiled">TileSet</A> <B>getTileSet</B>(int index)</PRE>
|
|
<DL>
|
|
<DD>Get a tileset at a particular index in the list of sets for this map
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>index</CODE> - The index of the tileset.
|
|
<DT><B>Returns:</B><DD>The TileSet requested</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getTileSetByGID(int)"><!-- --></A><H3>
|
|
getTileSetByGID</H3>
|
|
<PRE>
|
|
public <A HREF="../../../../org/newdawn/slick/tiled/TileSet.html" title="class in org.newdawn.slick.tiled">TileSet</A> <B>getTileSetByGID</B>(int gid)</PRE>
|
|
<DL>
|
|
<DD>Get a tileset by a given global ID
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>gid</CODE> - The global ID of the tileset to retrieve
|
|
<DT><B>Returns:</B><DD>The tileset requested or null if no tileset matches</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="findTileSet(int)"><!-- --></A><H3>
|
|
findTileSet</H3>
|
|
<PRE>
|
|
public <A HREF="../../../../org/newdawn/slick/tiled/TileSet.html" title="class in org.newdawn.slick.tiled">TileSet</A> <B>findTileSet</B>(int gid)</PRE>
|
|
<DL>
|
|
<DD>Find a tile for a given global tile id
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>gid</CODE> - The global tile id we're looking for
|
|
<DT><B>Returns:</B><DD>The tileset in which that tile lives or null if the gid is not
|
|
defined</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="renderedLine(int, int, int)"><!-- --></A><H3>
|
|
renderedLine</H3>
|
|
<PRE>
|
|
protected void <B>renderedLine</B>(int visualY,
|
|
int mapY,
|
|
int layer)</PRE>
|
|
<DL>
|
|
<DD>Overrideable to allow other sprites to be rendered between lines of the
|
|
map
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>visualY</CODE> - The visual Y coordinate, i.e. 0->height<DD><CODE>mapY</CODE> - The map Y coordinate, i.e. y->y+height<DD><CODE>layer</CODE> - The layer being rendered</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getObjectGroupCount()"><!-- --></A><H3>
|
|
getObjectGroupCount</H3>
|
|
<PRE>
|
|
public int <B>getObjectGroupCount</B>()</PRE>
|
|
<DL>
|
|
<DD>Returns the number of object-groups defined in the map.
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>Number of object-groups on the map</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getObjectCount(int)"><!-- --></A><H3>
|
|
getObjectCount</H3>
|
|
<PRE>
|
|
public int <B>getObjectCount</B>(int groupID)</PRE>
|
|
<DL>
|
|
<DD>Returns the number of objects of a specific object-group.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>groupID</CODE> - The index of this object-group
|
|
<DT><B>Returns:</B><DD>Number of the objects in the object-group or -1, when error
|
|
occurred.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getObjectName(int, int)"><!-- --></A><H3>
|
|
getObjectName</H3>
|
|
<PRE>
|
|
public java.lang.String <B>getObjectName</B>(int groupID,
|
|
int objectID)</PRE>
|
|
<DL>
|
|
<DD>Return the name of a specific object from a specific group.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>groupID</CODE> - Index of a group<DD><CODE>objectID</CODE> - Index of an object
|
|
<DT><B>Returns:</B><DD>The name of an object or null, when error occurred</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getObjectType(int, int)"><!-- --></A><H3>
|
|
getObjectType</H3>
|
|
<PRE>
|
|
public java.lang.String <B>getObjectType</B>(int groupID,
|
|
int objectID)</PRE>
|
|
<DL>
|
|
<DD>Return the type of an specific object from a specific group.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>groupID</CODE> - Index of a group<DD><CODE>objectID</CODE> - Index of an object
|
|
<DT><B>Returns:</B><DD>The type of an object or null, when error occurred</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getObjectX(int, int)"><!-- --></A><H3>
|
|
getObjectX</H3>
|
|
<PRE>
|
|
public int <B>getObjectX</B>(int groupID,
|
|
int objectID)</PRE>
|
|
<DL>
|
|
<DD>Returns the x-coordinate of a specific object from a specific group.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>groupID</CODE> - Index of a group<DD><CODE>objectID</CODE> - Index of an object
|
|
<DT><B>Returns:</B><DD>The x-coordinate of an object, or -1, when error occurred</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getObjectY(int, int)"><!-- --></A><H3>
|
|
getObjectY</H3>
|
|
<PRE>
|
|
public int <B>getObjectY</B>(int groupID,
|
|
int objectID)</PRE>
|
|
<DL>
|
|
<DD>Returns the y-coordinate of a specific object from a specific group.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>groupID</CODE> - Index of a group<DD><CODE>objectID</CODE> - Index of an object
|
|
<DT><B>Returns:</B><DD>The y-coordinate of an object, or -1, when error occurred</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getObjectWidth(int, int)"><!-- --></A><H3>
|
|
getObjectWidth</H3>
|
|
<PRE>
|
|
public int <B>getObjectWidth</B>(int groupID,
|
|
int objectID)</PRE>
|
|
<DL>
|
|
<DD>Returns the width of a specific object from a specific group.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>groupID</CODE> - Index of a group<DD><CODE>objectID</CODE> - Index of an object
|
|
<DT><B>Returns:</B><DD>The width of an object, or -1, when error occurred</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getObjectHeight(int, int)"><!-- --></A><H3>
|
|
getObjectHeight</H3>
|
|
<PRE>
|
|
public int <B>getObjectHeight</B>(int groupID,
|
|
int objectID)</PRE>
|
|
<DL>
|
|
<DD>Returns the height of a specific object from a specific group.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>groupID</CODE> - Index of a group<DD><CODE>objectID</CODE> - Index of an object
|
|
<DT><B>Returns:</B><DD>The height of an object, or -1, when error occurred</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getObjectImage(int, int)"><!-- --></A><H3>
|
|
getObjectImage</H3>
|
|
<PRE>
|
|
public java.lang.String <B>getObjectImage</B>(int groupID,
|
|
int objectID)</PRE>
|
|
<DL>
|
|
<DD>Retrieve the image source property for a given object
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>groupID</CODE> - Index of a group<DD><CODE>objectID</CODE> - Index of an object
|
|
<DT><B>Returns:</B><DD>The image source reference or null if one isn't defined</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getObjectProperty(int, int, java.lang.String, java.lang.String)"><!-- --></A><H3>
|
|
getObjectProperty</H3>
|
|
<PRE>
|
|
public java.lang.String <B>getObjectProperty</B>(int groupID,
|
|
int objectID,
|
|
java.lang.String propertyName,
|
|
java.lang.String def)</PRE>
|
|
<DL>
|
|
<DD>Looks for a property with the given name and returns it's value. If no
|
|
property is found, def is returned.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>groupID</CODE> - Index of a group<DD><CODE>objectID</CODE> - Index of an object<DD><CODE>propertyName</CODE> - Name of a property<DD><CODE>def</CODE> - default value to return, if no property is found
|
|
<DT><B>Returns:</B><DD>The value of the property with the given name or def, if there is
|
|
no property with that name.</DL>
|
|
</DD>
|
|
</DL>
|
|
<!-- ========= END OF CLASS DATA ========= -->
|
|
<HR>
|
|
|
|
|
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
|
<A NAME="navbar_bottom"><!-- --></A>
|
|
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
|
|
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
|
<TR>
|
|
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
|
<A NAME="navbar_bottom_firstrow"><!-- --></A>
|
|
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
|
<TR ALIGN="center" VALIGN="top">
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/TiledMap.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
|
</TR>
|
|
</TABLE>
|
|
</TD>
|
|
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
|
</EM>
|
|
</TD>
|
|
</TR>
|
|
|
|
<TR>
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
<A HREF="../../../../org/newdawn/slick/tiled/Layer.html" title="class in org.newdawn.slick.tiled"><B>PREV CLASS</B></A>
|
|
<A HREF="../../../../org/newdawn/slick/tiled/TiledMap.GroupObject.html" title="class in org.newdawn.slick.tiled"><B>NEXT CLASS</B></A></FONT></TD>
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
<A HREF="../../../../index.html?org/newdawn/slick/tiled/TiledMap.html" target="_top"><B>FRAMES</B></A>
|
|
<A HREF="TiledMap.html" target="_top"><B>NO FRAMES</B></A>
|
|
<SCRIPT type="text/javascript">
|
|
<!--
|
|
if(window==top) {
|
|
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
|
}
|
|
//-->
|
|
</SCRIPT>
|
|
<NOSCRIPT>
|
|
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
|
|
</NOSCRIPT>
|
|
|
|
|
|
</FONT></TD>
|
|
</TR>
|
|
<TR>
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
|
</TR>
|
|
</TABLE>
|
|
<A NAME="skip-navbar_bottom"></A>
|
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
|
|
|
<HR>
|
|
<i>Copyright © 2006 New Dawn Software. All Rights Reserved.</i>
|
|
</BODY>
|
|
</HTML>
|