Fiasko/docs/javadoc/inf112/fiasko/roborally/objects/Robot.html
2020-05-03 18:14:17 +02:00

630 lines
25 KiB
HTML

<!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>Robot</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="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>
</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/RoboRallyGame.html" title="class in inf112.fiasko.roborally.objects"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../inf112/fiasko/roborally/objects/Tile.html" title="class in inf112.fiasko.roborally.objects"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?inf112/fiasko/roborally/objects/Robot.html" target="_top">Frames</a></li>
<li><a href="Robot.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses-noframe.html">All&nbsp;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:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</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 Robot" class="title">Class Robot</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>inf112.fiasko.roborally.objects.Robot</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public class <span class="typeNameLabel">Robot</span>
extends java.lang.Object</pre>
<div class="block">This class represents a robot</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">&nbsp;</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/Robot.html#Robot-inf112.fiasko.roborally.objects.properties.RobotID-inf112.fiasko.roborally.objects.properties.Position-">Robot</a></span>(<a href="../../../../inf112/fiasko/roborally/objects/properties/RobotID.html" title="enum in inf112.fiasko.roborally.objects.properties">RobotID</a>&nbsp;robotId,
<a href="../../../../inf112/fiasko/roborally/objects/properties/Position.html" title="class in inf112.fiasko.roborally.objects.properties">Position</a>&nbsp;spawnPosition)</code>
<div class="block">Instantiates a new robot</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">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</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><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/Robot.html#copy--">copy</a></span>()</code>
<div class="block">Makes a copy of this robot with the same properties as this robot</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/objects/Robot.html#getAmountOfLives--">getAmountOfLives</a></span>()</code>
<div class="block">Gets the amount of life a robot has left.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<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/Robot.html#getBackupPosition--">getBackupPosition</a></span>()</code>
<div class="block">Gets the robot's backup position</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/objects/Robot.html#getDamageTaken--">getDamageTaken</a></span>()</code>
<div class="block">Gets the damage the robot has taken</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code><a href="../../../../inf112/fiasko/roborally/objects/properties/Direction.html" title="enum in inf112.fiasko.roborally.objects.properties">Direction</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/objects/Robot.html#getFacingDirection--">getFacingDirection</a></span>()</code>
<div class="block">Gets the direction the robot is currently facing</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/objects/Robot.html#getLastFlagVisited--">getLastFlagVisited</a></span>()</code>
<div class="block">Gets the last flag the robot visited</div>
</td>
</tr>
<tr id="i6" class="altColor">
<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/Robot.html#getPosition--">getPosition</a></span>()</code>
<div class="block">Gets the robot's current position on the board</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<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/Robot.html#getRobotId--">getRobotId</a></span>()</code>
<div class="block">Gets the robot ID</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/objects/Robot.html#hasTouchedFlagThisTurn--">hasTouchedFlagThisTurn</a></span>()</code>
<div class="block">True if the robot has touched a flag in the current turn</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>java.lang.Boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/objects/Robot.html#isInPowerDown--">isInPowerDown</a></span>()</code>
<div class="block">Gets the robot's power-down status</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/objects/Robot.html#setAmountOfLives-int-">setAmountOfLives</a></span>(int&nbsp;amountOfLives)</code>
<div class="block">Sets the amount if life the robot has left</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/objects/Robot.html#setBackupPosition-inf112.fiasko.roborally.objects.properties.Position-">setBackupPosition</a></span>(<a href="../../../../inf112/fiasko/roborally/objects/properties/Position.html" title="class in inf112.fiasko.roborally.objects.properties">Position</a>&nbsp;backupPosition)</code>
<div class="block">Sets the backup position of the robot</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/objects/Robot.html#setDamageTaken-int-">setDamageTaken</a></span>(int&nbsp;damage)</code>
<div class="block">Sets the robot's taken damage to a given amount</div>
</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/objects/Robot.html#setFacingDirection-inf112.fiasko.roborally.objects.properties.Direction-">setFacingDirection</a></span>(<a href="../../../../inf112/fiasko/roborally/objects/properties/Direction.html" title="enum in inf112.fiasko.roborally.objects.properties">Direction</a>&nbsp;newFacingDirection)</code>
<div class="block">Sets the direction the robot is currently facing</div>
</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/objects/Robot.html#setHasTouchedFlagThisTurn-boolean-">setHasTouchedFlagThisTurn</a></span>(boolean&nbsp;hasTouchedFlagThisTurn)</code>
<div class="block">Sets the boolean value to true if the robot touches a flag during a turn,
and false at the end of each turn.</div>
</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/objects/Robot.html#setLastFlagVisited-int-">setLastFlagVisited</a></span>(int&nbsp;currentFlag)</code>
<div class="block">Set the robot's last visited flag to the new flag and places its backup on the flag's position</div>
</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/objects/Robot.html#setPosition-inf112.fiasko.roborally.objects.properties.Position-">setPosition</a></span>(<a href="../../../../inf112/fiasko/roborally/objects/properties/Position.html" title="class in inf112.fiasko.roborally.objects.properties">Position</a>&nbsp;newPosition)</code>
<div class="block">Sets the robot's current position on the board</div>
</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../inf112/fiasko/roborally/objects/Robot.html#setPowerDown-java.lang.Boolean-">setPowerDown</a></span>(java.lang.Boolean&nbsp;powerDownStatus)</code>
<div class="block">Sets power-down status</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&nbsp;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="Robot-inf112.fiasko.roborally.objects.properties.RobotID-inf112.fiasko.roborally.objects.properties.Position-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>Robot</h4>
<pre>public&nbsp;Robot(<a href="../../../../inf112/fiasko/roborally/objects/properties/RobotID.html" title="enum in inf112.fiasko.roborally.objects.properties">RobotID</a>&nbsp;robotId,
<a href="../../../../inf112/fiasko/roborally/objects/properties/Position.html" title="class in inf112.fiasko.roborally.objects.properties">Position</a>&nbsp;spawnPosition)</pre>
<div class="block">Instantiates a new robot</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>robotId</code> - The global identifier of the robot</dd>
<dd><code>spawnPosition</code> - The starting position of the robot</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="hasTouchedFlagThisTurn--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hasTouchedFlagThisTurn</h4>
<pre>public&nbsp;boolean&nbsp;hasTouchedFlagThisTurn()</pre>
<div class="block">True if the robot has touched a flag in the current turn</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a boolean</dd>
</dl>
</li>
</ul>
<a name="setHasTouchedFlagThisTurn-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setHasTouchedFlagThisTurn</h4>
<pre>public&nbsp;void&nbsp;setHasTouchedFlagThisTurn(boolean&nbsp;hasTouchedFlagThisTurn)</pre>
<div class="block">Sets the boolean value to true if the robot touches a flag during a turn,
and false at the end of each turn.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>hasTouchedFlagThisTurn</code> - the boolean value to be set.</dd>
</dl>
</li>
</ul>
<a name="getDamageTaken--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDamageTaken</h4>
<pre>public&nbsp;int&nbsp;getDamageTaken()</pre>
<div class="block">Gets the damage the robot has taken</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The amount of damage the robot has received</dd>
</dl>
</li>
</ul>
<a name="setDamageTaken-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setDamageTaken</h4>
<pre>public&nbsp;void&nbsp;setDamageTaken(int&nbsp;damage)</pre>
<div class="block">Sets the robot's taken damage to a given amount</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>damage</code> - The amount of damage the robot has received</dd>
</dl>
</li>
</ul>
<a name="getPosition--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPosition</h4>
<pre>public&nbsp;<a href="../../../../inf112/fiasko/roborally/objects/properties/Position.html" title="class in inf112.fiasko.roborally.objects.properties">Position</a>&nbsp;getPosition()</pre>
<div class="block">Gets the robot's current position on the board</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The robot's current position</dd>
</dl>
</li>
</ul>
<a name="setPosition-inf112.fiasko.roborally.objects.properties.Position-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setPosition</h4>
<pre>public&nbsp;void&nbsp;setPosition(<a href="../../../../inf112/fiasko/roborally/objects/properties/Position.html" title="class in inf112.fiasko.roborally.objects.properties">Position</a>&nbsp;newPosition)</pre>
<div class="block">Sets the robot's current position on the board</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>newPosition</code> - The new position of the robot</dd>
</dl>
</li>
</ul>
<a name="setPowerDown-java.lang.Boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setPowerDown</h4>
<pre>public&nbsp;void&nbsp;setPowerDown(java.lang.Boolean&nbsp;powerDownStatus)</pre>
<div class="block">Sets power-down status</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>powerDownStatus</code> - Whether the robot is currently in power-down</dd>
</dl>
</li>
</ul>
<a name="isInPowerDown--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isInPowerDown</h4>
<pre>public&nbsp;java.lang.Boolean&nbsp;isInPowerDown()</pre>
<div class="block">Gets the robot's power-down status</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Whether the robot is currently in power-down</dd>
</dl>
</li>
</ul>
<a name="getLastFlagVisited--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getLastFlagVisited</h4>
<pre>public&nbsp;int&nbsp;getLastFlagVisited()</pre>
<div class="block">Gets the last flag the robot visited</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Last visited flag</dd>
</dl>
</li>
</ul>
<a name="setLastFlagVisited-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setLastFlagVisited</h4>
<pre>public&nbsp;void&nbsp;setLastFlagVisited(int&nbsp;currentFlag)</pre>
<div class="block">Set the robot's last visited flag to the new flag and places its backup on the flag's position</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>currentFlag</code> - The flag the robot is standing on</dd>
</dl>
</li>
</ul>
<a name="getBackupPosition--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getBackupPosition</h4>
<pre>public&nbsp;<a href="../../../../inf112/fiasko/roborally/objects/properties/Position.html" title="class in inf112.fiasko.roborally.objects.properties">Position</a>&nbsp;getBackupPosition()</pre>
<div class="block">Gets the robot's backup position</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The robot's backup position</dd>
</dl>
</li>
</ul>
<a name="setBackupPosition-inf112.fiasko.roborally.objects.properties.Position-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setBackupPosition</h4>
<pre>public&nbsp;void&nbsp;setBackupPosition(<a href="../../../../inf112/fiasko/roborally/objects/properties/Position.html" title="class in inf112.fiasko.roborally.objects.properties">Position</a>&nbsp;backupPosition)</pre>
<div class="block">Sets the backup position of the robot</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>backupPosition</code> - The new backup position of the robot</dd>
</dl>
</li>
</ul>
<a name="getRobotId--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getRobotId</h4>
<pre>public&nbsp;<a href="../../../../inf112/fiasko/roborally/objects/properties/RobotID.html" title="enum in inf112.fiasko.roborally.objects.properties">RobotID</a>&nbsp;getRobotId()</pre>
<div class="block">Gets the robot ID</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Robot ID</dd>
</dl>
</li>
</ul>
<a name="getFacingDirection--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFacingDirection</h4>
<pre>public&nbsp;<a href="../../../../inf112/fiasko/roborally/objects/properties/Direction.html" title="enum in inf112.fiasko.roborally.objects.properties">Direction</a>&nbsp;getFacingDirection()</pre>
<div class="block">Gets the direction the robot is currently facing</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The direction the robot is facing</dd>
</dl>
</li>
</ul>
<a name="setFacingDirection-inf112.fiasko.roborally.objects.properties.Direction-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setFacingDirection</h4>
<pre>public&nbsp;void&nbsp;setFacingDirection(<a href="../../../../inf112/fiasko/roborally/objects/properties/Direction.html" title="enum in inf112.fiasko.roborally.objects.properties">Direction</a>&nbsp;newFacingDirection)</pre>
<div class="block">Sets the direction the robot is currently facing</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>newFacingDirection</code> - The new direction the robot should be facing</dd>
</dl>
</li>
</ul>
<a name="getAmountOfLives--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getAmountOfLives</h4>
<pre>public&nbsp;int&nbsp;getAmountOfLives()</pre>
<div class="block">Gets the amount of life a robot has left.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>amount of life left</dd>
</dl>
</li>
</ul>
<a name="setAmountOfLives-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setAmountOfLives</h4>
<pre>public&nbsp;void&nbsp;setAmountOfLives(int&nbsp;amountOfLives)</pre>
<div class="block">Sets the amount if life the robot has left</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>amountOfLives</code> - the new amount if lives the robot has left</dd>
</dl>
</li>
</ul>
<a name="copy--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>copy</h4>
<pre>public&nbsp;<a href="../../../../inf112/fiasko/roborally/objects/Robot.html" title="class in inf112.fiasko.roborally.objects">Robot</a>&nbsp;copy()</pre>
<div class="block">Makes a copy of this robot with the same properties as this robot</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>A copy of this robot</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/RoboRallyGame.html" title="class in inf112.fiasko.roborally.objects"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../inf112/fiasko/roborally/objects/Tile.html" title="class in inf112.fiasko.roborally.objects"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?inf112/fiasko/roborally/objects/Robot.html" target="_top">Frames</a></li>
<li><a href="Robot.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses-noframe.html">All&nbsp;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:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>