<divclass="block">Check if a figure is usable</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/ArrayList.html"title="class or interface in java.util"class="external-link">ArrayList</a><<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Integer.html"title="class or interface in java.lang"class="external-link">Integer</a>></code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><ahref="#main(java.lang.String%5B%5D)"class="member-name-link">main</a><wbr>(<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a>[] args)</code></div>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/ArrayList.html"title="class or interface in java.util"class="external-link">ArrayList</a><<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Integer.html"title="class or interface in java.lang"class="external-link">Integer</a>></span> <spanclass="element-name">getUsableFigures</span><wbr><spanclass="parameters">(int dice,
<ahref="Player.html"title="class in Unnamed Package">Player</a> p,
<ahref="Game.html"title="class in Unnamed Package">Game</a> g)</span></div>
<divclass="block">Get List of all usable Figures in the current Play for one Player</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>dice</code> - Value of dice got from rolldice()</dd>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#checkFigureInBase(java.util.ArrayList)"class="member-name-link">checkFigureInBase</a><wbr>(<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/ArrayList.html"title="class or interface in java.util"class="external-link">ArrayList</a><<ahref="Figure.html"title="class in Unnamed Package">Figure</a>> figures)</code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#checkGameWin(java.util.ArrayList)"class="member-name-link">checkGameWin</a><wbr>(<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/ArrayList.html"title="class or interface in java.util"class="external-link">ArrayList</a><<ahref="Figure.html"title="class in Unnamed Package">Figure</a>> figures)</code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#choose(java.util.ArrayList)"class="member-name-link">choose</a><wbr>(<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/ArrayList.html"title="class or interface in java.util"class="external-link">ArrayList</a><<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Integer.html"title="class or interface in java.lang"class="external-link">Integer</a>> usableFigures)</code></div>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type">int</span> <spanclass="element-name">checkFigureInBase</span><wbr><spanclass="parameters">(<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/ArrayList.html"title="class or interface in java.util"class="external-link">ArrayList</a><<ahref="Figure.html"title="class in Unnamed Package">Figure</a>> figures)</span></div>
<divclass="block">Checks if the Player has figures in the base (off gameboard)</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>figures</code> - figures of the current Player</dd>
<dt>Returns:</dt>
<dd>true if there is at least one figure in the base (of gameboard)</dd>
<dd>true if there is at least one figure in the base (off gameboard)</dd>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type">int</span> <spanclass="element-name">choose</span><wbr><spanclass="parameters">(<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/ArrayList.html"title="class or interface in java.util"class="external-link">ArrayList</a><<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Integer.html"title="class or interface in java.lang"class="external-link">Integer</a>> usableFigures)</span></div>
<divclass="block">Get the user input on witch figure the user wants to move</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>usableFigures</code> - list of usable Figures to choose from</dd>
<dt><ahref="../Game.html#checkDice(int,Player,int)"class="member-name-link">checkDice(int, Player, int)</a> - Method in class <ahref="../Game.html"title="class in Unnamed Package">Game</a></dt>
<dd> </dd>
<dd>
<divclass="block">Check if the Player is allowed to roll the dice again</div>
</dd>
<dt><ahref="../Game.html#checkFieldClear(int,Player,Game)"class="member-name-link">checkFieldClear(int, Player, Game)</a> - Method in class <ahref="../Game.html"title="class in Unnamed Package">Game</a></dt>
<dd> </dd>
<dd>
<divclass="block">Check if a target field is free or occupied by another figure</div>
</dd>
<dt><ahref="../Player.html#checkFigureInBase(java.util.ArrayList)"class="member-name-link">checkFigureInBase(ArrayList<Figure>)</a> - Method in class <ahref="../Player.html"title="class in Unnamed Package">Player</a></dt>
<dd> </dd>
<dd>
<divclass="block">Checks if the Player has figures in the base (off gameboard)</div>
</dd>
<dt><ahref="../Player.html#checkGameWin(java.util.ArrayList)"class="member-name-link">checkGameWin(ArrayList<Figure>)</a> - Method in class <ahref="../Player.html"title="class in Unnamed Package">Player</a></dt>
<dd> </dd>
<dt><ahref="../Player.html#choose(java.util.ArrayList)"class="member-name-link">choose(ArrayList<Integer>)</a> - Method in class <ahref="../Player.html"title="class in Unnamed Package">Player</a></dt>
<dd> </dd>
<dd>
<divclass="block">Get the user input on witch figure the user wants to move</div>
<dt><ahref="../Figure.html#%3Cinit%3E()"class="member-name-link">Figure()</a> - Constructor for class <ahref="../Figure.html"title="class in Unnamed Package">Figure</a></dt>
<dd> </dd>
<dt><ahref="../Game.html#figureIsUsable(int,int,Player,Game)"class="member-name-link">figureIsUsable(int, int, Player, Game)</a> - Method in class <ahref="../Game.html"title="class in Unnamed Package">Game</a></dt>
<dd> </dd>
<dd>
<divclass="block">Check if a figure is usable</div>
<dt><ahref="../Figure.html#getPosition()"class="member-name-link">getPosition()</a> - Method in class <ahref="../Figure.html"title="class in Unnamed Package">Figure</a></dt>
<dd> </dd>
<dt><ahref="../Game.html#getUsableFigures(int,Player,Game)"class="member-name-link">getUsableFigures(int, Player, Game)</a> - Method in class <ahref="../Game.html"title="class in Unnamed Package">Game</a></dt>
<dd> </dd>
<dd>
<divclass="block">Get List of all usable Figures in the current Play for one Player</div>
<dt><ahref="../Game.html#setFigure(int,int,Player,Game)"class="member-name-link">setFigure(int, int, Player, Game)</a> - Method in class <ahref="../Game.html"title="class in Unnamed Package">Game</a></dt>
<dd> </dd>
<dd>
<divclass="block">Set a figure on a field according</div>
</dd>
<dt><ahref="../Figure.html#setPosition(int)"class="member-name-link">setPosition(int)</a> - Method in class <ahref="../Figure.html"title="class in Unnamed Package">Figure</a></dt>