if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Robot";
}
}
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};
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>
<li><ahref="../../../../inf112/fiasko/roborally/objects/RoboRallyGame.html"title="class in inf112.fiasko.roborally.objects"><spanclass="typeNameLink">Prev Class</span></a></li>
<li><ahref="../../../../inf112/fiasko/roborally/objects/Tile.html"title="class in inf112.fiasko.roborally.objects"><spanclass="typeNameLink">Next Class</span></a></li>
<thclass="colOne"scope="col">Constructor and Description</th>
</tr>
<trclass="altColor">
<tdclass="colOne"><code><spanclass="memberNameLink"><ahref="../../../../inf112/fiasko/roborally/objects/Robot.html#Robot-inf112.fiasko.roborally.objects.properties.RobotID-inf112.fiasko.roborally.objects.properties.Position-">Robot</a></span>(<ahref="../../../../inf112/fiasko/roborally/objects/properties/RobotID.html"title="enum in inf112.fiasko.roborally.objects.properties">RobotID</a> robotId,
<ahref="../../../../inf112/fiasko/roborally/objects/properties/Position.html"title="class in inf112.fiasko.roborally.objects.properties">Position</a> spawnPosition)</code>
<divclass="block">Instantiates a new robot</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ulclass="blockList">
<liclass="blockList"><aname="method.summary">
<!---->
</a>
<h3>Method Summary</h3>
<tableclass="memberSummary"border="0"cellpadding="3"cellspacing="0"summary="Method Summary table, listing methods, and an explanation">
<thclass="colFirst"scope="col">Modifier and Type</th>
<thclass="colLast"scope="col">Method and Description</th>
</tr>
<trid="i0"class="altColor">
<tdclass="colFirst"><code><ahref="../../../../inf112/fiasko/roborally/objects/Robot.html"title="class in inf112.fiasko.roborally.objects">Robot</a></code></td>
<divclass="block">Gets the amount of life a robot has left.</div>
</td>
</tr>
<trid="i2"class="altColor">
<tdclass="colFirst"><code><ahref="../../../../inf112/fiasko/roborally/objects/properties/Position.html"title="class in inf112.fiasko.roborally.objects.properties">Position</a></code></td>
<divclass="block">Gets the damage the robot has taken</div>
</td>
</tr>
<trid="i4"class="altColor">
<tdclass="colFirst"><code><ahref="../../../../inf112/fiasko/roborally/objects/properties/Direction.html"title="enum in inf112.fiasko.roborally.objects.properties">Direction</a></code></td>
<divclass="block">Gets the last flag the robot visited</div>
</td>
</tr>
<trid="i6"class="altColor">
<tdclass="colFirst"><code><ahref="../../../../inf112/fiasko/roborally/objects/properties/Position.html"title="class in inf112.fiasko.roborally.objects.properties">Position</a></code></td>
<divclass="block">Gets the robot's current position on the board</div>
</td>
</tr>
<trid="i7"class="rowColor">
<tdclass="colFirst"><code><ahref="../../../../inf112/fiasko/roborally/objects/properties/RobotID.html"title="enum in inf112.fiasko.roborally.objects.properties">RobotID</a></code></td>
<divclass="block">Sets the amount if life the robot has left</div>
</td>
</tr>
<trid="i11"class="rowColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><spanclass="memberNameLink"><ahref="../../../../inf112/fiasko/roborally/objects/Robot.html#setBackupPosition-inf112.fiasko.roborally.objects.properties.Position-">setBackupPosition</a></span>(<ahref="../../../../inf112/fiasko/roborally/objects/properties/Position.html"title="class in inf112.fiasko.roborally.objects.properties">Position</a> backupPosition)</code>
<divclass="block">Sets the backup position of the robot</div>
<divclass="block">Sets the robot's taken damage to a given amount</div>
</td>
</tr>
<trid="i13"class="rowColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><spanclass="memberNameLink"><ahref="../../../../inf112/fiasko/roborally/objects/Robot.html#setFacingDirection-inf112.fiasko.roborally.objects.properties.Direction-">setFacingDirection</a></span>(<ahref="../../../../inf112/fiasko/roborally/objects/properties/Direction.html"title="enum in inf112.fiasko.roborally.objects.properties">Direction</a> newFacingDirection)</code>
<divclass="block">Sets the direction the robot is currently facing</div>
<divclass="block">Set the robot's last visited flag to the new flag and places its backup on the flag's position</div>
</td>
</tr>
<trid="i16"class="altColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><spanclass="memberNameLink"><ahref="../../../../inf112/fiasko/roborally/objects/Robot.html#setPosition-inf112.fiasko.roborally.objects.properties.Position-">setPosition</a></span>(<ahref="../../../../inf112/fiasko/roborally/objects/properties/Position.html"title="class in inf112.fiasko.roborally.objects.properties">Position</a> newPosition)</code>
<divclass="block">Sets the robot's current position on the board</div>
<pre>public Robot(<ahref="../../../../inf112/fiasko/roborally/objects/properties/RobotID.html"title="enum in inf112.fiasko.roborally.objects.properties">RobotID</a> robotId,
<ahref="../../../../inf112/fiasko/roborally/objects/properties/Position.html"title="class in inf112.fiasko.roborally.objects.properties">Position</a> spawnPosition)</pre>
<dd><code>damage</code> - The amount of damage the robot has received</dd>
</dl>
</li>
</ul>
<aname="getPosition--">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>getPosition</h4>
<pre>public <ahref="../../../../inf112/fiasko/roborally/objects/properties/Position.html"title="class in inf112.fiasko.roborally.objects.properties">Position</a> getPosition()</pre>
<divclass="block">Gets the robot's current position on the board</div>
<pre>public void setPosition(<ahref="../../../../inf112/fiasko/roborally/objects/properties/Position.html"title="class in inf112.fiasko.roborally.objects.properties">Position</a> newPosition)</pre>
<divclass="block">Sets the robot's current position on the board</div>
<dd><code>currentFlag</code> - The flag the robot is standing on</dd>
</dl>
</li>
</ul>
<aname="getBackupPosition--">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>getBackupPosition</h4>
<pre>public <ahref="../../../../inf112/fiasko/roborally/objects/properties/Position.html"title="class in inf112.fiasko.roborally.objects.properties">Position</a> getBackupPosition()</pre>
<divclass="block">Gets the robot's backup position</div>
<pre>public void setBackupPosition(<ahref="../../../../inf112/fiasko/roborally/objects/properties/Position.html"title="class in inf112.fiasko.roborally.objects.properties">Position</a> backupPosition)</pre>
<divclass="block">Sets the backup position of the robot</div>
<dd><code>backupPosition</code> - The new backup position of the robot</dd>
</dl>
</li>
</ul>
<aname="getRobotId--">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>getRobotId</h4>
<pre>public <ahref="../../../../inf112/fiasko/roborally/objects/properties/RobotID.html"title="enum in inf112.fiasko.roborally.objects.properties">RobotID</a> getRobotId()</pre>
<divclass="block">Gets the robot ID</div>
<dl>
<dt><spanclass="returnLabel">Returns:</span></dt>
<dd>Robot ID</dd>
</dl>
</li>
</ul>
<aname="getFacingDirection--">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>getFacingDirection</h4>
<pre>public <ahref="../../../../inf112/fiasko/roborally/objects/properties/Direction.html"title="enum in inf112.fiasko.roborally.objects.properties">Direction</a> getFacingDirection()</pre>
<divclass="block">Gets the direction the robot is currently facing</div>
<pre>public void setFacingDirection(<ahref="../../../../inf112/fiasko/roborally/objects/properties/Direction.html"title="enum in inf112.fiasko.roborally.objects.properties">Direction</a> newFacingDirection)</pre>
<divclass="block">Sets the direction the robot is currently facing</div>
<dd><code>amountOfLives</code> - the new amount if lives the robot has left</dd>
</dl>
</li>
</ul>
<aname="copy--">
<!---->
</a>
<ulclass="blockListLast">
<liclass="blockList">
<h4>copy</h4>
<pre>public <ahref="../../../../inf112/fiasko/roborally/objects/Robot.html"title="class in inf112.fiasko.roborally.objects">Robot</a> copy()</pre>
<divclass="block">Makes a copy of this robot with the same properties as this robot</div>
<li><ahref="../../../../inf112/fiasko/roborally/objects/RoboRallyGame.html"title="class in inf112.fiasko.roborally.objects"><spanclass="typeNameLink">Prev Class</span></a></li>
<li><ahref="../../../../inf112/fiasko/roborally/objects/Tile.html"title="class in inf112.fiasko.roborally.objects"><spanclass="typeNameLink">Next Class</span></a></li>