<!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_201) on Tue May 05 15:44:52 CEST 2020 --> <title>Board</title> <meta name="date" content="2020-05-05"> <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="Board"; } } catch(err) { } //--> var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10,"i35":10,"i36":10,"i37":10}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance 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/objects/AbstractDeck.html" title="class in inf112.fiasko.roborally.objects"><span class="typeNameLink">Prev Class</span></a></li> <li><a href="../../../../inf112/fiasko/roborally/objects/BoardElement.html" title="interface in inf112.fiasko.roborally.objects"><span class="typeNameLink">Next Class</span></a></li> </ul> <ul class="navList"> <li><a href="../../../../index.html?inf112/fiasko/roborally/objects/Board.html" target="_top">Frames</a></li> <li><a href="Board.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><a href="#constructor.summary">Constr</a> | </li> <li><a href="#method.summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail: </li> <li>Field | </li> <li><a href="#constructor.detail">Constr</a> | </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.objects</div> <h2 title="Class Board" class="title">Class Board</h2> </div> <div class="contentContainer"> <ul class="inheritance"> <li>java.lang.Object</li> <li> <ul class="inheritance"> <li>inf112.fiasko.roborally.objects.Board</li> </ul> </li> </ul> <div class="description"> <ul class="blockList"> <li class="blockList"> <hr> <br> <pre>public class <span class="typeNameLabel">Board</span> extends java.lang.Object</pre> <div class="block">This class represents a board</div> </li> </ul> </div> <div class="summary"> <ul class="blockList"> <li class="blockList"> <!-- ======== CONSTRUCTOR SUMMARY ======== --> <ul class="blockList"> <li class="blockList"><a name="constructor.summary"> <!-- --> </a> <h3>Constructor Summary</h3> <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> <caption><span>Constructors</span><span class="tabEnd"> </span></caption> <tr> <th class="colOne" scope="col">Constructor and Description</th> </tr> <tr class="altColor"> <td class="colOne"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/objects/Board.html#Board-inf112.fiasko.roborally.objects.Grid-inf112.fiasko.roborally.objects.Grid-java.util.List-">Board</a></span>(<a href="../../../../inf112/fiasko/roborally/objects/Grid.html" title="interface in inf112.fiasko.roborally.objects">Grid</a><<a href="../../../../inf112/fiasko/roborally/objects/Tile.html" title="class in inf112.fiasko.roborally.objects">Tile</a>> tiles, <a href="../../../../inf112/fiasko/roborally/objects/Grid.html" title="interface in inf112.fiasko.roborally.objects">Grid</a><<a href="../../../../inf112/fiasko/roborally/objects/Wall.html" title="class in inf112.fiasko.roborally.objects">Wall</a>> walls, java.util.List<<a href="../../../../inf112/fiasko/roborally/objects/Robot.html" title="class in inf112.fiasko.roborally.objects">Robot</a>> robots)</code> <div class="block">Initializes the board</div> </td> </tr> </table> </li> </ul> <!-- ========== 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="t2" class="tableTab"><span><a href="javascript:show(2);">Instance 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>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/objects/Board.html#conveyorBeltCanMove-inf112.fiasko.roborally.objects.BoardElementContainer-int-">conveyorBeltCanMove</a></span>(<a href="../../../../inf112/fiasko/roborally/objects/BoardElementContainer.html" title="class in inf112.fiasko.roborally.objects">BoardElementContainer</a><<a href="../../../../inf112/fiasko/roborally/objects/Tile.html" title="class in inf112.fiasko.roborally.objects">Tile</a>> conveyorBelt, int iterations)</code> <div class="block">Checks whether a given conveyor belt is able to move in its direction</div> </td> </tr> <tr id="i1" class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/objects/Board.html#doLaserCleanup--">doLaserCleanup</a></span>()</code> <div class="block">Does necessary cleanup after lasers have been fired</div> </td> </tr> <tr id="i2" class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/objects/Board.html#executePowerDown--">executePowerDown</a></span>()</code> <div class="block">Sets the damage taken of robots in power down to 0</div> </td> </tr> <tr id="i3" class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/objects/Board.html#fireAllLasers--">fireAllLasers</a></span>()</code> <div class="block">Fires all lasers on the board and kills any robot that has taken to much damage after all lasers have fired.</div> </td> </tr> <tr id="i4" class="altColor"> <td class="colFirst"><code>java.util.List<<a href="../../../../inf112/fiasko/roborally/objects/Robot.html" title="class in inf112.fiasko.roborally.objects">Robot</a>></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/objects/Board.html#getAliveRobots--">getAliveRobots</a></span>()</code> <div class="block">Gets all alive robots from the board</div> </td> </tr> <tr id="i5" class="rowColor"> <td class="colFirst"><code>java.util.List<<a href="../../../../inf112/fiasko/roborally/objects/Robot.html" title="class in inf112.fiasko.roborally.objects">Robot</a>></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/objects/Board.html#getAllRobots--">getAllRobots</a></span>()</code> <div class="block">Gets all robots from the board</div> </td> </tr> <tr id="i6" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/objects/Board.html#getBoardHeight--">getBoardHeight</a></span>()</code> <div class="block">Gets the height of the board</div> </td> </tr> <tr id="i7" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/objects/Board.html#getBoardWidth--">getBoardWidth</a></span>()</code> <div class="block">Gets the width of the board</div> </td> </tr> <tr id="i8" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/objects/Board.html#getLastFlagVisited-inf112.fiasko.roborally.objects.properties.RobotID-">getLastFlagVisited</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 int corresponding to the flag a robot has last visited</div> </td> </tr> <tr id="i9" class="rowColor"> <td class="colFirst"><code><a href="../../../../inf112/fiasko/roborally/objects/properties/Position.html" title="class in inf112.fiasko.roborally.objects.properties">Position</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/objects/Board.html#getNewPosition-inf112.fiasko.roborally.objects.properties.Position-inf112.fiasko.roborally.objects.properties.Direction-">getNewPosition</a></span>(<a href="../../../../inf112/fiasko/roborally/objects/properties/Position.html" title="class in inf112.fiasko.roborally.objects.properties">Position</a> oldPosition, <a href="../../../../inf112/fiasko/roborally/objects/properties/Direction.html" title="enum in inf112.fiasko.roborally.objects.properties">Direction</a> direction)</code> <div class="block">Gets the position 1 unit in a specific direction from another position</div> </td> </tr> <tr id="i10" class="altColor"> <td class="colFirst"><code>java.util.List<<a href="../../../../inf112/fiasko/roborally/objects/Particle.html" title="class in inf112.fiasko.roborally.objects">Particle</a>></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/objects/Board.html#getParticles--">getParticles</a></span>()</code> <div class="block">Gets all the particles from the board</div> </td> </tr> <tr id="i11" class="rowColor"> <td class="colFirst"><code>java.util.List<<a href="../../../../inf112/fiasko/roborally/objects/BoardElementContainer.html" title="class in inf112.fiasko.roborally.objects">BoardElementContainer</a><<a href="../../../../inf112/fiasko/roborally/objects/Tile.html" title="class in inf112.fiasko.roborally.objects">Tile</a>>></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/objects/Board.html#getPositionsOfTilesOnBoard-inf112.fiasko.roborally.objects.properties.TileType...-">getPositionsOfTilesOnBoard</a></span>(<a href="../../../../inf112/fiasko/roborally/objects/properties/TileType.html" title="enum in inf112.fiasko.roborally.objects.properties">TileType</a>... tiles)</code> <div class="block">Gets a list of BoardElementContainers, containing all tiles and positions of given tile types</div> </td> </tr> <tr id="i12" class="altColor"> <td class="colFirst"><code>java.util.List<<a href="../../../../inf112/fiasko/roborally/objects/BoardElementContainer.html" title="class in inf112.fiasko.roborally.objects">BoardElementContainer</a><<a href="../../../../inf112/fiasko/roborally/objects/Wall.html" title="class in inf112.fiasko.roborally.objects">Wall</a>>></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/objects/Board.html#getPositionsOfWallsOnBoard-inf112.fiasko.roborally.objects.properties.WallType...-">getPositionsOfWallsOnBoard</a></span>(<a href="../../../../inf112/fiasko/roborally/objects/properties/WallType.html" title="enum in inf112.fiasko.roborally.objects.properties">WallType</a>... walls)</code> <div class="block">Gets a list of BoardElementContainers, containing all tiles and positions of given wall types</div> </td> </tr> <tr id="i13" class="rowColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/objects/Board.html#getPowerDown-inf112.fiasko.roborally.objects.properties.RobotID-">getPowerDown</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 power down status of the robot</div> </td> </tr> <tr id="i14" class="altColor"> <td class="colFirst"><code>java.util.List<<a href="../../../../inf112/fiasko/roborally/objects/properties/RobotID.html" title="enum in inf112.fiasko.roborally.objects.properties">RobotID</a>></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/objects/Board.html#getRealDeadRobots--">getRealDeadRobots</a></span>()</code> <div class="block">Gets a list of robots no longer part of the game</div> </td> </tr> <tr id="i15" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/objects/Board.html#getRobotDamage-inf112.fiasko.roborally.objects.properties.RobotID-">getRobotDamage</a></span>(<a href="../../../../inf112/fiasko/roborally/objects/properties/RobotID.html" title="enum in inf112.fiasko.roborally.objects.properties">RobotID</a> robot)</code> <div class="block">Get the damage of a specific robot</div> </td> </tr> <tr id="i16" class="altColor"> <td class="colFirst"><code><a href="../../../../inf112/fiasko/roborally/objects/properties/RobotID.html" title="enum in inf112.fiasko.roborally.objects.properties">RobotID</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/objects/Board.html#getRobotOnPosition-inf112.fiasko.roborally.objects.properties.Position-">getRobotOnPosition</a></span>(<a href="../../../../inf112/fiasko/roborally/objects/properties/Position.html" title="class in inf112.fiasko.roborally.objects.properties">Position</a> position)</code> <div class="block">Returns a robot id for a robot on a specific position if such a robot exists</div> </td> </tr> <tr id="i17" class="rowColor"> <td class="colFirst"><code><a href="../../../../inf112/fiasko/roborally/objects/Tile.html" title="class in inf112.fiasko.roborally.objects">Tile</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/objects/Board.html#getTileOnPosition-inf112.fiasko.roborally.objects.properties.Position-">getTileOnPosition</a></span>(<a href="../../../../inf112/fiasko/roborally/objects/properties/Position.html" title="class in inf112.fiasko.roborally.objects.properties">Position</a> position)</code> <div class="block">Gets the tile on a specific position</div> </td> </tr> <tr id="i18" class="altColor"> <td class="colFirst"><code>java.util.List<<a href="../../../../inf112/fiasko/roborally/objects/Tile.html" title="class in inf112.fiasko.roborally.objects">Tile</a>></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/objects/Board.html#getTiles--">getTiles</a></span>()</code> <div class="block">Gets all the tiles from the board</div> </td> </tr> <tr id="i19" class="rowColor"> <td class="colFirst"><code>java.util.List<<a href="../../../../inf112/fiasko/roborally/objects/Wall.html" title="class in inf112.fiasko.roborally.objects">Wall</a>></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/objects/Board.html#getWalls--">getWalls</a></span>()</code> <div class="block">Gets all the walls from the board</div> </td> </tr> <tr id="i20" class="altColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/objects/Board.html#hasRobotOnPosition-inf112.fiasko.roborally.objects.properties.Position-">hasRobotOnPosition</a></span>(<a href="../../../../inf112/fiasko/roborally/objects/properties/Position.html" title="class in inf112.fiasko.roborally.objects.properties">Position</a> position)</code> <div class="block">Checks whether there exists a robot on a specific position</div> </td> </tr> <tr id="i21" class="rowColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/objects/Board.html#hasTouchedFlagThisTurn-inf112.fiasko.roborally.objects.properties.RobotID-">hasTouchedFlagThisTurn</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">Checks a boolean for if the robot has touched a flag this turn</div> </td> </tr> <tr id="i22" class="altColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/objects/Board.html#isConveyorBelt-inf112.fiasko.roborally.objects.Tile-">isConveyorBelt</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 given tile is a conveyor belt</div> </td> </tr> <tr id="i23" class="rowColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/objects/Board.html#isRobotAlive-inf112.fiasko.roborally.objects.properties.RobotID-">isRobotAlive</a></span>(<a href="../../../../inf112/fiasko/roborally/objects/properties/RobotID.html" title="enum in inf112.fiasko.roborally.objects.properties">RobotID</a> robot)</code> <div class="block">Checks if a specific robot is currently alive on the board</div> </td> </tr> <tr id="i24" class="altColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/objects/Board.html#isValidPosition-inf112.fiasko.roborally.objects.properties.Position-">isValidPosition</a></span>(<a href="../../../../inf112/fiasko/roborally/objects/properties/Position.html" title="class in inf112.fiasko.roborally.objects.properties">Position</a> position)</code> <div class="block">Checks whether a given position is valid</div> </td> </tr> <tr id="i25" class="rowColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/objects/Board.html#moveRobot-inf112.fiasko.roborally.objects.properties.RobotID-inf112.fiasko.roborally.objects.properties.Direction-">moveRobot</a></span>(<a href="../../../../inf112/fiasko/roborally/objects/properties/RobotID.html" title="enum in inf112.fiasko.roborally.objects.properties">RobotID</a> robotID, <a href="../../../../inf112/fiasko/roborally/objects/properties/Direction.html" title="enum in inf112.fiasko.roborally.objects.properties">Direction</a> direction)</code> <div class="block">Moves a robot one unit in a specified direction</div> </td> </tr> <tr id="i26" class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/objects/Board.html#moveRobotForward-inf112.fiasko.roborally.objects.properties.RobotID-">moveRobotForward</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">Moves a robot one unit forward according to the direction it's currently facing</div> </td> </tr> <tr id="i27" class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/objects/Board.html#repairRobotOnTile-inf112.fiasko.roborally.objects.properties.RobotID-">repairRobotOnTile</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">Removes one damage for a given robot given that it has taken som damage before</div> </td> </tr> <tr id="i28" class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/objects/Board.html#respawnRobots--">respawnRobots</a></span>()</code> <div class="block">Moves all dead robots to their backups and makes them part of the board again, and if a robot has no lives it will be removed from the game.</div> </td> </tr> <tr id="i29" class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/objects/Board.html#reverseRobot-inf112.fiasko.roborally.objects.properties.RobotID-">reverseRobot</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">Moves a robot one unit backwards according to the direction it's currently facing</div> </td> </tr> <tr id="i30" class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/objects/Board.html#rotateRobotLeft-inf112.fiasko.roborally.objects.properties.RobotID-">rotateRobotLeft</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">Rotates a robot to the right</div> </td> </tr> <tr id="i31" class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/objects/Board.html#rotateRobotRight-inf112.fiasko.roborally.objects.properties.RobotID-">rotateRobotRight</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">Rotates a robot to the left</div> </td> </tr> <tr id="i32" class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/objects/Board.html#setBackupPositionOfRobot-inf112.fiasko.roborally.objects.properties.RobotID-inf112.fiasko.roborally.objects.properties.Position-">setBackupPositionOfRobot</a></span>(<a href="../../../../inf112/fiasko/roborally/objects/properties/RobotID.html" title="enum in inf112.fiasko.roborally.objects.properties">RobotID</a> robotID, <a href="../../../../inf112/fiasko/roborally/objects/properties/Position.html" title="class in inf112.fiasko.roborally.objects.properties">Position</a> position)</code> <div class="block">Sets the backup position of a given robot to a given position</div> </td> </tr> <tr id="i33" class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/objects/Board.html#setHasTouchedFlagThisTurn-inf112.fiasko.roborally.objects.properties.RobotID-boolean-">setHasTouchedFlagThisTurn</a></span>(<a href="../../../../inf112/fiasko/roborally/objects/properties/RobotID.html" title="enum in inf112.fiasko.roborally.objects.properties">RobotID</a> robotID, boolean hasTouched)</code> <div class="block">Sets a boolean for if the robot has touched a flag this turn</div> </td> </tr> <tr id="i34" class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/objects/Board.html#setPowerDown-inf112.fiasko.roborally.objects.properties.RobotID-java.lang.Boolean-">setPowerDown</a></span>(<a href="../../../../inf112/fiasko/roborally/objects/properties/RobotID.html" title="enum in inf112.fiasko.roborally.objects.properties">RobotID</a> robotID, java.lang.Boolean powerDown)</code> <div class="block">Sets the power down status of the robot</div> </td> </tr> <tr id="i35" class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/objects/Board.html#teleportRobot-inf112.fiasko.roborally.objects.properties.RobotID-inf112.fiasko.roborally.objects.properties.Position-">teleportRobot</a></span>(<a href="../../../../inf112/fiasko/roborally/objects/properties/RobotID.html" title="enum in inf112.fiasko.roborally.objects.properties">RobotID</a> robotID, <a href="../../../../inf112/fiasko/roborally/objects/properties/Position.html" title="class in inf112.fiasko.roborally.objects.properties">Position</a> newPosition)</code> <div class="block">Teleports a robot to some position without verification Be quite careful about using this method.</div> </td> </tr> <tr id="i36" class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/objects/Board.html#updateRobotBackups--">updateRobotBackups</a></span>()</code> <div class="block">Updates backup position of all robots on a repair tile</div> </td> </tr> <tr id="i37" class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/objects/Board.html#updateRobotFlag-inf112.fiasko.roborally.objects.properties.RobotID-inf112.fiasko.roborally.objects.BoardElementContainer-">updateRobotFlag</a></span>(<a href="../../../../inf112/fiasko/roborally/objects/properties/RobotID.html" title="enum in inf112.fiasko.roborally.objects.properties">RobotID</a> robotID, <a href="../../../../inf112/fiasko/roborally/objects/BoardElementContainer.html" title="class in inf112.fiasko.roborally.objects">BoardElementContainer</a><<a href="../../../../inf112/fiasko/roborally/objects/Tile.html" title="class in inf112.fiasko.roborally.objects">Tile</a>> flag)</code> <div class="block">Updates the flag of the robot if it stands on the correct flag.</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"> <!-- ========= CONSTRUCTOR DETAIL ======== --> <ul class="blockList"> <li class="blockList"><a name="constructor.detail"> <!-- --> </a> <h3>Constructor Detail</h3> <a name="Board-inf112.fiasko.roborally.objects.Grid-inf112.fiasko.roborally.objects.Grid-java.util.List-"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>Board</h4> <pre>public Board(<a href="../../../../inf112/fiasko/roborally/objects/Grid.html" title="interface in inf112.fiasko.roborally.objects">Grid</a><<a href="../../../../inf112/fiasko/roborally/objects/Tile.html" title="class in inf112.fiasko.roborally.objects">Tile</a>> tiles, <a href="../../../../inf112/fiasko/roborally/objects/Grid.html" title="interface in inf112.fiasko.roborally.objects">Grid</a><<a href="../../../../inf112/fiasko/roborally/objects/Wall.html" title="class in inf112.fiasko.roborally.objects">Wall</a>> walls, java.util.List<<a href="../../../../inf112/fiasko/roborally/objects/Robot.html" title="class in inf112.fiasko.roborally.objects">Robot</a>> robots)</pre> <div class="block">Initializes the board</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>tiles</code> - A grid containing all tiles</dd> <dd><code>walls</code> - A grid containing all walls</dd> <dd><code>robots</code> - A list of all robots in the game</dd> </dl> </li> </ul> </li> </ul> <!-- ============ METHOD DETAIL ========== --> <ul class="blockList"> <li class="blockList"><a name="method.detail"> <!-- --> </a> <h3>Method Detail</h3> <a name="getRealDeadRobots--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getRealDeadRobots</h4> <pre>public java.util.List<<a href="../../../../inf112/fiasko/roborally/objects/properties/RobotID.html" title="enum in inf112.fiasko.roborally.objects.properties">RobotID</a>> getRealDeadRobots()</pre> <div class="block">Gets a list of robots no longer part of the game</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>Robots no longer part of the game</dd> </dl> </li> </ul> <a name="getBoardHeight--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getBoardHeight</h4> <pre>public int getBoardHeight()</pre> <div class="block">Gets the height of the board</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>The height of the board</dd> </dl> </li> </ul> <a name="getBoardWidth--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getBoardWidth</h4> <pre>public int getBoardWidth()</pre> <div class="block">Gets the width of the board</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>The width of the board</dd> </dl> </li> </ul> <a name="getAliveRobots--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getAliveRobots</h4> <pre>public java.util.List<<a href="../../../../inf112/fiasko/roborally/objects/Robot.html" title="class in inf112.fiasko.roborally.objects">Robot</a>> getAliveRobots()</pre> <div class="block">Gets all alive robots from the board</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>A list of alive robots</dd> </dl> </li> </ul> <a name="getAllRobots--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getAllRobots</h4> <pre>public java.util.List<<a href="../../../../inf112/fiasko/roborally/objects/Robot.html" title="class in inf112.fiasko.roborally.objects">Robot</a>> getAllRobots()</pre> <div class="block">Gets all robots from the board</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>A list of robots</dd> </dl> </li> </ul> <a name="getTiles--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getTiles</h4> <pre>public java.util.List<<a href="../../../../inf112/fiasko/roborally/objects/Tile.html" title="class in inf112.fiasko.roborally.objects">Tile</a>> getTiles()</pre> <div class="block">Gets all the tiles from the board</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>A list of all tiles on the board</dd> </dl> </li> </ul> <a name="getWalls--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getWalls</h4> <pre>public java.util.List<<a href="../../../../inf112/fiasko/roborally/objects/Wall.html" title="class in inf112.fiasko.roborally.objects">Wall</a>> getWalls()</pre> <div class="block">Gets all the walls from the board</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>A list of all the walls on the board</dd> </dl> </li> </ul> <a name="getParticles--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getParticles</h4> <pre>public java.util.List<<a href="../../../../inf112/fiasko/roborally/objects/Particle.html" title="class in inf112.fiasko.roborally.objects">Particle</a>> getParticles()</pre> <div class="block">Gets all the particles from the board</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>A list of all the particles on the board</dd> </dl> </li> </ul> <a name="rotateRobotLeft-inf112.fiasko.roborally.objects.properties.RobotID-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>rotateRobotLeft</h4> <pre>public void rotateRobotLeft(<a href="../../../../inf112/fiasko/roborally/objects/properties/RobotID.html" title="enum in inf112.fiasko.roborally.objects.properties">RobotID</a> robotID)</pre> <div class="block">Rotates a robot to the right</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>robotID</code> - The id of the robot to rotate</dd> </dl> </li> </ul> <a name="rotateRobotRight-inf112.fiasko.roborally.objects.properties.RobotID-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>rotateRobotRight</h4> <pre>public void rotateRobotRight(<a href="../../../../inf112/fiasko/roborally/objects/properties/RobotID.html" title="enum in inf112.fiasko.roborally.objects.properties">RobotID</a> robotID)</pre> <div class="block">Rotates a robot to the left</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>robotID</code> - The id of the robot to rotate</dd> </dl> </li> </ul> <a name="moveRobotForward-inf112.fiasko.roborally.objects.properties.RobotID-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>moveRobotForward</h4> <pre>public void moveRobotForward(<a href="../../../../inf112/fiasko/roborally/objects/properties/RobotID.html" title="enum in inf112.fiasko.roborally.objects.properties">RobotID</a> robotID)</pre> <div class="block">Moves a robot one unit forward according to the direction it's currently facing</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>robotID</code> - The robot to move</dd> </dl> </li> </ul> <a name="reverseRobot-inf112.fiasko.roborally.objects.properties.RobotID-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>reverseRobot</h4> <pre>public void reverseRobot(<a href="../../../../inf112/fiasko/roborally/objects/properties/RobotID.html" title="enum in inf112.fiasko.roborally.objects.properties">RobotID</a> robotID)</pre> <div class="block">Moves a robot one unit backwards according to the direction it's currently facing</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>robotID</code> - The robot to move</dd> </dl> </li> </ul> <a name="setPowerDown-inf112.fiasko.roborally.objects.properties.RobotID-java.lang.Boolean-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setPowerDown</h4> <pre>public void setPowerDown(<a href="../../../../inf112/fiasko/roborally/objects/properties/RobotID.html" title="enum in inf112.fiasko.roborally.objects.properties">RobotID</a> robotID, java.lang.Boolean powerDown)</pre> <div class="block">Sets the power down status of the robot</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>robotID</code> - The robot id of the robot</dd> <dd><code>powerDown</code> - The status of the power down</dd> </dl> </li> </ul> <a name="setBackupPositionOfRobot-inf112.fiasko.roborally.objects.properties.RobotID-inf112.fiasko.roborally.objects.properties.Position-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setBackupPositionOfRobot</h4> <pre>public void setBackupPositionOfRobot(<a href="../../../../inf112/fiasko/roborally/objects/properties/RobotID.html" title="enum in inf112.fiasko.roborally.objects.properties">RobotID</a> robotID, <a href="../../../../inf112/fiasko/roborally/objects/properties/Position.html" title="class in inf112.fiasko.roborally.objects.properties">Position</a> position)</pre> <div class="block">Sets the backup position of a given robot to a given position</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>robotID</code> - The robot to change backup position for</dd> <dd><code>position</code> - The robot's new backup position</dd> </dl> </li> </ul> <a name="getPowerDown-inf112.fiasko.roborally.objects.properties.RobotID-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getPowerDown</h4> <pre>public boolean getPowerDown(<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 power down status of the robot</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>robotID</code> - The robot id of the robot</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>The power down status of the robot</dd> </dl> </li> </ul> <a name="repairRobotOnTile-inf112.fiasko.roborally.objects.properties.RobotID-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>repairRobotOnTile</h4> <pre>public void repairRobotOnTile(<a href="../../../../inf112/fiasko/roborally/objects/properties/RobotID.html" title="enum in inf112.fiasko.roborally.objects.properties">RobotID</a> robotID)</pre> <div class="block">Removes one damage for a given robot given that it has taken som damage before</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>robotID</code> - the ID of the robot</dd> </dl> </li> </ul> <a name="executePowerDown--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>executePowerDown</h4> <pre>public void executePowerDown()</pre> <div class="block">Sets the damage taken of robots in power down to 0</div> </li> </ul> <a name="getRobotDamage-inf112.fiasko.roborally.objects.properties.RobotID-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getRobotDamage</h4> <pre>public int getRobotDamage(<a href="../../../../inf112/fiasko/roborally/objects/properties/RobotID.html" title="enum in inf112.fiasko.roborally.objects.properties">RobotID</a> robot)</pre> <div class="block">Get the damage of a specific robot</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>robot</code> - The RobotID of a robot</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>The amount of damage the robot has currently</dd> </dl> </li> </ul> <a name="moveRobot-inf112.fiasko.roborally.objects.properties.RobotID-inf112.fiasko.roborally.objects.properties.Direction-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>moveRobot</h4> <pre>public boolean moveRobot(<a href="../../../../inf112/fiasko/roborally/objects/properties/RobotID.html" title="enum in inf112.fiasko.roborally.objects.properties">RobotID</a> robotID, <a href="../../../../inf112/fiasko/roborally/objects/properties/Direction.html" title="enum in inf112.fiasko.roborally.objects.properties">Direction</a> direction)</pre> <div class="block">Moves a robot one unit in a specified direction</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>robotID</code> - Id of the robot to move</dd> <dd><code>direction</code> - The direction to move the robot</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>True if the robot moved away from its old position</dd> </dl> </li> </ul> <a name="isConveyorBelt-inf112.fiasko.roborally.objects.Tile-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>isConveyorBelt</h4> <pre>public boolean isConveyorBelt(<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 given tile is a conveyor belt</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 the tile is a conveyor belt</dd> </dl> </li> </ul> <a name="teleportRobot-inf112.fiasko.roborally.objects.properties.RobotID-inf112.fiasko.roborally.objects.properties.Position-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>teleportRobot</h4> <pre>public void teleportRobot(<a href="../../../../inf112/fiasko/roborally/objects/properties/RobotID.html" title="enum in inf112.fiasko.roborally.objects.properties">RobotID</a> robotID, <a href="../../../../inf112/fiasko/roborally/objects/properties/Position.html" title="class in inf112.fiasko.roborally.objects.properties">Position</a> newPosition)</pre> <div class="block">Teleports a robot to some position without verification <p>Be quite careful about using this method. No validation will me done. The robot will magically disappear from one position and appear on another, hence the name. This method should only be used when the new position has been confirmed available.</p></div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>robotID</code> - The id of the robot to teleport</dd> <dd><code>newPosition</code> - The position the robot should teleport to</dd> </dl> </li> </ul> <a name="conveyorBeltCanMove-inf112.fiasko.roborally.objects.BoardElementContainer-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>conveyorBeltCanMove</h4> <pre>public boolean conveyorBeltCanMove(<a href="../../../../inf112/fiasko/roborally/objects/BoardElementContainer.html" title="class in inf112.fiasko.roborally.objects">BoardElementContainer</a><<a href="../../../../inf112/fiasko/roborally/objects/Tile.html" title="class in inf112.fiasko.roborally.objects">Tile</a>> conveyorBelt, int iterations)</pre> <div class="block">Checks whether a given conveyor belt is able to move in its direction</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>conveyorBelt</code> - The conveyor belt to move</dd> <dd><code>iterations</code> - The number of recursive calls already executed</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>True if nothing is blocking its movement</dd> </dl> </li> </ul> <a name="respawnRobots--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>respawnRobots</h4> <pre>public void respawnRobots()</pre> <div class="block">Moves all dead robots to their backups and makes them part of the board again, and if a robot has no lives it will be removed from the game.</div> </li> </ul> <a name="updateRobotBackups--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>updateRobotBackups</h4> <pre>public void updateRobotBackups()</pre> <div class="block">Updates backup position of all robots on a repair tile</div> </li> </ul> <a name="getRobotOnPosition-inf112.fiasko.roborally.objects.properties.Position-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getRobotOnPosition</h4> <pre>public <a href="../../../../inf112/fiasko/roborally/objects/properties/RobotID.html" title="enum in inf112.fiasko.roborally.objects.properties">RobotID</a> getRobotOnPosition(<a href="../../../../inf112/fiasko/roborally/objects/properties/Position.html" title="class in inf112.fiasko.roborally.objects.properties">Position</a> position)</pre> <div class="block">Returns a robot id for a robot on a specific position if such a robot exists</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>position</code> - The position to check</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>The robot id of the robot on the position or null if there is no robot there</dd> </dl> </li> </ul> <a name="isRobotAlive-inf112.fiasko.roborally.objects.properties.RobotID-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>isRobotAlive</h4> <pre>public boolean isRobotAlive(<a href="../../../../inf112/fiasko/roborally/objects/properties/RobotID.html" title="enum in inf112.fiasko.roborally.objects.properties">RobotID</a> robot)</pre> <div class="block">Checks if a specific robot is currently alive on the board</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>robot</code> - the ID of the robot you want to check</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>True/False based on if the robot was found.</dd> </dl> </li> </ul> <a name="updateRobotFlag-inf112.fiasko.roborally.objects.properties.RobotID-inf112.fiasko.roborally.objects.BoardElementContainer-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>updateRobotFlag</h4> <pre>public void updateRobotFlag(<a href="../../../../inf112/fiasko/roborally/objects/properties/RobotID.html" title="enum in inf112.fiasko.roborally.objects.properties">RobotID</a> robotID, <a href="../../../../inf112/fiasko/roborally/objects/BoardElementContainer.html" title="class in inf112.fiasko.roborally.objects">BoardElementContainer</a><<a href="../../../../inf112/fiasko/roborally/objects/Tile.html" title="class in inf112.fiasko.roborally.objects">Tile</a>> flag)</pre> <div class="block">Updates the flag of the robot if it stands on the correct flag.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>robotID</code> - The RobotID of a robot</dd> <dd><code>flag</code> - BoardElementContainer of the flag we check</dd> </dl> </li> </ul> <a name="getNewPosition-inf112.fiasko.roborally.objects.properties.Position-inf112.fiasko.roborally.objects.properties.Direction-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getNewPosition</h4> <pre>public <a href="../../../../inf112/fiasko/roborally/objects/properties/Position.html" title="class in inf112.fiasko.roborally.objects.properties">Position</a> getNewPosition(<a href="../../../../inf112/fiasko/roborally/objects/properties/Position.html" title="class in inf112.fiasko.roborally.objects.properties">Position</a> oldPosition, <a href="../../../../inf112/fiasko/roborally/objects/properties/Direction.html" title="enum in inf112.fiasko.roborally.objects.properties">Direction</a> direction)</pre> <div class="block">Gets the position 1 unit in a specific direction from another position</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>oldPosition</code> - The old/current position of the element</dd> <dd><code>direction</code> - The direction to move the element</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>The new position of the element</dd> </dl> </li> </ul> <a name="fireAllLasers--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>fireAllLasers</h4> <pre>public void fireAllLasers()</pre> <div class="block">Fires all lasers on the board and kills any robot that has taken to much damage after all lasers have fired.</div> </li> </ul> <a name="doLaserCleanup--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>doLaserCleanup</h4> <pre>public void doLaserCleanup()</pre> <div class="block">Does necessary cleanup after lasers have been fired</div> </li> </ul> <a name="getTileOnPosition-inf112.fiasko.roborally.objects.properties.Position-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getTileOnPosition</h4> <pre>public <a href="../../../../inf112/fiasko/roborally/objects/Tile.html" title="class in inf112.fiasko.roborally.objects">Tile</a> getTileOnPosition(<a href="../../../../inf112/fiasko/roborally/objects/properties/Position.html" title="class in inf112.fiasko.roborally.objects.properties">Position</a> position)</pre> <div class="block">Gets the tile on a specific position</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>position</code> - The position to get a tile from</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>The tile on the given position</dd> </dl> </li> </ul> <a name="getPositionsOfTilesOnBoard-inf112.fiasko.roborally.objects.properties.TileType...-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getPositionsOfTilesOnBoard</h4> <pre>public java.util.List<<a href="../../../../inf112/fiasko/roborally/objects/BoardElementContainer.html" title="class in inf112.fiasko.roborally.objects">BoardElementContainer</a><<a href="../../../../inf112/fiasko/roborally/objects/Tile.html" title="class in inf112.fiasko.roborally.objects">Tile</a>>> getPositionsOfTilesOnBoard(<a href="../../../../inf112/fiasko/roborally/objects/properties/TileType.html" title="enum in inf112.fiasko.roborally.objects.properties">TileType</a>... tiles)</pre> <div class="block">Gets a list of BoardElementContainers, containing all tiles and positions of given tile types</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>tiles</code> - The tiles you want all positions for</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>A list of BoardElementContainers</dd> </dl> </li> </ul> <a name="getPositionsOfWallsOnBoard-inf112.fiasko.roborally.objects.properties.WallType...-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getPositionsOfWallsOnBoard</h4> <pre>public java.util.List<<a href="../../../../inf112/fiasko/roborally/objects/BoardElementContainer.html" title="class in inf112.fiasko.roborally.objects">BoardElementContainer</a><<a href="../../../../inf112/fiasko/roborally/objects/Wall.html" title="class in inf112.fiasko.roborally.objects">Wall</a>>> getPositionsOfWallsOnBoard(<a href="../../../../inf112/fiasko/roborally/objects/properties/WallType.html" title="enum in inf112.fiasko.roborally.objects.properties">WallType</a>... walls)</pre> <div class="block">Gets a list of BoardElementContainers, containing all tiles and positions of given wall types</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>walls</code> - The walls you want all positions for</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>A list of BoardElementContainers</dd> </dl> </li> </ul> <a name="hasRobotOnPosition-inf112.fiasko.roborally.objects.properties.Position-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>hasRobotOnPosition</h4> <pre>public boolean hasRobotOnPosition(<a href="../../../../inf112/fiasko/roborally/objects/properties/Position.html" title="class in inf112.fiasko.roborally.objects.properties">Position</a> position)</pre> <div class="block">Checks whether there exists a robot on a specific position</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>position</code> - The position to check</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>True if there is a robot on the specified position</dd> </dl> </li> </ul> <a name="isValidPosition-inf112.fiasko.roborally.objects.properties.Position-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>isValidPosition</h4> <pre>public boolean isValidPosition(<a href="../../../../inf112/fiasko/roborally/objects/properties/Position.html" title="class in inf112.fiasko.roborally.objects.properties">Position</a> position)</pre> <div class="block">Checks whether a given position is valid</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>position</code> - The position to test</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>True if the position is valid. False otherwise</dd> </dl> </li> </ul> <a name="getLastFlagVisited-inf112.fiasko.roborally.objects.properties.RobotID-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getLastFlagVisited</h4> <pre>public int getLastFlagVisited(<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 int corresponding to the flag a robot has last visited</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>robotID</code> - The robot to be checked</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>The flag last visited in a number</dd> </dl> </li> </ul> <a name="setHasTouchedFlagThisTurn-inf112.fiasko.roborally.objects.properties.RobotID-boolean-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setHasTouchedFlagThisTurn</h4> <pre>public void setHasTouchedFlagThisTurn(<a href="../../../../inf112/fiasko/roborally/objects/properties/RobotID.html" title="enum in inf112.fiasko.roborally.objects.properties">RobotID</a> robotID, boolean hasTouched)</pre> <div class="block">Sets a boolean for if the robot has touched a flag this turn</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>robotID</code> - The robot to be checked</dd> <dd><code>hasTouched</code> - If the robot has touched a flag this turn</dd> </dl> </li> </ul> <a name="hasTouchedFlagThisTurn-inf112.fiasko.roborally.objects.properties.RobotID-"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>hasTouchedFlagThisTurn</h4> <pre>public boolean hasTouchedFlagThisTurn(<a href="../../../../inf112/fiasko/roborally/objects/properties/RobotID.html" title="enum in inf112.fiasko.roborally.objects.properties">RobotID</a> robotID)</pre> <div class="block">Checks a boolean for if the robot has touched a flag this turn</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>robotID</code> - The robot to be checked</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>If the robot has touched a flag this turn</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/objects/AbstractDeck.html" title="class in inf112.fiasko.roborally.objects"><span class="typeNameLink">Prev Class</span></a></li> <li><a href="../../../../inf112/fiasko/roborally/objects/BoardElement.html" title="interface in inf112.fiasko.roborally.objects"><span class="typeNameLink">Next Class</span></a></li> </ul> <ul class="navList"> <li><a href="../../../../index.html?inf112/fiasko/roborally/objects/Board.html" target="_top">Frames</a></li> <li><a href="Board.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><a href="#constructor.summary">Constr</a> | </li> <li><a href="#method.summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail: </li> <li>Field | </li> <li><a href="#constructor.detail">Constr</a> | </li> <li><a href="#method.detail">Method</a></li> </ul> </div> <a name="skip.navbar.bottom"> <!-- --> </a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> </body> </html>