1422 lines
57 KiB
HTML
1422 lines
57 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>Map</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="Map";
|
|
}
|
|
}
|
|
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":9,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":9,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10,"i35":10,"i36":10,"i37":10,"i38":10,"i39":10,"i40":10,"i41":10,"i42":10,"i43":10,"i44":10,"i45":10,"i46":9,"i47":9,"i48":10,"i49":10,"i50":10,"i51":10,"i52":10};
|
|
var tabs = {65535:["t0","All Methods"],1:["t1","Static 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: </li>
|
|
<li>Nested | </li>
|
|
<li><a href="#field.summary">Field</a> | </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><a href="#field.detail">Field</a> | </li>
|
|
<li><a href="#constructor.detail">Constr</a> | </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"> </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> <a href="package-summary.html">ruscz.game.gameOfProd.Map</a></div>
|
|
<h2 title="Class Map" class="title">Class Map</h2>
|
|
</div>
|
|
<div class="contentContainer">
|
|
<ul class="inheritance">
|
|
<li>java.lang.Object</li>
|
|
<li>
|
|
<ul class="inheritance">
|
|
<li>ruscz.game.gameOfProd.Map.Map</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<div class="description">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<hr>
|
|
<pre>public class <span class="typeNameLabel">Map</span>
|
|
extends java.lang.Object</pre>
|
|
<div class="block">This class hold all information about map that is loaded into application</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"> </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 java.util.LinkedList<<a href="../Cells/Block.html" title="class in ruscz.game.gameOfProd.Cells">Block</a>></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#block">block</a></span></code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>private int[]</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#canvasSize">canvasSize</a></span></code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>private java.util.LinkedList<<a href="../Cells/DoorCell.html" title="class in ruscz.game.gameOfProd.Cells">DoorCell</a>></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#doorCells">doorCells</a></span></code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>private java.util.LinkedList<<a href="../Cells/ChestCell.html" title="class in ruscz.game.gameOfProd.Cells">ChestCell</a>></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#chestCells">chestCells</a></span></code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>private int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#idExit">idExit</a></span></code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>private <a href="../Image/ImageCell.html" title="class in ruscz.game.gameOfProd.Image">ImageCell</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#imageCell">imageCell</a></span></code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>private java.util.LinkedList<<a href="../Cells/InteractionCell.html" title="class in ruscz.game.gameOfProd.Cells">InteractionCell</a>></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#interactionCells">interactionCells</a></span></code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>private <a href="../Cells/TypeOfCell.html" title="enum in ruscz.game.gameOfProd.Cells">TypeOfCell</a>[][]</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#mapArray">mapArray</a></span></code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>private static java.lang.String</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#mapWithSpawn">mapWithSpawn</a></span></code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>private java.util.LinkedList<<a href="../Cells/EventMoveToCell.html" title="class in ruscz.game.gameOfProd.Cells">EventMoveToCell</a>></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#moveToCells">moveToCells</a></span></code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>private java.lang.String</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#name">name</a></span></code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>private java.util.LinkedList<<a href="../Cells/Npc.html" title="class in ruscz.game.gameOfProd.Cells">Npc</a>></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#npcs">npcs</a></span></code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>private <a href="../Cells/Person.html" title="class in ruscz.game.gameOfProd.Cells">Person</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#person">person</a></span></code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>private static java.util.Scanner</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#scanner">scanner</a></span></code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<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"> </td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>private java.util.LinkedList<<a href="../Cells/TriggerCell.html" title="class in ruscz.game.gameOfProd.Cells">TriggerCell</a>></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#triggerCells">triggerCells</a></span></code></th>
|
|
<td class="colLast"> </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"> </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(ruscz.game.gameOfProd.Cells.TypeOfCell%5B%5D%5B%5D)">Map</a></span>​(<a href="../Cells/TypeOfCell.html" title="enum in ruscz.game.gameOfProd.Cells">TypeOfCell</a>[][] mapArray)</code></th>
|
|
<td class="colLast"> </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="t1" class="tableTab" onclick="show(1);">Static 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="#addInteractionEvent(ruscz.game.gameOfProd.Cells.DoorCell)">addInteractionEvent</a></span>​(<a href="../Cells/DoorCell.html" title="class in ruscz.game.gameOfProd.Cells">DoorCell</a> doorCell)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Updates map's cell matrix and adds cell to corresponding list</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor" id="i1">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#addInteractionEvent(ruscz.game.gameOfProd.Cells.ChestCell)">addInteractionEvent</a></span>​(<a href="../Cells/ChestCell.html" title="class in ruscz.game.gameOfProd.Cells">ChestCell</a> chestCell)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Updates map's cell matrix and adds cell to corresponding list</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor" id="i2">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#addInteractionEvent(ruscz.game.gameOfProd.Cells.InteractionCell)">addInteractionEvent</a></span>​(<a href="../Cells/InteractionCell.html" title="class in ruscz.game.gameOfProd.Cells">InteractionCell</a> interactionCell)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Updates map's cell matrix and adds cell to corresponding list</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="#addInteractionEvent(ruscz.game.gameOfProd.Cells.TriggerCell)">addInteractionEvent</a></span>​(<a href="../Cells/TriggerCell.html" title="class in ruscz.game.gameOfProd.Cells">TriggerCell</a> triggerCell)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Updates map's cell matrix and adds cell to corresponding list</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor" id="i4">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#addMoveToEvent(ruscz.game.gameOfProd.Cells.EventMoveToCell)">addMoveToEvent</a></span>​(<a href="../Cells/EventMoveToCell.html" title="class in ruscz.game.gameOfProd.Cells">EventMoveToCell</a> moveToCell)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Updates map's cell matrix and adds cell to corresponding list</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor" id="i5">
|
|
<td class="colFirst"><code>int[]</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#directionSightSwitch(int,int,int)">directionSightSwitch</a></span>​(int x,
|
|
int y,
|
|
int directionSight)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Translates direction of sight into new coords</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor" id="i6">
|
|
<td class="colFirst"><code><a href="../Cells/Block.html" title="class in ruscz.game.gameOfProd.Cells">Block</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#findBlockByXY(int,int)">findBlockByXY</a></span>​(int x,
|
|
int y)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="rowColor" id="i7">
|
|
<td class="colFirst"><code><a href="../Cells/Cell.html" title="class in ruscz.game.gameOfProd.Cells">Cell</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#findCellByXY(int,int)">findCellByXY</a></span>​(int x,
|
|
int y)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="altColor" id="i8">
|
|
<td class="colFirst"><code><a href="../Cells/DoorCell.html" title="class in ruscz.game.gameOfProd.Cells">DoorCell</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#findDoorByXY(int,int)">findDoorByXY</a></span>​(int x,
|
|
int y)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="rowColor" id="i9">
|
|
<td class="colFirst"><code><a href="../Cells/DoorCell.html" title="class in ruscz.game.gameOfProd.Cells">DoorCell</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#findDoorByXY(int,int,int)">findDoorByXY</a></span>​(int x,
|
|
int y,
|
|
int directionSight)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="altColor" id="i10">
|
|
<td class="colFirst"><code><a href="../Cells/EventMoveToCell.html" title="class in ruscz.game.gameOfProd.Cells">EventMoveToCell</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#findEventByXY(int,int)">findEventByXY</a></span>​(int x,
|
|
int y)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="rowColor" id="i11">
|
|
<td class="colFirst"><code><a href="../Cells/ChestCell.html" title="class in ruscz.game.gameOfProd.Cells">ChestCell</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#findChestByXY(int,int)">findChestByXY</a></span>​(int x,
|
|
int y)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="altColor" id="i12">
|
|
<td class="colFirst"><code><a href="../Cells/ChestCell.html" title="class in ruscz.game.gameOfProd.Cells">ChestCell</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#findChestByXY(int,int,int)">findChestByXY</a></span>​(int x,
|
|
int y,
|
|
int directionSight)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="rowColor" id="i13">
|
|
<td class="colFirst"><code><a href="../Cells/InteractionCell.html" title="class in ruscz.game.gameOfProd.Cells">InteractionCell</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#findInteractionByXY(int,int)">findInteractionByXY</a></span>​(int x,
|
|
int y)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="altColor" id="i14">
|
|
<td class="colFirst"><code><a href="../Cells/InteractionCell.html" title="class in ruscz.game.gameOfProd.Cells">InteractionCell</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#findInteractionByXY(int,int,int)">findInteractionByXY</a></span>​(int x,
|
|
int y,
|
|
int directionSight)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="rowColor" id="i15">
|
|
<td class="colFirst"><code>static <a href="Map.html" title="class in ruscz.game.gameOfProd.Map">Map</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#findMapByName(java.lang.String,ruscz.game.gameOfProd.Windows.WindowOfFreeMove)">findMapByName</a></span>​(java.lang.String nameOfMap,
|
|
<a href="../Windows/WindowOfFreeMove.html" title="class in ruscz.game.gameOfProd.Windows">WindowOfFreeMove</a> window)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Finds map by name in a list of loaded maps</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor" id="i16">
|
|
<td class="colFirst"><code><a href="../Cells/EventMoveToCell.html" title="class in ruscz.game.gameOfProd.Cells">EventMoveToCell</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#findMoveToByXY(int,int)">findMoveToByXY</a></span>​(int x,
|
|
int y)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="rowColor" id="i17">
|
|
<td class="colFirst"><code><a href="../Cells/Npc.html" title="class in ruscz.game.gameOfProd.Cells">Npc</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#findNpcByName(java.lang.String)">findNpcByName</a></span>​(java.lang.String name)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="altColor" id="i18">
|
|
<td class="colFirst"><code><a href="../Cells/TriggerCell.html" title="class in ruscz.game.gameOfProd.Cells">TriggerCell</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#findTriggerByXY(int,int)">findTriggerByXY</a></span>​(int x,
|
|
int y)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="rowColor" id="i19">
|
|
<td class="colFirst"><code>java.util.LinkedList<<a href="../Cells/Block.html" title="class in ruscz.game.gameOfProd.Cells">Block</a>></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getBlocks()">getBlocks</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="altColor" id="i20">
|
|
<td class="colFirst"><code>int[]</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getCanvasSize()">getCanvasSize</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="rowColor" id="i21">
|
|
<td class="colFirst"><code>java.util.LinkedList<<a href="../Cells/DoorCell.html" title="class in ruscz.game.gameOfProd.Cells">DoorCell</a>></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getDoorCells()">getDoorCells</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="altColor" id="i22">
|
|
<td class="colFirst"><code>java.util.LinkedList<<a href="../Cells/ChestCell.html" title="class in ruscz.game.gameOfProd.Cells">ChestCell</a>></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getChestCells()">getChestCells</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="rowColor" id="i23">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getIdExit()">getIdExit</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="altColor" id="i24">
|
|
<td class="colFirst"><code><a href="../Image/ImageCell.html" title="class in ruscz.game.gameOfProd.Image">ImageCell</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getImageCell()">getImageCell</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="rowColor" id="i25">
|
|
<td class="colFirst"><code>java.util.LinkedList<<a href="../Cells/InteractionCell.html" title="class in ruscz.game.gameOfProd.Cells">InteractionCell</a>></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getInteractionEventCells()">getInteractionEventCells</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="altColor" id="i26">
|
|
<td class="colFirst"><code><a href="../Cells/TypeOfCell.html" title="enum in ruscz.game.gameOfProd.Cells">TypeOfCell</a>[][]</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getMapArray()">getMapArray</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="rowColor" id="i27">
|
|
<td class="colFirst"><code>static java.lang.String</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getMapWithSpawn()">getMapWithSpawn</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="altColor" id="i28">
|
|
<td class="colFirst"><code>java.util.LinkedList<<a href="../Cells/EventMoveToCell.html" title="class in ruscz.game.gameOfProd.Cells">EventMoveToCell</a>></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getMoveToCells()">getMoveToCells</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="rowColor" id="i29">
|
|
<td class="colFirst"><code>java.lang.String</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getName()">getName</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="altColor" id="i30">
|
|
<td class="colFirst"><code>java.util.LinkedList<<a href="../Cells/Npc.html" title="class in ruscz.game.gameOfProd.Cells">Npc</a>></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getNpcs()">getNpcs</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="rowColor" id="i31">
|
|
<td class="colFirst"><code><a href="../Cells/Person.html" title="class in ruscz.game.gameOfProd.Cells">Person</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getPerson()">getPerson</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="altColor" id="i32">
|
|
<td class="colFirst"><code><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="#getSoundManager()">getSoundManager</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="rowColor" id="i33">
|
|
<td class="colFirst"><code>int[]</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getSpawnPoint()">getSpawnPoint</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="altColor" id="i34">
|
|
<td class="colFirst"><code>java.util.LinkedList<<a href="../Cells/TriggerCell.html" title="class in ruscz.game.gameOfProd.Cells">TriggerCell</a>></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getTriggerCells()">getTriggerCells</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="rowColor" id="i35">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isActiveChest(int,int)">isActiveChest</a></span>​(int x,
|
|
int y)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="altColor" id="i36">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isActiveTriggerCell(int,int)">isActiveTriggerCell</a></span>​(int x,
|
|
int y)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="rowColor" id="i37">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isBusyCell(int,int)">isBusyCell</a></span>​(int x,
|
|
int y)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="altColor" id="i38">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isBusyCell(int,int,boolean)">isBusyCell</a></span>​(int x,
|
|
int y,
|
|
boolean half)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="rowColor" id="i39">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isCellMoveTo(int,int)">isCellMoveTo</a></span>​(int x,
|
|
int y)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="altColor" id="i40">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isClosedDoor(int,int)">isClosedDoor</a></span>​(int x,
|
|
int y)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="rowColor" id="i41">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isDoor(int,int)">isDoor</a></span>​(int x,
|
|
int y)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="altColor" id="i42">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isChest(int,int)">isChest</a></span>​(int x,
|
|
int y)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="rowColor" id="i43">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isInteractionCell(int,int)">isInteractionCell</a></span>​(int x,
|
|
int y)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="altColor" id="i44">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isTriggerCell(int,int)">isTriggerCell</a></span>​(int x,
|
|
int y)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="rowColor" id="i45">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#linkMaps(ruscz.game.gameOfProd.Map.Map,ruscz.game.gameOfProd.Windows.WindowOfFreeMove)">linkMaps</a></span>​(<a href="Map.html" title="class in ruscz.game.gameOfProd.Map">Map</a> map,
|
|
<a href="../Windows/WindowOfFreeMove.html" title="class in ruscz.game.gameOfProd.Windows">WindowOfFreeMove</a> window)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Parses MOVETO and DOORTO cells, which link different maps together</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor" id="i46">
|
|
<td class="colFirst"><code>static void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#loadMap(ruscz.game.gameOfProd.Map.Map,java.lang.String,java.lang.String%5B%5D,int,ruscz.game.gameOfProd.Windows.WindowOfFreeMove)">loadMap</a></span>​(<a href="Map.html" title="class in ruscz.game.gameOfProd.Map">Map</a> map,
|
|
java.lang.String data,
|
|
java.lang.String[] size,
|
|
int y,
|
|
<a href="../Windows/WindowOfFreeMove.html" title="class in ruscz.game.gameOfProd.Windows">WindowOfFreeMove</a> window)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Parses line of text into corresponding cells with attributes and populates corresponding lists wit them</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor" id="i47">
|
|
<td class="colFirst"><code>static <a href="Map.html" title="class in ruscz.game.gameOfProd.Map">Map</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#loadMapFromFile(java.lang.String,ruscz.game.gameOfProd.Windows.WindowOfFreeMove)">loadMapFromFile</a></span>​(java.lang.String name,
|
|
<a href="../Windows/WindowOfFreeMove.html" title="class in ruscz.game.gameOfProd.Windows">WindowOfFreeMove</a> window)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Creates map and prepares all fields, then passes map on loadMap</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor" id="i48">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setCanvasSize(int%5B%5D)">setCanvasSize</a></span>​(int[] size)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="rowColor" id="i49">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setIdExit(int)">setIdExit</a></span>​(int id)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="altColor" id="i50">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setName(java.lang.String)">setName</a></span>​(java.lang.String name)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="rowColor" id="i51">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setNpcs(ruscz.game.gameOfProd.Cells.Npc)">setNpcs</a></span>​(<a href="../Cells/Npc.html" title="class in ruscz.game.gameOfProd.Cells">Npc</a> npc)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr class="altColor" id="i52">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setSpawnPoint(int,int)">setSpawnPoint</a></span>​(int x,
|
|
int y)</code></th>
|
|
<td class="colLast"> </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 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="name">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>name</h4>
|
|
<pre>private java.lang.String name</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="mapArray">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>mapArray</h4>
|
|
<pre>private final <a href="../Cells/TypeOfCell.html" title="enum in ruscz.game.gameOfProd.Cells">TypeOfCell</a>[][] mapArray</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="person">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>person</h4>
|
|
<pre>private final <a href="../Cells/Person.html" title="class in ruscz.game.gameOfProd.Cells">Person</a> person</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="moveToCells">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>moveToCells</h4>
|
|
<pre>private final java.util.LinkedList<<a href="../Cells/EventMoveToCell.html" title="class in ruscz.game.gameOfProd.Cells">EventMoveToCell</a>> moveToCells</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="block">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>block</h4>
|
|
<pre>private final java.util.LinkedList<<a href="../Cells/Block.html" title="class in ruscz.game.gameOfProd.Cells">Block</a>> block</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="interactionCells">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>interactionCells</h4>
|
|
<pre>private final java.util.LinkedList<<a href="../Cells/InteractionCell.html" title="class in ruscz.game.gameOfProd.Cells">InteractionCell</a>> interactionCells</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="triggerCells">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>triggerCells</h4>
|
|
<pre>private final java.util.LinkedList<<a href="../Cells/TriggerCell.html" title="class in ruscz.game.gameOfProd.Cells">TriggerCell</a>> triggerCells</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="doorCells">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>doorCells</h4>
|
|
<pre>private final java.util.LinkedList<<a href="../Cells/DoorCell.html" title="class in ruscz.game.gameOfProd.Cells">DoorCell</a>> doorCells</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="chestCells">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>chestCells</h4>
|
|
<pre>private final java.util.LinkedList<<a href="../Cells/ChestCell.html" title="class in ruscz.game.gameOfProd.Cells">ChestCell</a>> chestCells</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="npcs">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>npcs</h4>
|
|
<pre>private java.util.LinkedList<<a href="../Cells/Npc.html" title="class in ruscz.game.gameOfProd.Cells">Npc</a>> npcs</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="idExit">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>idExit</h4>
|
|
<pre>private int idExit</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="imageCell">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>imageCell</h4>
|
|
<pre>private final <a href="../Image/ImageCell.html" title="class in ruscz.game.gameOfProd.Image">ImageCell</a> imageCell</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="canvasSize">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>canvasSize</h4>
|
|
<pre>private int[] canvasSize</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="soundManager">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>soundManager</h4>
|
|
<pre>private final <a href="../Sounds/SoundManager.html" title="class in ruscz.game.gameOfProd.Sounds">SoundManager</a> soundManager</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="scanner">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>scanner</h4>
|
|
<pre>private static java.util.Scanner scanner</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="mapWithSpawn">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>mapWithSpawn</h4>
|
|
<pre>private static java.lang.String mapWithSpawn</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="<init>(ruscz.game.gameOfProd.Cells.TypeOfCell[][])">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>Map</h4>
|
|
<pre>public Map​(<a href="../Cells/TypeOfCell.html" title="enum in ruscz.game.gameOfProd.Cells">TypeOfCell</a>[][] mapArray)</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="findMapByName(java.lang.String,ruscz.game.gameOfProd.Windows.WindowOfFreeMove)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>findMapByName</h4>
|
|
<pre class="methodSignature">public static <a href="Map.html" title="class in ruscz.game.gameOfProd.Map">Map</a> findMapByName​(java.lang.String nameOfMap,
|
|
<a href="../Windows/WindowOfFreeMove.html" title="class in ruscz.game.gameOfProd.Windows">WindowOfFreeMove</a> window)</pre>
|
|
<div class="block">Finds map by name in a list of loaded maps</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>nameOfMap</code> - is map name that is being searched for</dd>
|
|
<dd><code>window</code> - is reference for WindowOfFreeMove</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>found map</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="loadMapFromFile(java.lang.String,ruscz.game.gameOfProd.Windows.WindowOfFreeMove)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>loadMapFromFile</h4>
|
|
<pre class="methodSignature">public static <a href="Map.html" title="class in ruscz.game.gameOfProd.Map">Map</a> loadMapFromFile​(java.lang.String name,
|
|
<a href="../Windows/WindowOfFreeMove.html" title="class in ruscz.game.gameOfProd.Windows">WindowOfFreeMove</a> window)</pre>
|
|
<div class="block">Creates map and prepares all fields, then passes map on loadMap</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>name</code> - is map file name</dd>
|
|
<dd><code>window</code> - is reference for WindowOfFreeMove</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>loaded map</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="loadMap(ruscz.game.gameOfProd.Map.Map,java.lang.String,java.lang.String[],int,ruscz.game.gameOfProd.Windows.WindowOfFreeMove)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>loadMap</h4>
|
|
<pre class="methodSignature">public static void loadMap​(<a href="Map.html" title="class in ruscz.game.gameOfProd.Map">Map</a> map,
|
|
java.lang.String data,
|
|
java.lang.String[] size,
|
|
int y,
|
|
<a href="../Windows/WindowOfFreeMove.html" title="class in ruscz.game.gameOfProd.Windows">WindowOfFreeMove</a> window)</pre>
|
|
<div class="block">Parses line of text into corresponding cells with attributes and populates corresponding lists wit them</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>map</code> - is map being loaded</dd>
|
|
<dd><code>data</code> - is line of map file to be parsed</dd>
|
|
<dd><code>size</code> - is array of map's size in cells</dd>
|
|
<dd><code>y</code> - is current Y value of line being parsed</dd>
|
|
<dd><code>window</code> - is reference for WindowOfFreeMove</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="linkMaps(ruscz.game.gameOfProd.Map.Map,ruscz.game.gameOfProd.Windows.WindowOfFreeMove)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>linkMaps</h4>
|
|
<pre class="methodSignature">public void linkMaps​(<a href="Map.html" title="class in ruscz.game.gameOfProd.Map">Map</a> map,
|
|
<a href="../Windows/WindowOfFreeMove.html" title="class in ruscz.game.gameOfProd.Windows">WindowOfFreeMove</a> window)</pre>
|
|
<div class="block">Parses MOVETO and DOORTO cells, which link different maps together</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>map</code> - is map being linked</dd>
|
|
<dd><code>window</code> - is reference on WindowOfFreeMove</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="addMoveToEvent(ruscz.game.gameOfProd.Cells.EventMoveToCell)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>addMoveToEvent</h4>
|
|
<pre class="methodSignature">public void addMoveToEvent​(<a href="../Cells/EventMoveToCell.html" title="class in ruscz.game.gameOfProd.Cells">EventMoveToCell</a> moveToCell)</pre>
|
|
<div class="block">Updates map's cell matrix and adds cell to corresponding list</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>moveToCell</code> - is MOVETO cell being added</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="addInteractionEvent(ruscz.game.gameOfProd.Cells.InteractionCell)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>addInteractionEvent</h4>
|
|
<pre class="methodSignature">public void addInteractionEvent​(<a href="../Cells/InteractionCell.html" title="class in ruscz.game.gameOfProd.Cells">InteractionCell</a> interactionCell)</pre>
|
|
<div class="block">Updates map's cell matrix and adds cell to corresponding list</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>interactionCell</code> - is INTER cell being added</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="addInteractionEvent(ruscz.game.gameOfProd.Cells.TriggerCell)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>addInteractionEvent</h4>
|
|
<pre class="methodSignature">public void addInteractionEvent​(<a href="../Cells/TriggerCell.html" title="class in ruscz.game.gameOfProd.Cells">TriggerCell</a> triggerCell)</pre>
|
|
<div class="block">Updates map's cell matrix and adds cell to corresponding list</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>triggerCell</code> - is TRIGGER cell being added</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="addInteractionEvent(ruscz.game.gameOfProd.Cells.DoorCell)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>addInteractionEvent</h4>
|
|
<pre class="methodSignature">public void addInteractionEvent​(<a href="../Cells/DoorCell.html" title="class in ruscz.game.gameOfProd.Cells">DoorCell</a> doorCell)</pre>
|
|
<div class="block">Updates map's cell matrix and adds cell to corresponding list</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>doorCell</code> - is DOOR(TO) cell being added</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="addInteractionEvent(ruscz.game.gameOfProd.Cells.ChestCell)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>addInteractionEvent</h4>
|
|
<pre class="methodSignature">public void addInteractionEvent​(<a href="../Cells/ChestCell.html" title="class in ruscz.game.gameOfProd.Cells">ChestCell</a> chestCell)</pre>
|
|
<div class="block">Updates map's cell matrix and adds cell to corresponding list</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>chestCell</code> - is CHEST cell being added</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="setNpcs(ruscz.game.gameOfProd.Cells.Npc)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setNpcs</h4>
|
|
<pre class="methodSignature">public void setNpcs​(<a href="../Cells/Npc.html" title="class in ruscz.game.gameOfProd.Cells">Npc</a> npc)</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="getNpcs()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getNpcs</h4>
|
|
<pre class="methodSignature">public java.util.LinkedList<<a href="../Cells/Npc.html" title="class in ruscz.game.gameOfProd.Cells">Npc</a>> getNpcs()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="setName(java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setName</h4>
|
|
<pre class="methodSignature">public void setName​(java.lang.String name)</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="getName()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getName</h4>
|
|
<pre class="methodSignature">public java.lang.String getName()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="getPerson()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getPerson</h4>
|
|
<pre class="methodSignature">public <a href="../Cells/Person.html" title="class in ruscz.game.gameOfProd.Cells">Person</a> getPerson()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="getIdExit()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getIdExit</h4>
|
|
<pre class="methodSignature">public int getIdExit()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="getMapWithSpawn()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getMapWithSpawn</h4>
|
|
<pre class="methodSignature">public static java.lang.String getMapWithSpawn()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="getBlocks()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getBlocks</h4>
|
|
<pre class="methodSignature">public java.util.LinkedList<<a href="../Cells/Block.html" title="class in ruscz.game.gameOfProd.Cells">Block</a>> getBlocks()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="getMoveToCells()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getMoveToCells</h4>
|
|
<pre class="methodSignature">public java.util.LinkedList<<a href="../Cells/EventMoveToCell.html" title="class in ruscz.game.gameOfProd.Cells">EventMoveToCell</a>> getMoveToCells()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="getInteractionEventCells()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getInteractionEventCells</h4>
|
|
<pre class="methodSignature">public java.util.LinkedList<<a href="../Cells/InteractionCell.html" title="class in ruscz.game.gameOfProd.Cells">InteractionCell</a>> getInteractionEventCells()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="getTriggerCells()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getTriggerCells</h4>
|
|
<pre class="methodSignature">public java.util.LinkedList<<a href="../Cells/TriggerCell.html" title="class in ruscz.game.gameOfProd.Cells">TriggerCell</a>> getTriggerCells()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="getDoorCells()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getDoorCells</h4>
|
|
<pre class="methodSignature">public java.util.LinkedList<<a href="../Cells/DoorCell.html" title="class in ruscz.game.gameOfProd.Cells">DoorCell</a>> getDoorCells()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="getChestCells()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getChestCells</h4>
|
|
<pre class="methodSignature">public java.util.LinkedList<<a href="../Cells/ChestCell.html" title="class in ruscz.game.gameOfProd.Cells">ChestCell</a>> getChestCells()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="setIdExit(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setIdExit</h4>
|
|
<pre class="methodSignature">public void setIdExit​(int id)</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="setSpawnPoint(int,int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setSpawnPoint</h4>
|
|
<pre class="methodSignature">public void setSpawnPoint​(int x,
|
|
int y)</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="getSpawnPoint()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getSpawnPoint</h4>
|
|
<pre class="methodSignature">public int[] getSpawnPoint()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="getImageCell()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getImageCell</h4>
|
|
<pre class="methodSignature">public <a href="../Image/ImageCell.html" title="class in ruscz.game.gameOfProd.Image">ImageCell</a> getImageCell()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="getMapArray()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getMapArray</h4>
|
|
<pre class="methodSignature">public <a href="../Cells/TypeOfCell.html" title="enum in ruscz.game.gameOfProd.Cells">TypeOfCell</a>[][] getMapArray()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="getCanvasSize()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getCanvasSize</h4>
|
|
<pre class="methodSignature">public int[] getCanvasSize()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="getSoundManager()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getSoundManager</h4>
|
|
<pre class="methodSignature">public <a href="../Sounds/SoundManager.html" title="class in ruscz.game.gameOfProd.Sounds">SoundManager</a> getSoundManager()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="setCanvasSize(int[])">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setCanvasSize</h4>
|
|
<pre class="methodSignature">public void setCanvasSize​(int[] size)</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="isBusyCell(int,int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>isBusyCell</h4>
|
|
<pre class="methodSignature">public boolean isBusyCell​(int x,
|
|
int y)</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="isBusyCell(int,int,boolean)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>isBusyCell</h4>
|
|
<pre class="methodSignature">public boolean isBusyCell​(int x,
|
|
int y,
|
|
boolean half)</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="isCellMoveTo(int,int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>isCellMoveTo</h4>
|
|
<pre class="methodSignature">public boolean isCellMoveTo​(int x,
|
|
int y)</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="isInteractionCell(int,int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>isInteractionCell</h4>
|
|
<pre class="methodSignature">public boolean isInteractionCell​(int x,
|
|
int y)</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="isActiveTriggerCell(int,int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>isActiveTriggerCell</h4>
|
|
<pre class="methodSignature">public boolean isActiveTriggerCell​(int x,
|
|
int y)</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="isTriggerCell(int,int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>isTriggerCell</h4>
|
|
<pre class="methodSignature">public boolean isTriggerCell​(int x,
|
|
int y)</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="isDoor(int,int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>isDoor</h4>
|
|
<pre class="methodSignature">public boolean isDoor​(int x,
|
|
int y)</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="isClosedDoor(int,int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>isClosedDoor</h4>
|
|
<pre class="methodSignature">public boolean isClosedDoor​(int x,
|
|
int y)</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="isActiveChest(int,int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>isActiveChest</h4>
|
|
<pre class="methodSignature">public boolean isActiveChest​(int x,
|
|
int y)</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="isChest(int,int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>isChest</h4>
|
|
<pre class="methodSignature">public boolean isChest​(int x,
|
|
int y)</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="findEventByXY(int,int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>findEventByXY</h4>
|
|
<pre class="methodSignature">public <a href="../Cells/EventMoveToCell.html" title="class in ruscz.game.gameOfProd.Cells">EventMoveToCell</a> findEventByXY​(int x,
|
|
int y)</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="findInteractionByXY(int,int,int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>findInteractionByXY</h4>
|
|
<pre class="methodSignature">public <a href="../Cells/InteractionCell.html" title="class in ruscz.game.gameOfProd.Cells">InteractionCell</a> findInteractionByXY​(int x,
|
|
int y,
|
|
int directionSight)</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="findInteractionByXY(int,int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>findInteractionByXY</h4>
|
|
<pre class="methodSignature">public <a href="../Cells/InteractionCell.html" title="class in ruscz.game.gameOfProd.Cells">InteractionCell</a> findInteractionByXY​(int x,
|
|
int y)</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="findTriggerByXY(int,int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>findTriggerByXY</h4>
|
|
<pre class="methodSignature">public <a href="../Cells/TriggerCell.html" title="class in ruscz.game.gameOfProd.Cells">TriggerCell</a> findTriggerByXY​(int x,
|
|
int y)</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="findDoorByXY(int,int,int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>findDoorByXY</h4>
|
|
<pre class="methodSignature">public <a href="../Cells/DoorCell.html" title="class in ruscz.game.gameOfProd.Cells">DoorCell</a> findDoorByXY​(int x,
|
|
int y,
|
|
int directionSight)</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="findDoorByXY(int,int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>findDoorByXY</h4>
|
|
<pre class="methodSignature">public <a href="../Cells/DoorCell.html" title="class in ruscz.game.gameOfProd.Cells">DoorCell</a> findDoorByXY​(int x,
|
|
int y)</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="findBlockByXY(int,int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>findBlockByXY</h4>
|
|
<pre class="methodSignature">public <a href="../Cells/Block.html" title="class in ruscz.game.gameOfProd.Cells">Block</a> findBlockByXY​(int x,
|
|
int y)</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="findChestByXY(int,int,int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>findChestByXY</h4>
|
|
<pre class="methodSignature">public <a href="../Cells/ChestCell.html" title="class in ruscz.game.gameOfProd.Cells">ChestCell</a> findChestByXY​(int x,
|
|
int y,
|
|
int directionSight)</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="findChestByXY(int,int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>findChestByXY</h4>
|
|
<pre class="methodSignature">public <a href="../Cells/ChestCell.html" title="class in ruscz.game.gameOfProd.Cells">ChestCell</a> findChestByXY​(int x,
|
|
int y)</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="findMoveToByXY(int,int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>findMoveToByXY</h4>
|
|
<pre class="methodSignature">public <a href="../Cells/EventMoveToCell.html" title="class in ruscz.game.gameOfProd.Cells">EventMoveToCell</a> findMoveToByXY​(int x,
|
|
int y)</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="findNpcByName(java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>findNpcByName</h4>
|
|
<pre class="methodSignature">public <a href="../Cells/Npc.html" title="class in ruscz.game.gameOfProd.Cells">Npc</a> findNpcByName​(java.lang.String name)</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="findCellByXY(int,int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>findCellByXY</h4>
|
|
<pre class="methodSignature">public <a href="../Cells/Cell.html" title="class in ruscz.game.gameOfProd.Cells">Cell</a> findCellByXY​(int x,
|
|
int y)</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="directionSightSwitch(int,int,int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>directionSightSwitch</h4>
|
|
<pre class="methodSignature">public int[] directionSightSwitch​(int x,
|
|
int y,
|
|
int directionSight)</pre>
|
|
<div class="block">Translates direction of sight into new coords</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>x</code> - is starting X value</dd>
|
|
<dd><code>y</code> - is starting Y value</dd>
|
|
<dd><code>directionSight</code> - is direction of hero's sight</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>array of new X and Y coordinates</dd>
|
|
</dl>
|
|
</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: </li>
|
|
<li>Nested | </li>
|
|
<li><a href="#field.summary">Field</a> | </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><a href="#field.detail">Field</a> | </li>
|
|
<li><a href="#constructor.detail">Constr</a> | </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>
|