<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="no"> <head> <!-- Generated by javadoc (1.8.0_172) on Sun May 03 18:10:40 CEST 2020 --> <title>TextureConverterUtil</title> <meta name="date" content="2020-05-03"> <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> <script type="text/javascript" src="../../../../script.js"></script> </head> <body> <script type="text/javascript"><!-- try { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="TextureConverterUtil"; } } catch(err) { } //--> var methods = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9,"i10":9,"i11":9,"i12":9}; var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; var tableTab = "tableTab"; var activeTableTab = "activeTableTab"; </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <!-- ========= START OF TOP NAVBAR ======= --> <div class="topNav"><a name="navbar.top"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.top.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../overview-summary.html">Overview</a></li> <li><a href="package-summary.html">Package</a></li> <li class="navBarCell1Rev">Class</li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../index-files/index-1.html">Index</a></li> <li><a href="../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../../../inf112/fiasko/roborally/utility/StringUtil.html" title="class in inf112.fiasko.roborally.utility"><span class="typeNameLink">Prev Class</span></a></li> <li>Next Class</li> </ul> <ul class="navList"> <li><a href="../../../../index.html?inf112/fiasko/roborally/utility/TextureConverterUtil.html" target="_top">Frames</a></li> <li><a href="TextureConverterUtil.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_top"> <li><a href="../../../../allclasses-noframe.html">All Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_top"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <div> <ul class="subNavList"> <li>Summary: </li> <li>Nested | </li> <li>Field | </li> <li>Constr | </li> <li><a href="#method.summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail: </li> <li>Field | </li> <li>Constr | </li> <li><a href="#method.detail">Method</a></li> </ul> </div> <a name="skip.navbar.top"> <!-- --> </a></div> <!-- ========= END OF TOP NAVBAR ========= --> <!-- ======== START OF CLASS DATA ======== --> <div class="header"> <div class="subTitle">inf112.fiasko.roborally.utility</div> <h2 title="Class TextureConverterUtil" class="title">Class TextureConverterUtil</h2> </div> <div class="contentContainer"> <ul class="inheritance"> <li>java.lang.Object</li> <li> <ul class="inheritance"> <li>inf112.fiasko.roborally.utility.TextureConverterUtil</li> </ul> </li> </ul> <div class="description"> <ul class="blockList"> <li class="blockList"> <hr> <br> <pre>public final class <span class="typeNameLabel">TextureConverterUtil</span> extends java.lang.Object</pre> <div class="block">This class can convert an element to an appropriate texture</div> </li> </ul> </div> <div class="summary"> <ul class="blockList"> <li class="blockList"> <!-- ========== METHOD SUMMARY =========== --> <ul class="blockList"> <li class="blockList"><a name="method.summary"> <!-- --> </a> <h3>Method Summary</h3> <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tr id="i0" class="altColor"> <td class="colFirst"><code>static com.badlogic.gdx.graphics.g2d.TextureRegion</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/utility/TextureConverterUtil.html#convertElement-inf112.fiasko.roborally.objects.Particle-">convertElement</a></span>(<a href="../../../../inf112/fiasko/roborally/objects/Particle.html" title="class in inf112.fiasko.roborally.objects">Particle</a> particle)</code> <div class="block">Gets the texture representing the particle</div> </td> </tr> <tr id="i1" class="rowColor"> <td class="colFirst"><code>static com.badlogic.gdx.graphics.g2d.TextureRegion</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/utility/TextureConverterUtil.html#convertElement-inf112.fiasko.roborally.objects.ProgrammingCard-">convertElement</a></span>(<a href="../../../../inf112/fiasko/roborally/objects/ProgrammingCard.html" title="class in inf112.fiasko.roborally.objects">ProgrammingCard</a> card)</code> <div class="block">Gets the texture representing the programming card</div> </td> </tr> <tr id="i2" class="altColor"> <td class="colFirst"><code>static com.badlogic.gdx.graphics.g2d.TextureRegion</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/utility/TextureConverterUtil.html#convertElement-inf112.fiasko.roborally.objects.Robot-">convertElement</a></span>(<a href="../../../../inf112/fiasko/roborally/objects/Robot.html" title="class in inf112.fiasko.roborally.objects">Robot</a> robot)</code> <div class="block">Gets the texture representing the robot</div> </td> </tr> <tr id="i3" class="rowColor"> <td class="colFirst"><code>static com.badlogic.gdx.graphics.g2d.TextureRegion</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/utility/TextureConverterUtil.html#convertElement-inf112.fiasko.roborally.objects.properties.RobotID-">convertElement</a></span>(<a href="../../../../inf112/fiasko/roborally/objects/properties/RobotID.html" title="enum in inf112.fiasko.roborally.objects.properties">RobotID</a> robotID)</code> <div class="block">Gets the texture representing the robot id</div> </td> </tr> <tr id="i4" class="altColor"> <td class="colFirst"><code>static com.badlogic.gdx.graphics.g2d.TextureRegion</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/utility/TextureConverterUtil.html#convertElement-inf112.fiasko.roborally.objects.Tile-">convertElement</a></span>(<a href="../../../../inf112/fiasko/roborally/objects/Tile.html" title="class in inf112.fiasko.roborally.objects">Tile</a> tile)</code> <div class="block">Gets the texture representing the tile</div> </td> </tr> <tr id="i5" class="rowColor"> <td class="colFirst"><code>static com.badlogic.gdx.graphics.g2d.TextureRegion</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/utility/TextureConverterUtil.html#convertElement-inf112.fiasko.roborally.objects.Wall-">convertElement</a></span>(<a href="../../../../inf112/fiasko/roborally/objects/Wall.html" title="class in inf112.fiasko.roborally.objects">Wall</a> wall)</code> <div class="block">Gets the texture representing the tile</div> </td> </tr> <tr id="i6" class="altColor"> <td class="colFirst"><code>static com.badlogic.gdx.graphics.g2d.TextureRegion</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/utility/TextureConverterUtil.html#getDamageTokenCriticalTexture--">getDamageTokenCriticalTexture</a></span>()</code> <div class="block">Returns the texture to use to display damage tokens</div> </td> </tr> <tr id="i7" class="rowColor"> <td class="colFirst"><code>static com.badlogic.gdx.graphics.g2d.TextureRegion</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/utility/TextureConverterUtil.html#getDamageTokenTexture--">getDamageTokenTexture</a></span>()</code> <div class="block">Returns the texture to use to display damage tokens</div> </td> </tr> <tr id="i8" class="altColor"> <td class="colFirst"><code>static java.util.List<com.badlogic.gdx.utils.Disposable></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/utility/TextureConverterUtil.html#getDisposableElements--">getDisposableElements</a></span>()</code> <div class="block">Gets a list of all disposable elements which should be disposed when the software closes</div> </td> </tr> <tr id="i9" class="rowColor"> <td class="colFirst"><code>static com.badlogic.gdx.graphics.g2d.TextureRegion</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/utility/TextureConverterUtil.html#getLifeTexture--">getLifeTexture</a></span>()</code> <div class="block">Returns the texture to use to display lives</div> </td> </tr> <tr id="i10" class="altColor"> <td class="colFirst"><code>static boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/utility/TextureConverterUtil.html#hasRotatedTexture-inf112.fiasko.roborally.objects.Particle-">hasRotatedTexture</a></span>(<a href="../../../../inf112/fiasko/roborally/objects/Particle.html" title="class in inf112.fiasko.roborally.objects">Particle</a> particle)</code> <div class="block">Checks whether a particle has textures for different rotations For a particle without a rotated texture, the texture needs to be rotated when rendering.</div> </td> </tr> <tr id="i11" class="rowColor"> <td class="colFirst"><code>static boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/utility/TextureConverterUtil.html#hasRotatedTexture-inf112.fiasko.roborally.objects.Tile-">hasRotatedTexture</a></span>(<a href="../../../../inf112/fiasko/roborally/objects/Tile.html" title="class in inf112.fiasko.roborally.objects">Tile</a> tile)</code> <div class="block">Checks whether a tile has textures for different rotations For a tile without a rotated texture, the texture needs to be rotated when rendering.</div> </td> </tr> <tr id="i12" class="altColor"> <td class="colFirst"><code>static boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/utility/TextureConverterUtil.html#hasRotatedTexture-inf112.fiasko.roborally.objects.Wall-">hasRotatedTexture</a></span>(<a href="../../../../inf112/fiasko/roborally/objects/Wall.html" title="class in inf112.fiasko.roborally.objects">Wall</a> wall)</code> <div class="block">Checks whether a wall has textures for different rotations For a wall without a rotated texture, the texture needs to be rotated when rendering.</div> </td> </tr> </table> <ul class="blockList"> <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> <!-- --> </a> <h3>Methods inherited from class java.lang.Object</h3> <code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li> </ul> </li> </ul> </li> </ul> </div> <div class="details"> <ul class="blockList"> <li class="blockList"> <!-- ============ METHOD DETAIL ========== --> <ul class="blockList"> <li class="blockList"><a name="method.detail"> <!-- --> </a> <h3>Method Detail</h3> <a name="convertElement-inf112.fiasko.roborally.objects.ProgrammingCard-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>convertElement</h4> <pre>public static com.badlogic.gdx.graphics.g2d.TextureRegion convertElement(<a href="../../../../inf112/fiasko/roborally/objects/ProgrammingCard.html" title="class in inf112.fiasko.roborally.objects">ProgrammingCard</a> card)</pre> <div class="block">Gets the texture representing the programming card</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>card</code> - The card to draw</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>The texture to draw</dd> </dl> </li> </ul> <a name="getDamageTokenCriticalTexture--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getDamageTokenCriticalTexture</h4> <pre>public static com.badlogic.gdx.graphics.g2d.TextureRegion getDamageTokenCriticalTexture()</pre> <div class="block">Returns the texture to use to display damage tokens</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>The damage token texture</dd> </dl> </li> </ul> <a name="getDamageTokenTexture--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getDamageTokenTexture</h4> <pre>public static com.badlogic.gdx.graphics.g2d.TextureRegion getDamageTokenTexture()</pre> <div class="block">Returns the texture to use to display damage tokens</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>The damage token texture</dd> </dl> </li> </ul> <a name="getLifeTexture--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getLifeTexture</h4> <pre>public static com.badlogic.gdx.graphics.g2d.TextureRegion getLifeTexture()</pre> <div class="block">Returns the texture to use to display lives</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>The life texture</dd> </dl> </li> </ul> <a name="getDisposableElements--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getDisposableElements</h4> <pre>public static java.util.List<com.badlogic.gdx.utils.Disposable> getDisposableElements()</pre> <div class="block">Gets a list of all disposable elements which should be disposed when the software closes</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>A list of disposable elements</dd> </dl> </li> </ul> <a name="convertElement-inf112.fiasko.roborally.objects.Tile-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>convertElement</h4> <pre>public static com.badlogic.gdx.graphics.g2d.TextureRegion convertElement(<a href="../../../../inf112/fiasko/roborally/objects/Tile.html" title="class in inf112.fiasko.roborally.objects">Tile</a> tile)</pre> <div class="block">Gets the texture representing the tile</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>tile</code> - The tile to draw</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>The texture to draw</dd> </dl> </li> </ul> <a name="convertElement-inf112.fiasko.roborally.objects.Particle-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>convertElement</h4> <pre>public static com.badlogic.gdx.graphics.g2d.TextureRegion convertElement(<a href="../../../../inf112/fiasko/roborally/objects/Particle.html" title="class in inf112.fiasko.roborally.objects">Particle</a> particle)</pre> <div class="block">Gets the texture representing the particle</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>particle</code> - The particle to draw</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>The texture to draw</dd> </dl> </li> </ul> <a name="convertElement-inf112.fiasko.roborally.objects.Wall-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>convertElement</h4> <pre>public static com.badlogic.gdx.graphics.g2d.TextureRegion convertElement(<a href="../../../../inf112/fiasko/roborally/objects/Wall.html" title="class in inf112.fiasko.roborally.objects">Wall</a> wall)</pre> <div class="block">Gets the texture representing the tile</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>wall</code> - The wall to draw</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>The texture to draw</dd> </dl> </li> </ul> <a name="convertElement-inf112.fiasko.roborally.objects.Robot-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>convertElement</h4> <pre>public static com.badlogic.gdx.graphics.g2d.TextureRegion convertElement(<a href="../../../../inf112/fiasko/roborally/objects/Robot.html" title="class in inf112.fiasko.roborally.objects">Robot</a> robot)</pre> <div class="block">Gets the texture representing the robot</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>robot</code> - The robot to draw</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>The texture to draw</dd> </dl> </li> </ul> <a name="convertElement-inf112.fiasko.roborally.objects.properties.RobotID-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>convertElement</h4> <pre>public static com.badlogic.gdx.graphics.g2d.TextureRegion convertElement(<a href="../../../../inf112/fiasko/roborally/objects/properties/RobotID.html" title="enum in inf112.fiasko.roborally.objects.properties">RobotID</a> robotID)</pre> <div class="block">Gets the texture representing the robot id</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>robotID</code> - The id of the robot to draw</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>The texture to draw</dd> </dl> </li> </ul> <a name="hasRotatedTexture-inf112.fiasko.roborally.objects.Tile-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>hasRotatedTexture</h4> <pre>public static boolean hasRotatedTexture(<a href="../../../../inf112/fiasko/roborally/objects/Tile.html" title="class in inf112.fiasko.roborally.objects">Tile</a> tile)</pre> <div class="block">Checks whether a tile has textures for different rotations <p>For a tile without a rotated texture, the texture needs to be rotated when rendering.</p></div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>tile</code> - The tile to check</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>True if rotated versions of the texture exists. False otherwise</dd> </dl> </li> </ul> <a name="hasRotatedTexture-inf112.fiasko.roborally.objects.Wall-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>hasRotatedTexture</h4> <pre>public static boolean hasRotatedTexture(<a href="../../../../inf112/fiasko/roborally/objects/Wall.html" title="class in inf112.fiasko.roborally.objects">Wall</a> wall)</pre> <div class="block">Checks whether a wall has textures for different rotations <p>For a wall without a rotated texture, the texture needs to be rotated when rendering.</p></div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>wall</code> - The wall to check</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>True if rotated versions of the texture exists. False otherwise</dd> </dl> </li> </ul> <a name="hasRotatedTexture-inf112.fiasko.roborally.objects.Particle-"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>hasRotatedTexture</h4> <pre>public static boolean hasRotatedTexture(<a href="../../../../inf112/fiasko/roborally/objects/Particle.html" title="class in inf112.fiasko.roborally.objects">Particle</a> particle)</pre> <div class="block">Checks whether a particle has textures for different rotations <p>For a particle without a rotated texture, the texture needs to be rotated when rendering.</p></div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>particle</code> - The particle to check</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>True if rotated versions of the texture exists. False otherwise</dd> </dl> </li> </ul> </li> </ul> </li> </ul> </div> </div> <!-- ========= END OF CLASS DATA ========= --> <!-- ======= START OF BOTTOM NAVBAR ====== --> <div class="bottomNav"><a name="navbar.bottom"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.bottom.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../overview-summary.html">Overview</a></li> <li><a href="package-summary.html">Package</a></li> <li class="navBarCell1Rev">Class</li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../index-files/index-1.html">Index</a></li> <li><a href="../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../../../inf112/fiasko/roborally/utility/StringUtil.html" title="class in inf112.fiasko.roborally.utility"><span class="typeNameLink">Prev Class</span></a></li> <li>Next Class</li> </ul> <ul class="navList"> <li><a href="../../../../index.html?inf112/fiasko/roborally/utility/TextureConverterUtil.html" target="_top">Frames</a></li> <li><a href="TextureConverterUtil.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_bottom"> <li><a href="../../../../allclasses-noframe.html">All Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_bottom"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <div> <ul class="subNavList"> <li>Summary: </li> <li>Nested | </li> <li>Field | </li> <li>Constr | </li> <li><a href="#method.summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail: </li> <li>Field | </li> <li>Constr | </li> <li><a href="#method.detail">Method</a></li> </ul> </div> <a name="skip.navbar.bottom"> <!-- --> </a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> </body> </html>