2020-06-11 17:49:34 +02:00

831 lines
30 KiB
HTML

<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="cs">
<head>
<!-- Generated by javadoc (12.0.2) on Thu Jun 11 14:11:06 CEST 2020 -->
<title>Battle</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2020-06-11">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
<script type="text/javascript" src="../../../../jquery/jszip/dist/jszip.min.js"></script>
<script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script>
<!--[if IE]>
<script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script>
<![endif]-->
<script type="text/javascript" src="../../../../jquery/jquery-3.3.1.js"></script>
<script type="text/javascript" src="../../../../jquery/jquery-migrate-3.0.1.js"></script>
<script type="text/javascript" src="../../../../jquery/jquery-ui.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Battle";
}
}
catch(err) {
}
//-->
var data = {"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};
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";
var pathtoroot = "../../../../";
var useModuleDirectories = true;
loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<header role="banner">
<nav role="navigation">
<div class="fixedNav">
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a id="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../index.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">
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&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><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<ul class="navListSearch">
<li><label for="search">SEARCH:</label>
<input type="text" id="search" value="search" disabled="disabled">
<input type="reset" id="reset" value="reset" disabled="disabled">
</li>
</ul>
</div>
<a id="skip.navbar.top">
<!-- -->
</a>
<!-- ========= END OF TOP NAVBAR ========= -->
</div>
<div class="navPadding">&nbsp;</div>
<script type="text/javascript"><!--
$('.navPadding').css('padding-top', $('.fixedNav').css("height"));
//-->
</script>
</nav>
</header>
<!-- ======== START OF CLASS DATA ======== -->
<main role="main">
<div class="header">
<div class="subTitle"><span class="packageLabelInType">Package</span>&nbsp;<a href="package-summary.html">ruscz.game.gameOfProd.Battle</a></div>
<h2 title="Class Battle" class="title">Class Battle</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>ruscz.game.gameOfProd.Battle.Battle</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<pre>public class <span class="typeNameLabel">Battle</span>
extends java.lang.Object</pre>
<div class="block">Class for Battle with graphic implementation</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="field.summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<div class="memberSummary">
<table>
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Field</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>private int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#delay">delay</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private java.util.LinkedList&lt;<a href="Enemy.html" title="class in ruscz.game.gameOfProd.Battle">Enemy</a>&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#enemies">enemies</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private java.util.LinkedList&lt;<a href="Hero.html" title="class in ruscz.game.gameOfProd.Battle">Hero</a>&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#heroes">heroes</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.util.logging.Logger</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#LOG">LOG</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#playerAttack">playerAttack</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private <a href="../Sounds/SoundManager.html" title="class in ruscz.game.gameOfProd.Sounds">SoundManager</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#soundManager">soundManager</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private javax.swing.Timer</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#timer">timer</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#timerStopped">timerStopped</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private <a href="BattlePerson.html" title="class in ruscz.game.gameOfProd.Battle">BattlePerson</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#turnBelongTo">turnBelongTo</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private java.util.LinkedList&lt;<a href="BattlePerson.html" title="class in ruscz.game.gameOfProd.Battle">BattlePerson</a>&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#turnOrder">turnOrder</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private <a href="../Windows/WindowOfBattle.html" title="class in ruscz.game.gameOfProd.Windows">WindowOfBattle</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#windowOfBattle">windowOfBattle</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
</tbody>
</table>
</div>
</li>
</ul>
</section>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="constructor.summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<div class="memberSummary">
<table>
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Constructor</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(java.util.LinkedList,java.util.LinkedList,ruscz.game.gameOfProd.Windows.WindowOfBattle)">Battle</a></span>&#8203;(java.util.LinkedList&lt;<a href="Hero.html" title="class in ruscz.game.gameOfProd.Battle">Hero</a>&gt;&nbsp;heroes,
java.util.LinkedList&lt;<a href="Enemy.html" title="class in ruscz.game.gameOfProd.Battle">Enemy</a>&gt;&nbsp;enemies,
<a href="../Windows/WindowOfBattle.html" title="class in ruscz.game.gameOfProd.Windows">WindowOfBattle</a>&nbsp;window)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
</tbody>
</table>
</div>
</li>
</ul>
</section>
<!-- ========== METHOD SUMMARY =========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<div class="memberSummary">
<div role="tablist" aria-orientation="horizontal"><button role="tab" aria-selected="true" aria-controls="memberSummary_tabpanel" tabindex="0" onkeydown="switchTab(event)" id="t0" class="activeTableTab">All Methods</button><button role="tab" aria-selected="false" aria-controls="memberSummary_tabpanel" tabindex="-1" onkeydown="switchTab(event)" id="t2" class="tableTab" onclick="show(2);">Instance Methods</button><button role="tab" aria-selected="false" aria-controls="memberSummary_tabpanel" tabindex="-1" onkeydown="switchTab(event)" id="t4" class="tableTab" onclick="show(8);">Concrete Methods</button></div>
<div id="memberSummary_tabpanel" role="tabpanel">
<table aria-labelledby="t0">
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Method</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor" id="i0">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#addToTurnOrder(ruscz.game.gameOfProd.Battle.BattlePerson)">addToTurnOrder</a></span>&#8203;(<a href="BattlePerson.html" title="class in ruscz.game.gameOfProd.Battle">BattlePerson</a>&nbsp;person)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor" id="i1">
<td class="colFirst"><code>private void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#attackByHero(ruscz.game.gameOfProd.Battle.Enemy)">attackByHero</a></span>&#8203;(<a href="Enemy.html" title="class in ruscz.game.gameOfProd.Battle">Enemy</a>&nbsp;e)</code></th>
<td class="colLast">
<div class="block">Attack with animation and logic
Do delay of 2 seconds</div>
</td>
</tr>
<tr class="altColor" id="i2">
<td class="colFirst"><code>private void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#attackByMonster(ruscz.game.gameOfProd.Battle.Hero)">attackByMonster</a></span>&#8203;(<a href="Hero.html" title="class in ruscz.game.gameOfProd.Battle">Hero</a>&nbsp;e)</code></th>
<td class="colLast">
<div class="block">Attack with animation and logic
Do delay of 2 seconds</div>
</td>
</tr>
<tr class="rowColor" id="i3">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#endBattle(boolean)">endBattle</a></span>&#8203;(boolean&nbsp;b)</code></th>
<td class="colLast">
<div class="block">End battle and start cutscene of win or lose</div>
</td>
</tr>
<tr class="altColor" id="i4">
<td class="colFirst"><code>java.util.LinkedList&lt;<a href="Enemy.html" title="class in ruscz.game.gameOfProd.Battle">Enemy</a>&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getEnemies()">getEnemies</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor" id="i5">
<td class="colFirst"><code>java.util.LinkedList&lt;<a href="Hero.html" title="class in ruscz.game.gameOfProd.Battle">Hero</a>&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getHeroes()">getHeroes</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor" id="i6">
<td class="colFirst"><code>javax.swing.Timer</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getTimer()">getTimer</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor" id="i7">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#checkHealthOfEnemies()">checkHealthOfEnemies</a></span>()</code></th>
<td class="colLast">
<div class="block">Checks, if all enemies died</div>
</td>
</tr>
<tr class="altColor" id="i8">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#checkHealthOfHeroes()">checkHealthOfHeroes</a></span>()</code></th>
<td class="colLast">
<div class="block">Checks, if all heroes died</div>
</td>
</tr>
<tr class="rowColor" id="i9">
<td class="colFirst"><code>private boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#checkIfTurnOrderIsFull(java.util.LinkedList)">checkIfTurnOrderIsFull</a></span>&#8203;(java.util.LinkedList&lt;<a href="BattlePerson.html" title="class in ruscz.game.gameOfProd.Battle">BattlePerson</a>&gt;&nbsp;allBattlePerson)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor" id="i10">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isTimerStopped()">isTimerStopped</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor" id="i11">
<td class="colFirst"><code>private void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#nextTurn()">nextTurn</a></span>()</code></th>
<td class="colLast">
<div class="block">Function, which decide who will attack next</div>
</td>
</tr>
<tr class="altColor" id="i12">
<td class="colFirst"><code>private <a href="Enemy.html" title="class in ruscz.game.gameOfProd.Battle">Enemy</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#randomEnemy()">randomEnemy</a></span>()</code></th>
<td class="colLast">
<div class="block">Random enemy from list</div>
</td>
</tr>
<tr class="rowColor" id="i13">
<td class="colFirst"><code>private <a href="Hero.html" title="class in ruscz.game.gameOfProd.Battle">Hero</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#randomHero()">randomHero</a></span>()</code></th>
<td class="colLast">
<div class="block">Random hero from list</div>
</td>
</tr>
<tr class="altColor" id="i14">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#removePersonFromList(ruscz.game.gameOfProd.Battle.BattlePerson)">removePersonFromList</a></span>&#8203;(<a href="BattlePerson.html" title="class in ruscz.game.gameOfProd.Battle">BattlePerson</a>&nbsp;person)</code></th>
<td class="colLast">
<div class="block">Remove person from one of the list, if died</div>
</td>
</tr>
<tr class="rowColor" id="i15">
<td class="colFirst"><code>private void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#returnControlToPlayer()">returnControlToPlayer</a></span>()</code></th>
<td class="colLast">
<div class="block">Show all Menus and Enemy Description</div>
</td>
</tr>
<tr class="altColor" id="i16">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setDelay(int)">setDelay</a></span>&#8203;(int&nbsp;delay)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor" id="i17">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setPlayerAttack(boolean)">setPlayerAttack</a></span>&#8203;(boolean&nbsp;playerAttack)</code></th>
<td class="colLast">
<div class="block">Hide Menu and Enemy Description
Set Attack of Player</div>
</td>
</tr>
<tr class="altColor" id="i18">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setTimerStopped(boolean)">setTimerStopped</a></span>&#8203;(boolean&nbsp;timerStopped)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor" id="i19">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setTurnBelongTo(ruscz.game.gameOfProd.Battle.BattlePerson)">setTurnBelongTo</a></span>&#8203;(<a href="BattlePerson.html" title="class in ruscz.game.gameOfProd.Battle">BattlePerson</a>&nbsp;turnBelongTo)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor" id="i20">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#startBattle()">startBattle</a></span>()</code></th>
<td class="colLast">
<div class="block">Start fight by showing menu and creating Timer of battle</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<ul class="blockList">
<li class="blockList"><a id="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>
</section>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="field.detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a id="enemies">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>enemies</h4>
<pre>private final&nbsp;java.util.LinkedList&lt;<a href="Enemy.html" title="class in ruscz.game.gameOfProd.Battle">Enemy</a>&gt; enemies</pre>
</li>
</ul>
<a id="heroes">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>heroes</h4>
<pre>private final&nbsp;java.util.LinkedList&lt;<a href="Hero.html" title="class in ruscz.game.gameOfProd.Battle">Hero</a>&gt; heroes</pre>
</li>
</ul>
<a id="windowOfBattle">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>windowOfBattle</h4>
<pre>private final&nbsp;<a href="../Windows/WindowOfBattle.html" title="class in ruscz.game.gameOfProd.Windows">WindowOfBattle</a> windowOfBattle</pre>
</li>
</ul>
<a id="timer">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>timer</h4>
<pre>private&nbsp;javax.swing.Timer timer</pre>
</li>
</ul>
<a id="soundManager">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>soundManager</h4>
<pre>private final&nbsp;<a href="../Sounds/SoundManager.html" title="class in ruscz.game.gameOfProd.Sounds">SoundManager</a> soundManager</pre>
</li>
</ul>
<a id="turnBelongTo">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>turnBelongTo</h4>
<pre>private&nbsp;<a href="BattlePerson.html" title="class in ruscz.game.gameOfProd.Battle">BattlePerson</a> turnBelongTo</pre>
</li>
</ul>
<a id="turnOrder">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>turnOrder</h4>
<pre>private&nbsp;java.util.LinkedList&lt;<a href="BattlePerson.html" title="class in ruscz.game.gameOfProd.Battle">BattlePerson</a>&gt; turnOrder</pre>
</li>
</ul>
<a id="delay">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>delay</h4>
<pre>private&nbsp;int delay</pre>
</li>
</ul>
<a id="playerAttack">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>playerAttack</h4>
<pre>private&nbsp;boolean playerAttack</pre>
</li>
</ul>
<a id="timerStopped">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>timerStopped</h4>
<pre>private&nbsp;boolean timerStopped</pre>
</li>
</ul>
<a id="LOG">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>LOG</h4>
<pre>public static final&nbsp;java.util.logging.Logger LOG</pre>
</li>
</ul>
</li>
</ul>
</section>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a id="&lt;init&gt;(java.util.LinkedList,java.util.LinkedList,ruscz.game.gameOfProd.Windows.WindowOfBattle)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>Battle</h4>
<pre>public&nbsp;Battle&#8203;(java.util.LinkedList&lt;<a href="Hero.html" title="class in ruscz.game.gameOfProd.Battle">Hero</a>&gt;&nbsp;heroes,
java.util.LinkedList&lt;<a href="Enemy.html" title="class in ruscz.game.gameOfProd.Battle">Enemy</a>&gt;&nbsp;enemies,
<a href="../Windows/WindowOfBattle.html" title="class in ruscz.game.gameOfProd.Windows">WindowOfBattle</a>&nbsp;window)</pre>
</li>
</ul>
</li>
</ul>
</section>
<!-- ============ METHOD DETAIL ========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a id="setPlayerAttack(boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setPlayerAttack</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;setPlayerAttack&#8203;(boolean&nbsp;playerAttack)</pre>
<div class="block">Hide Menu and Enemy Description
Set Attack of Player</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>playerAttack</code> - true if attacks</dd>
</dl>
</li>
</ul>
<a id="addToTurnOrder(ruscz.game.gameOfProd.Battle.BattlePerson)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addToTurnOrder</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;addToTurnOrder&#8203;(<a href="BattlePerson.html" title="class in ruscz.game.gameOfProd.Battle">BattlePerson</a>&nbsp;person)</pre>
</li>
</ul>
<a id="getEnemies()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getEnemies</h4>
<pre class="methodSignature">public&nbsp;java.util.LinkedList&lt;<a href="Enemy.html" title="class in ruscz.game.gameOfProd.Battle">Enemy</a>&gt;&nbsp;getEnemies()</pre>
</li>
</ul>
<a id="getHeroes()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getHeroes</h4>
<pre class="methodSignature">public&nbsp;java.util.LinkedList&lt;<a href="Hero.html" title="class in ruscz.game.gameOfProd.Battle">Hero</a>&gt;&nbsp;getHeroes()</pre>
</li>
</ul>
<a id="checkHealthOfEnemies()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>checkHealthOfEnemies</h4>
<pre class="methodSignature">public&nbsp;boolean&nbsp;checkHealthOfEnemies()</pre>
<div class="block">Checks, if all enemies died</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>true if all dies</dd>
</dl>
</li>
</ul>
<a id="checkHealthOfHeroes()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>checkHealthOfHeroes</h4>
<pre class="methodSignature">public&nbsp;boolean&nbsp;checkHealthOfHeroes()</pre>
<div class="block">Checks, if all heroes died</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>true if all dies</dd>
</dl>
</li>
</ul>
<a id="startBattle()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>startBattle</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;startBattle()</pre>
<div class="block">Start fight by showing menu and creating Timer of battle</div>
</li>
</ul>
<a id="endBattle(boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>endBattle</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;endBattle&#8203;(boolean&nbsp;b)</pre>
<div class="block">End battle and start cutscene of win or lose</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>b</code> - true if win, false if lose</dd>
</dl>
</li>
</ul>
<a id="returnControlToPlayer()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>returnControlToPlayer</h4>
<pre class="methodSignature">private&nbsp;void&nbsp;returnControlToPlayer()</pre>
<div class="block">Show all Menus and Enemy Description</div>
</li>
</ul>
<a id="attackByHero(ruscz.game.gameOfProd.Battle.Enemy)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>attackByHero</h4>
<pre class="methodSignature">private&nbsp;void&nbsp;attackByHero&#8203;(<a href="Enemy.html" title="class in ruscz.game.gameOfProd.Battle">Enemy</a>&nbsp;e)</pre>
<div class="block">Attack with animation and logic
Do delay of 2 seconds</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>e</code> - Enemy to attack</dd>
</dl>
</li>
</ul>
<a id="nextTurn()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>nextTurn</h4>
<pre class="methodSignature">private&nbsp;void&nbsp;nextTurn()</pre>
<div class="block">Function, which decide who will attack next</div>
</li>
</ul>
<a id="attackByMonster(ruscz.game.gameOfProd.Battle.Hero)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>attackByMonster</h4>
<pre class="methodSignature">private&nbsp;void&nbsp;attackByMonster&#8203;(<a href="Hero.html" title="class in ruscz.game.gameOfProd.Battle">Hero</a>&nbsp;e)</pre>
<div class="block">Attack with animation and logic
Do delay of 2 seconds</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>e</code> - Hero to attack</dd>
</dl>
</li>
</ul>
<a id="randomEnemy()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>randomEnemy</h4>
<pre class="methodSignature">private&nbsp;<a href="Enemy.html" title="class in ruscz.game.gameOfProd.Battle">Enemy</a>&nbsp;randomEnemy()</pre>
<div class="block">Random enemy from list</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Random enemy</dd>
</dl>
</li>
</ul>
<a id="randomHero()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>randomHero</h4>
<pre class="methodSignature">private&nbsp;<a href="Hero.html" title="class in ruscz.game.gameOfProd.Battle">Hero</a>&nbsp;randomHero()</pre>
<div class="block">Random hero from list</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Random hero</dd>
</dl>
</li>
</ul>
<a id="getTimer()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTimer</h4>
<pre class="methodSignature">public&nbsp;javax.swing.Timer&nbsp;getTimer()</pre>
</li>
</ul>
<a id="setTurnBelongTo(ruscz.game.gameOfProd.Battle.BattlePerson)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setTurnBelongTo</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;setTurnBelongTo&#8203;(<a href="BattlePerson.html" title="class in ruscz.game.gameOfProd.Battle">BattlePerson</a>&nbsp;turnBelongTo)</pre>
</li>
</ul>
<a id="checkIfTurnOrderIsFull(java.util.LinkedList)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>checkIfTurnOrderIsFull</h4>
<pre class="methodSignature">private&nbsp;boolean&nbsp;checkIfTurnOrderIsFull&#8203;(java.util.LinkedList&lt;<a href="BattlePerson.html" title="class in ruscz.game.gameOfProd.Battle">BattlePerson</a>&gt;&nbsp;allBattlePerson)</pre>
</li>
</ul>
<a id="removePersonFromList(ruscz.game.gameOfProd.Battle.BattlePerson)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>removePersonFromList</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;removePersonFromList&#8203;(<a href="BattlePerson.html" title="class in ruscz.game.gameOfProd.Battle">BattlePerson</a>&nbsp;person)</pre>
<div class="block">Remove person from one of the list, if died</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>person</code> - Person to delete</dd>
</dl>
</li>
</ul>
<a id="setDelay(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setDelay</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;setDelay&#8203;(int&nbsp;delay)</pre>
</li>
</ul>
<a id="isTimerStopped()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isTimerStopped</h4>
<pre class="methodSignature">public&nbsp;boolean&nbsp;isTimerStopped()</pre>
</li>
</ul>
<a id="setTimerStopped(boolean)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>setTimerStopped</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;setTimerStopped&#8203;(boolean&nbsp;timerStopped)</pre>
</li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
</div>
</main>
<!-- ========= END OF CLASS DATA ========= -->
<footer role="contentinfo">
<nav role="navigation">
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a id="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../index.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">
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&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><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
</div>
<a id="skip.navbar.bottom">
<!-- -->
</a>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</nav>
</footer>
</body>
</html>