150 lines
5.4 KiB
HTML
150 lines
5.4 KiB
HTML
<!DOCTYPE HTML>
|
|
<!-- NewPage -->
|
|
<html lang="fr">
|
|
<head>
|
|
<!-- Generated by javadoc (15) on Fri May 07 15:56:25 CEST 2021 -->
|
|
<title>battleship.model.player</title>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf8">
|
|
<meta name="dc.created" content="2021-05-07">
|
|
<meta name="description" content="declaration: package: battleship.model.player">
|
|
<meta name="generator" content="javadoc/PackageWriterImpl">
|
|
<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">
|
|
<link rel="stylesheet" type="text/css" href="../../../jquery-ui.overrides.css" title="Style">
|
|
<script type="text/javascript" src="../../../script.js"></script>
|
|
<script type="text/javascript" src="../../../script-dir/jquery-3.5.1.min.js"></script>
|
|
<script type="text/javascript" src="../../../script-dir/jquery-ui.min.js"></script>
|
|
</head>
|
|
<body class="package-declaration-page">
|
|
<script type="text/javascript">var pathtoroot = "../../../";
|
|
loadScripts(document, 'script');</script>
|
|
<noscript>
|
|
<div>JavaScript is disabled on your browser.</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">
|
|
<div class="skip-nav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
|
|
<ul id="navbar.top.firstrow" class="nav-list" title="Navigation">
|
|
<li><a href="../../../index.html">Overview</a></li>
|
|
<li class="nav-bar-cell1-rev">Package</li>
|
|
<li>Class</li>
|
|
<li><a href="package-tree.html">Tree</a></li>
|
|
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
|
|
<li><a href="../../../index-all.html">Index</a></li>
|
|
<li><a href="../../../help-doc.html">Help</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="sub-nav">
|
|
<div class="nav-list-search"><label for="search">SEARCH:</label>
|
|
<input type="text" id="search" value="search" disabled="disabled">
|
|
<input type="reset" id="reset" value="reset" disabled="disabled">
|
|
</div>
|
|
</div>
|
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
|
<span class="skip-nav" id="skip.navbar.top">
|
|
<!-- -->
|
|
</span></nav>
|
|
</header>
|
|
<div class="flex-content">
|
|
<main role="main">
|
|
<div class="header">
|
|
<h1 title="Package" class="title">Package battleship.model.player</h1>
|
|
</div>
|
|
<section class="package-description" id="package.description">
|
|
<div class="block">Contains all players classes instances and theirs super classes and interface</div>
|
|
</section>
|
|
<section class="summary">
|
|
<ul class="summary-list">
|
|
<li>
|
|
<div class="type-summary">
|
|
<table class="summary-table">
|
|
<caption><span>Interface Summary</span></caption>
|
|
<thead>
|
|
<tr>
|
|
<th class="col-first" scope="col">Interface</th>
|
|
<th class="col-last" scope="col">Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr class="alt-color">
|
|
<th class="col-first" scope="row"><a href="Player.html" title="interface in battleship.model.player">Player</a></th>
|
|
<td class="col-last">
|
|
<div class="block">Player interface, used as an API.</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li>
|
|
<li>
|
|
<div class="type-summary">
|
|
<table class="summary-table">
|
|
<caption><span>Class Summary</span></caption>
|
|
<thead>
|
|
<tr>
|
|
<th class="col-first" scope="col">Class</th>
|
|
<th class="col-last" scope="col">Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr class="alt-color">
|
|
<th class="col-first" scope="row"><a href="AbstractPlayer.html" title="class in battleship.model.player">AbstractPlayer</a></th>
|
|
<td class="col-last">
|
|
<div class="block">Abstract player class see <a href="Player.html" title="interface in battleship.model.player"><code>Player</code></a> to know more about this code organisation</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="row-color">
|
|
<th class="col-first" scope="row"><a href="Computer.html" title="class in battleship.model.player">Computer</a></th>
|
|
<td class="col-last">
|
|
<div class="block">Computer super class, all player object which use an algorithm to calculate coordinates to use should extend from
|
|
this object.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="alt-color">
|
|
<th class="col-first" scope="row"><a href="Human.html" title="class in battleship.model.player">Human</a></th>
|
|
<td class="col-last">
|
|
<div class="block">This object do nothing itself, it just an interface to know the type of player (Human or not),
|
|
each view interact with the player with its methods</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="row-color">
|
|
<th class="col-first" scope="row"><a href="Random.html" title="class in battleship.model.player">Random</a></th>
|
|
<td class="col-last">
|
|
<div class="block">place its ship and choose moves randomly</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
</main>
|
|
<footer role="contentinfo">
|
|
<nav role="navigation">
|
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
|
<div class="bottom-nav" id="navbar.bottom">
|
|
<div class="skip-nav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
|
|
<ul id="navbar.bottom.firstrow" class="nav-list" title="Navigation">
|
|
<li><a href="../../../index.html">Overview</a></li>
|
|
<li class="nav-bar-cell1-rev">Package</li>
|
|
<li>Class</li>
|
|
<li><a href="package-tree.html">Tree</a></li>
|
|
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
|
|
<li><a href="../../../index-all.html">Index</a></li>
|
|
<li><a href="../../../help-doc.html">Help</a></li>
|
|
</ul>
|
|
</div>
|
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
|
<span class="skip-nav" id="skip.navbar.bottom">
|
|
<!-- -->
|
|
</span></nav>
|
|
</footer>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|