592 lines
36 KiB
HTML
592 lines
36 KiB
HTML
<!DOCTYPE HTML>
|
|
<html lang="de">
|
|
<head>
|
|
<!-- Generated by javadoc (21) on Tue Jul 09 12:47:01 CEST 2024 -->
|
|
<title>Maze</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<meta name="dc.created" content="2024-07-09">
|
|
<meta name="description" content="declaration: package: visualizationElements, class: Maze">
|
|
<meta name="generator" content="javadoc/ClassWriterImpl">
|
|
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
|
|
<link rel="stylesheet" type="text/css" href="../script-dir/jquery-ui.min.css" title="Style">
|
|
<script type="text/javascript" src="../script.js"></script>
|
|
<script type="text/javascript" src="../script-dir/jquery-3.6.1.min.js"></script>
|
|
<script type="text/javascript" src="../script-dir/jquery-ui.min.js"></script>
|
|
</head>
|
|
<body class="class-declaration-page">
|
|
<script type="text/javascript">var pathtoroot = "../";
|
|
loadScripts(document, 'script');</script>
|
|
<noscript>
|
|
<div>JavaScript ist im Browser deaktiviert.</div>
|
|
</noscript>
|
|
<div class="flex-box">
|
|
<header role="banner" class="flex-header">
|
|
<nav role="navigation">
|
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
|
<div class="top-nav" id="navbar-top"><button id="navbar-toggle-button" aria-controls="navbar-top" aria-expanded="false" aria-label="Navigationslinks umschalten"><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span></button>
|
|
<div class="skip-nav"><a href="#skip-navbar-top" title="Navigations-Links überspringen">Navigations-Links überspringen</a></div>
|
|
<ul id="navbar-top-firstrow" class="nav-list" title="Navigation">
|
|
<li><a href="../index.html">Überblick</a></li>
|
|
<li><a href="package-summary.html">Package</a></li>
|
|
<li class="nav-bar-cell1-rev">Klasse</li>
|
|
<li><a href="package-tree.html">Baum</a></li>
|
|
<li><a href="../index-files/index-1.html">Index</a></li>
|
|
<li><a href="../help-doc.html#class">Hilfe</a></li>
|
|
</ul>
|
|
<ul class="sub-nav-list-small">
|
|
<li>
|
|
<p>Übersicht:</p>
|
|
<ul>
|
|
<li>Verschachtelt</li>
|
|
<li><a href="#field-summary">Feld</a></li>
|
|
<li><a href="#constructor-summary">Konstruktor</a></li>
|
|
<li><a href="#method-summary">Methode</a></li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p>Details:</p>
|
|
<ul>
|
|
<li><a href="#field-detail">Feld</a></li>
|
|
<li><a href="#constructor-detail">Konstruktor</a></li>
|
|
<li><a href="#method-detail">Methode</a></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="sub-nav">
|
|
<div id="navbar-sub-list">
|
|
<ul class="sub-nav-list">
|
|
<li>Übersicht: </li>
|
|
<li>Verschachtelt | </li>
|
|
<li><a href="#field-summary">Feld</a> | </li>
|
|
<li><a href="#constructor-summary">Konstruktor</a> | </li>
|
|
<li><a href="#method-summary">Methode</a></li>
|
|
</ul>
|
|
<ul class="sub-nav-list">
|
|
<li>Details: </li>
|
|
<li><a href="#field-detail">Feld</a> | </li>
|
|
<li><a href="#constructor-detail">Konstruktor</a> | </li>
|
|
<li><a href="#method-detail">Methode</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="nav-list-search"><a href="../search.html">SEARCH</a>
|
|
<input type="text" id="search-input" disabled placeholder="Suchen">
|
|
<input type="reset" id="reset-button" disabled value="reset">
|
|
</div>
|
|
</div>
|
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
|
<span class="skip-nav" id="skip-navbar-top"></span></nav>
|
|
</header>
|
|
<div class="flex-content">
|
|
<main role="main">
|
|
<!-- ======== START OF CLASS DATA ======== -->
|
|
<div class="header">
|
|
<div class="sub-title"><span class="package-label-in-type">Package</span> <a href="package-summary.html">visualizationElements</a></div>
|
|
<h1 title="Klasse Maze" class="title">Klasse Maze</h1>
|
|
</div>
|
|
<div class="inheritance" title="Vererbungsbaum"><a href="https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html" title="Klasse oder Schnittstelle in java.lang" class="external-link">java.lang.Object</a>
|
|
<div class="inheritance"><a href="VisualizationElement.html" title="Klasse in visualizationElements">visualizationElements.VisualizationElement</a>
|
|
<div class="inheritance">visualizationElements.Maze</div>
|
|
</div>
|
|
</div>
|
|
<section class="class-description" id="class-description">
|
|
<hr>
|
|
<div class="type-signature"><span class="modifiers">public class </span><span class="element-name type-name-label">Maze</span>
|
|
<span class="extends-implements">extends <a href="VisualizationElement.html" title="Klasse in visualizationElements">VisualizationElement</a></span></div>
|
|
<div class="block">Represents a maze to visualize.</div>
|
|
</section>
|
|
<section class="summary">
|
|
<ul class="summary-list">
|
|
<!-- =========== FIELD SUMMARY =========== -->
|
|
<li>
|
|
<section class="field-summary" id="field-summary">
|
|
<h2>Feldübersicht</h2>
|
|
<div class="caption"><span>Felder</span></div>
|
|
<div class="summary-table three-column-summary">
|
|
<div class="table-header col-first">Modifizierer und Typ</div>
|
|
<div class="table-header col-second">Feld</div>
|
|
<div class="table-header col-last">Beschreibung</div>
|
|
<div class="col-first even-row-color"><code>private static final int</code></div>
|
|
<div class="col-second even-row-color"><code><a href="#CELL_HEIGTH" class="member-name-link">CELL_HEIGTH</a></code></div>
|
|
<div class="col-last even-row-color"> </div>
|
|
<div class="col-first odd-row-color"><code>private static final int</code></div>
|
|
<div class="col-second odd-row-color"><code><a href="#CELL_WIDTH" class="member-name-link">CELL_WIDTH</a></code></div>
|
|
<div class="col-last odd-row-color"> </div>
|
|
<div class="col-first even-row-color"><code>private <a href="https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/util/Stack.html" title="Klasse oder Schnittstelle in java.util" class="external-link">Stack</a><wbr><<a href="Cell.html" title="Klasse in visualizationElements">Cell</a>></code></div>
|
|
<div class="col-second even-row-color"><code><a href="#cellStack" class="member-name-link">cellStack</a></code></div>
|
|
<div class="col-last even-row-color"> </div>
|
|
<div class="col-first odd-row-color"><code>private <a href="Cell.html" title="Klasse in visualizationElements">Cell</a></code></div>
|
|
<div class="col-second odd-row-color"><code><a href="#currentCell" class="member-name-link">currentCell</a></code></div>
|
|
<div class="col-last odd-row-color"> </div>
|
|
<div class="col-first even-row-color"><code>private int</code></div>
|
|
<div class="col-second even-row-color"><code><a href="#heigth" class="member-name-link">heigth</a></code></div>
|
|
<div class="col-last even-row-color"> </div>
|
|
<div class="col-first odd-row-color"><code>private <a href="Cell.html" title="Klasse in visualizationElements">Cell</a>[][]</code></div>
|
|
<div class="col-second odd-row-color"><code><a href="#maze" class="member-name-link">maze</a></code></div>
|
|
<div class="col-last odd-row-color"> </div>
|
|
<div class="col-first even-row-color"><code>private static final int</code></div>
|
|
<div class="col-second even-row-color"><code><a href="#START_X_POS" class="member-name-link">START_X_POS</a></code></div>
|
|
<div class="col-last even-row-color"> </div>
|
|
<div class="col-first odd-row-color"><code>private static final int</code></div>
|
|
<div class="col-second odd-row-color"><code><a href="#START_Y_POS" class="member-name-link">START_Y_POS</a></code></div>
|
|
<div class="col-last odd-row-color"> </div>
|
|
<div class="col-first even-row-color"><code>private int</code></div>
|
|
<div class="col-second even-row-color"><code><a href="#width" class="member-name-link">width</a></code></div>
|
|
<div class="col-last even-row-color"> </div>
|
|
<div class="col-first odd-row-color"><code>private int</code></div>
|
|
<div class="col-second odd-row-color"><code><a href="#xpos" class="member-name-link">xpos</a></code></div>
|
|
<div class="col-last odd-row-color"> </div>
|
|
<div class="col-first even-row-color"><code>private int</code></div>
|
|
<div class="col-second even-row-color"><code><a href="#ypos" class="member-name-link">ypos</a></code></div>
|
|
<div class="col-last even-row-color"> </div>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
|
<li>
|
|
<section class="constructor-summary" id="constructor-summary">
|
|
<h2>Konstruktorübersicht</h2>
|
|
<div class="caption"><span>Konstruktoren</span></div>
|
|
<div class="summary-table two-column-summary">
|
|
<div class="table-header col-first">Konstruktor</div>
|
|
<div class="table-header col-last">Beschreibung</div>
|
|
<div class="col-constructor-name even-row-color"><code><a href="#%3Cinit%3E(int,int)" class="member-name-link">Maze</a><wbr>(int heigth,
|
|
int width)</code></div>
|
|
<div class="col-last even-row-color">
|
|
<div class="block">Creates a new Maze.</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</li>
|
|
<!-- ========== METHOD SUMMARY =========== -->
|
|
<li>
|
|
<section class="method-summary" id="method-summary">
|
|
<h2>Methodenübersicht</h2>
|
|
<div id="method-summary-table">
|
|
<div class="table-tabs" role="tablist" aria-orientation="horizontal"><button id="method-summary-table-tab0" role="tab" aria-selected="true" aria-controls="method-summary-table.tabpanel" tabindex="0" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table', 3)" class="active-table-tab">Alle Methoden</button><button id="method-summary-table-tab2" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab2', 3)" class="table-tab">Instanzmethoden</button><button id="method-summary-table-tab4" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab4', 3)" class="table-tab">Konkrete Methoden</button></div>
|
|
<div id="method-summary-table.tabpanel" role="tabpanel">
|
|
<div class="summary-table three-column-summary" aria-labelledby="method-summary-table-tab0">
|
|
<div class="table-header col-first">Modifizierer und Typ</div>
|
|
<div class="table-header col-second">Methode</div>
|
|
<div class="table-header col-last">Beschreibung</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>void</code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#draw(java.awt.Graphics)" class="member-name-link">draw</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/21/docs/api/java.desktop/java/awt/Graphics.html" title="Klasse oder Schnittstelle in java.awt" class="external-link">Graphics</a> g)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
|
<div class="block">Draws the visualization element.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>private void</code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#generateWays()" class="member-name-link">generateWays</a>()</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
|
<div class="block">Generates ways through a maze full of walls.</div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>private <a href="https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/util/Vector.html" title="Klasse oder Schnittstelle in java.util" class="external-link">Vector</a><wbr><<a href="Cell.html" title="Klasse in visualizationElements">Cell</a>></code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getAllCellNeighbours(visualizationElements.Cell)" class="member-name-link">getAllCellNeighbours</a><wbr>(<a href="Cell.html" title="Klasse in visualizationElements">Cell</a> currentCell)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
|
<div class="block">Gets all neighbors of a cell.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>int</code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getHeigth()" class="member-name-link">getHeigth</a>()</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> </div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="Cell.html" title="Klasse in visualizationElements">Cell</a>[][]</code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getMaze()" class="member-name-link">getMaze</a>()</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> </div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>private <a href="https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/util/Vector.html" title="Klasse oder Schnittstelle in java.util" class="external-link">Vector</a><wbr><<a href="Cell.html" title="Klasse in visualizationElements">Cell</a>></code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getUnvisitedCellNeighbors(visualizationElements.Cell)" class="member-name-link">getUnvisitedCellNeighbors</a><wbr>(<a href="Cell.html" title="Klasse in visualizationElements">Cell</a> currentCell)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
|
<div class="block">Gets all unvisited neighbors of a cell.</div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>int</code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getWidth()" class="member-name-link">getWidth</a>()</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> </div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>private void</code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#initMaze()" class="member-name-link">initMaze</a>()</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
|
<div class="block">Initializes the maze.</div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>private void</code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#initMazeWithAllWalls()" class="member-name-link">initMazeWithAllWalls</a>()</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
|
<div class="block">Initializes a Maze full of walls.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>private void</code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#removeCellsEastWall(int,int)" class="member-name-link">removeCellsEastWall</a><wbr>(int column,
|
|
int row)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
|
<div class="block">Removes a cell's east wall.</div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>private void</code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#removeCellsNorthWall(int,int)" class="member-name-link">removeCellsNorthWall</a><wbr>(int column,
|
|
int row)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
|
<div class="block">Removes a cell's north wall.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>private void</code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#removeCellsSouthWall(int,int)" class="member-name-link">removeCellsSouthWall</a><wbr>(int column,
|
|
int row)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
|
<div class="block">Removes a cell's south wall.</div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>private void</code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#removeCellsWestWall(int,int)" class="member-name-link">removeCellsWestWall</a><wbr>(int column,
|
|
int row)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
|
<div class="block">Removes a cell's west wall.</div>
|
|
</div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>private void</code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#removeWallBetweenCurrentCellAndNeighbour(visualizationElements.Cell,visualizationElements.Cell)" class="member-name-link">removeWallBetweenCurrentCellAndNeighbour</a><wbr>(<a href="Cell.html" title="Klasse in visualizationElements">Cell</a> cell,
|
|
<a href="Cell.html" title="Klasse in visualizationElements">Cell</a> neighbor)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
|
<div class="block">Removes the wall between two cells.</div>
|
|
</div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>void</code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#setHeigth(int)" class="member-name-link">setHeigth</a><wbr>(int heigth)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> </div>
|
|
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>void</code></div>
|
|
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#setMaze(visualizationElements.Cell%5B%5D%5B%5D)" class="member-name-link">setMaze</a><wbr>(<a href="Cell.html" title="Klasse in visualizationElements">Cell</a>[][] maze)</code></div>
|
|
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> </div>
|
|
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>void</code></div>
|
|
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#setWidth(int)" class="member-name-link">setWidth</a><wbr>(int width)</code></div>
|
|
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> </div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="inherited-list">
|
|
<h3 id="methods-inherited-from-class-java.lang.Object">Von Klasse geerbte Methoden java.lang.<a href="https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html" title="Klasse oder Schnittstelle in java.lang" class="external-link">Object</a></h3>
|
|
<code><a href="https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#clone()" title="Klasse oder Schnittstelle in java.lang" class="external-link">clone</a>, <a href="https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)" title="Klasse oder Schnittstelle in java.lang" class="external-link">equals</a>, <a href="https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#finalize()" title="Klasse oder Schnittstelle in java.lang" class="external-link">finalize</a>, <a href="https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#getClass()" title="Klasse oder Schnittstelle in java.lang" class="external-link">getClass</a>, <a href="https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#hashCode()" title="Klasse oder Schnittstelle in java.lang" class="external-link">hashCode</a>, <a href="https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#notify()" title="Klasse oder Schnittstelle in java.lang" class="external-link">notify</a>, <a href="https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#notifyAll()" title="Klasse oder Schnittstelle in java.lang" class="external-link">notifyAll</a>, <a href="https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#toString()" title="Klasse oder Schnittstelle in java.lang" class="external-link">toString</a>, <a href="https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#wait()" title="Klasse oder Schnittstelle in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#wait(long)" title="Klasse oder Schnittstelle in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#wait(long,int)" title="Klasse oder Schnittstelle in java.lang" class="external-link">wait</a></code></div>
|
|
</section>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
<section class="details">
|
|
<ul class="details-list">
|
|
<!-- ============ FIELD DETAIL =========== -->
|
|
<li>
|
|
<section class="field-details" id="field-detail">
|
|
<h2>Felddetails</h2>
|
|
<ul class="member-list">
|
|
<li>
|
|
<section class="detail" id="CELL_WIDTH">
|
|
<h3>CELL_WIDTH</h3>
|
|
<div class="member-signature"><span class="modifiers">private static final</span> <span class="return-type">int</span> <span class="element-name">CELL_WIDTH</span></div>
|
|
<dl class="notes">
|
|
<dt>Siehe auch:</dt>
|
|
<dd>
|
|
<ul class="tag-list">
|
|
<li><a href="../constant-values.html#visualizationElements.Maze.CELL_WIDTH">Konstantenfeldwerte</a></li>
|
|
</ul>
|
|
</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="CELL_HEIGTH">
|
|
<h3>CELL_HEIGTH</h3>
|
|
<div class="member-signature"><span class="modifiers">private static final</span> <span class="return-type">int</span> <span class="element-name">CELL_HEIGTH</span></div>
|
|
<dl class="notes">
|
|
<dt>Siehe auch:</dt>
|
|
<dd>
|
|
<ul class="tag-list">
|
|
<li><a href="../constant-values.html#visualizationElements.Maze.CELL_HEIGTH">Konstantenfeldwerte</a></li>
|
|
</ul>
|
|
</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="START_X_POS">
|
|
<h3>START_X_POS</h3>
|
|
<div class="member-signature"><span class="modifiers">private static final</span> <span class="return-type">int</span> <span class="element-name">START_X_POS</span></div>
|
|
<dl class="notes">
|
|
<dt>Siehe auch:</dt>
|
|
<dd>
|
|
<ul class="tag-list">
|
|
<li><a href="../constant-values.html#visualizationElements.Maze.START_X_POS">Konstantenfeldwerte</a></li>
|
|
</ul>
|
|
</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="START_Y_POS">
|
|
<h3>START_Y_POS</h3>
|
|
<div class="member-signature"><span class="modifiers">private static final</span> <span class="return-type">int</span> <span class="element-name">START_Y_POS</span></div>
|
|
<dl class="notes">
|
|
<dt>Siehe auch:</dt>
|
|
<dd>
|
|
<ul class="tag-list">
|
|
<li><a href="../constant-values.html#visualizationElements.Maze.START_Y_POS">Konstantenfeldwerte</a></li>
|
|
</ul>
|
|
</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="maze">
|
|
<h3>maze</h3>
|
|
<div class="member-signature"><span class="modifiers">private</span> <span class="return-type"><a href="Cell.html" title="Klasse in visualizationElements">Cell</a>[][]</span> <span class="element-name">maze</span></div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="currentCell">
|
|
<h3>currentCell</h3>
|
|
<div class="member-signature"><span class="modifiers">private</span> <span class="return-type"><a href="Cell.html" title="Klasse in visualizationElements">Cell</a></span> <span class="element-name">currentCell</span></div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="heigth">
|
|
<h3>heigth</h3>
|
|
<div class="member-signature"><span class="modifiers">private</span> <span class="return-type">int</span> <span class="element-name">heigth</span></div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="width">
|
|
<h3>width</h3>
|
|
<div class="member-signature"><span class="modifiers">private</span> <span class="return-type">int</span> <span class="element-name">width</span></div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="xpos">
|
|
<h3>xpos</h3>
|
|
<div class="member-signature"><span class="modifiers">private</span> <span class="return-type">int</span> <span class="element-name">xpos</span></div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="ypos">
|
|
<h3>ypos</h3>
|
|
<div class="member-signature"><span class="modifiers">private</span> <span class="return-type">int</span> <span class="element-name">ypos</span></div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="cellStack">
|
|
<h3>cellStack</h3>
|
|
<div class="member-signature"><span class="modifiers">private</span> <span class="return-type"><a href="https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/util/Stack.html" title="Klasse oder Schnittstelle in java.util" class="external-link">Stack</a><<a href="Cell.html" title="Klasse in visualizationElements">Cell</a>></span> <span class="element-name">cellStack</span></div>
|
|
</section>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
</li>
|
|
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
|
<li>
|
|
<section class="constructor-details" id="constructor-detail">
|
|
<h2>Konstruktordetails</h2>
|
|
<ul class="member-list">
|
|
<li>
|
|
<section class="detail" id="<init>(int,int)">
|
|
<h3>Maze</h3>
|
|
<div class="member-signature"><span class="modifiers">public</span> <span class="element-name">Maze</span><wbr><span class="parameters">(int heigth,
|
|
int width)</span></div>
|
|
<div class="block">Creates a new Maze.</div>
|
|
<dl class="notes">
|
|
<dt>Parameter:</dt>
|
|
<dd><code>heigth</code> - Height of the Maze.</dd>
|
|
<dd><code>width</code> - Width of the Maze.</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
</li>
|
|
<!-- ============ METHOD DETAIL ========== -->
|
|
<li>
|
|
<section class="method-details" id="method-detail">
|
|
<h2>Methodendetails</h2>
|
|
<ul class="member-list">
|
|
<li>
|
|
<section class="detail" id="draw(java.awt.Graphics)">
|
|
<h3>draw</h3>
|
|
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">draw</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/21/docs/api/java.desktop/java/awt/Graphics.html" title="Klasse oder Schnittstelle in java.awt" class="external-link">Graphics</a> g)</span></div>
|
|
<div class="block"><span class="description-from-type-label">Beschreibung aus Klasse kopiert: <code><a href="VisualizationElement.html#draw(java.awt.Graphics)">VisualizationElement</a></code></span></div>
|
|
<div class="block">Draws the visualization element.</div>
|
|
<dl class="notes">
|
|
<dt>Angegeben von:</dt>
|
|
<dd><code><a href="VisualizationElement.html#draw(java.awt.Graphics)">draw</a></code> in Klasse <code><a href="VisualizationElement.html" title="Klasse in visualizationElements">VisualizationElement</a></code></dd>
|
|
<dt>Parameter:</dt>
|
|
<dd><code>g</code> - The Graphics object to draw the element to the DrawArea.</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="setMaze(visualizationElements.Cell[][])">
|
|
<h3>setMaze</h3>
|
|
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">setMaze</span><wbr><span class="parameters">(<a href="Cell.html" title="Klasse in visualizationElements">Cell</a>[][] maze)</span></div>
|
|
<dl class="notes">
|
|
<dt>Parameter:</dt>
|
|
<dd><code>maze</code> - the maze to set</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="getMaze()">
|
|
<h3>getMaze</h3>
|
|
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="Cell.html" title="Klasse in visualizationElements">Cell</a>[][]</span> <span class="element-name">getMaze</span>()</div>
|
|
<dl class="notes">
|
|
<dt>Gibt zurück:</dt>
|
|
<dd>the maze</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="setHeigth(int)">
|
|
<h3>setHeigth</h3>
|
|
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">setHeigth</span><wbr><span class="parameters">(int heigth)</span></div>
|
|
<dl class="notes">
|
|
<dt>Parameter:</dt>
|
|
<dd><code>heigth</code> - the heigth to set</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="getHeigth()">
|
|
<h3>getHeigth</h3>
|
|
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type">int</span> <span class="element-name">getHeigth</span>()</div>
|
|
<dl class="notes">
|
|
<dt>Gibt zurück:</dt>
|
|
<dd>the heigth</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="setWidth(int)">
|
|
<h3>setWidth</h3>
|
|
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">setWidth</span><wbr><span class="parameters">(int width)</span></div>
|
|
<dl class="notes">
|
|
<dt>Parameter:</dt>
|
|
<dd><code>width</code> - the width to set</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="getWidth()">
|
|
<h3>getWidth</h3>
|
|
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type">int</span> <span class="element-name">getWidth</span>()</div>
|
|
<dl class="notes">
|
|
<dt>Gibt zurück:</dt>
|
|
<dd>the width</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="initMaze()">
|
|
<h3>initMaze</h3>
|
|
<div class="member-signature"><span class="modifiers">private</span> <span class="return-type">void</span> <span class="element-name">initMaze</span>()</div>
|
|
<div class="block">Initializes the maze.</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="initMazeWithAllWalls()">
|
|
<h3>initMazeWithAllWalls</h3>
|
|
<div class="member-signature"><span class="modifiers">private</span> <span class="return-type">void</span> <span class="element-name">initMazeWithAllWalls</span>()</div>
|
|
<div class="block">Initializes a Maze full of walls.</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="generateWays()">
|
|
<h3>generateWays</h3>
|
|
<div class="member-signature"><span class="modifiers">private</span> <span class="return-type">void</span> <span class="element-name">generateWays</span>()</div>
|
|
<div class="block">Generates ways through a maze full of walls.</div>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="removeCellsSouthWall(int,int)">
|
|
<h3>removeCellsSouthWall</h3>
|
|
<div class="member-signature"><span class="modifiers">private</span> <span class="return-type">void</span> <span class="element-name">removeCellsSouthWall</span><wbr><span class="parameters">(int column,
|
|
int row)</span></div>
|
|
<div class="block">Removes a cell's south wall.</div>
|
|
<dl class="notes">
|
|
<dt>Parameter:</dt>
|
|
<dd><code>column</code> - Column of the cell.</dd>
|
|
<dd><code>row</code> - Row of the cell.</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="removeCellsNorthWall(int,int)">
|
|
<h3>removeCellsNorthWall</h3>
|
|
<div class="member-signature"><span class="modifiers">private</span> <span class="return-type">void</span> <span class="element-name">removeCellsNorthWall</span><wbr><span class="parameters">(int column,
|
|
int row)</span></div>
|
|
<div class="block">Removes a cell's north wall.</div>
|
|
<dl class="notes">
|
|
<dt>Parameter:</dt>
|
|
<dd><code>column</code> - Column of the cell.</dd>
|
|
<dd><code>row</code> - Row of the cell.</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="removeCellsEastWall(int,int)">
|
|
<h3>removeCellsEastWall</h3>
|
|
<div class="member-signature"><span class="modifiers">private</span> <span class="return-type">void</span> <span class="element-name">removeCellsEastWall</span><wbr><span class="parameters">(int column,
|
|
int row)</span></div>
|
|
<div class="block">Removes a cell's east wall.</div>
|
|
<dl class="notes">
|
|
<dt>Parameter:</dt>
|
|
<dd><code>column</code> - Column of the cell.</dd>
|
|
<dd><code>row</code> - Row of the cell.</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="removeCellsWestWall(int,int)">
|
|
<h3>removeCellsWestWall</h3>
|
|
<div class="member-signature"><span class="modifiers">private</span> <span class="return-type">void</span> <span class="element-name">removeCellsWestWall</span><wbr><span class="parameters">(int column,
|
|
int row)</span></div>
|
|
<div class="block">Removes a cell's west wall.</div>
|
|
<dl class="notes">
|
|
<dt>Parameter:</dt>
|
|
<dd><code>column</code> - Column of the cell.</dd>
|
|
<dd><code>row</code> - Row of the cell.</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="removeWallBetweenCurrentCellAndNeighbour(visualizationElements.Cell,visualizationElements.Cell)">
|
|
<h3>removeWallBetweenCurrentCellAndNeighbour</h3>
|
|
<div class="member-signature"><span class="modifiers">private</span> <span class="return-type">void</span> <span class="element-name">removeWallBetweenCurrentCellAndNeighbour</span><wbr><span class="parameters">(<a href="Cell.html" title="Klasse in visualizationElements">Cell</a> cell,
|
|
<a href="Cell.html" title="Klasse in visualizationElements">Cell</a> neighbor)</span></div>
|
|
<div class="block">Removes the wall between two cells.</div>
|
|
<dl class="notes">
|
|
<dt>Parameter:</dt>
|
|
<dd><code>cell</code> - Cell to remove a wall.</dd>
|
|
<dd><code>neighbor</code> - The Cell's neighbour to remove the corresponding wall.</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="getUnvisitedCellNeighbors(visualizationElements.Cell)">
|
|
<h3>getUnvisitedCellNeighbors</h3>
|
|
<div class="member-signature"><span class="modifiers">private</span> <span class="return-type"><a href="https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/util/Vector.html" title="Klasse oder Schnittstelle in java.util" class="external-link">Vector</a><<a href="Cell.html" title="Klasse in visualizationElements">Cell</a>></span> <span class="element-name">getUnvisitedCellNeighbors</span><wbr><span class="parameters">(<a href="Cell.html" title="Klasse in visualizationElements">Cell</a> currentCell)</span></div>
|
|
<div class="block">Gets all unvisited neighbors of a cell.</div>
|
|
<dl class="notes">
|
|
<dt>Parameter:</dt>
|
|
<dd><code>currentCell</code> - The cell to get the neighbors.</dd>
|
|
<dt>Gibt zurück:</dt>
|
|
<dd>The cell's unvisited neighbors.</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
<li>
|
|
<section class="detail" id="getAllCellNeighbours(visualizationElements.Cell)">
|
|
<h3>getAllCellNeighbours</h3>
|
|
<div class="member-signature"><span class="modifiers">private</span> <span class="return-type"><a href="https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/util/Vector.html" title="Klasse oder Schnittstelle in java.util" class="external-link">Vector</a><<a href="Cell.html" title="Klasse in visualizationElements">Cell</a>></span> <span class="element-name">getAllCellNeighbours</span><wbr><span class="parameters">(<a href="Cell.html" title="Klasse in visualizationElements">Cell</a> currentCell)</span></div>
|
|
<div class="block">Gets all neighbors of a cell.</div>
|
|
<dl class="notes">
|
|
<dt>Parameter:</dt>
|
|
<dd><code>currentCell</code> - The cell to get the neighbors.</dd>
|
|
<dt>Gibt zurück:</dt>
|
|
<dd>The cell's neighbors.</dd>
|
|
</dl>
|
|
</section>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
<!-- ========= END OF CLASS DATA ========= -->
|
|
</main>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|