Battleship/livraison/doc/index-all.html

698 lines
66 KiB
HTML
Raw Normal View History

2021-05-07 17:27:11 +02:00
<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="fr">
<head>
<!-- Generated by javadoc (15) on Fri May 07 15:56:25 CEST 2021 -->
<title>Index</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf8">
<meta name="dc.created" content="2021-05-07">
<meta name="description" content="index">
<meta name="generator" content="javadoc/SingleIndexWriter">
<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="single-index-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>Package</li>
<li>Class</li>
<li><a href="overview-tree.html">Tree</a></li>
<li><a href="deprecated-list.html">Deprecated</a></li>
<li class="nav-bar-cell1-rev">Index</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>Index</h1>
</div>
<a href="#I:A">A</a>&nbsp;<a href="#I:B">B</a>&nbsp;<a href="#I:C">C</a>&nbsp;<a href="#I:D">D</a>&nbsp;<a href="#I:E">E</a>&nbsp;<a href="#I:F">F</a>&nbsp;<a href="#I:G">G</a>&nbsp;<a href="#I:H">H</a>&nbsp;<a href="#I:I">I</a>&nbsp;<a href="#I:K">K</a>&nbsp;<a href="#I:L">L</a>&nbsp;<a href="#I:M">M</a>&nbsp;<a href="#I:O">O</a>&nbsp;<a href="#I:P">P</a>&nbsp;<a href="#I:R">R</a>&nbsp;<a href="#I:S">S</a>&nbsp;<a href="#I:T">T</a>&nbsp;<a href="#I:U">U</a>&nbsp;<a href="#I:V">V</a>&nbsp;<a href="#I:W">W</a>&nbsp;<br><a href="allclasses-index.html">All&nbsp;Classes</a><span class="vertical-separator">|</span><a href="allpackages-index.html">All&nbsp;Packages</a>
<h2 class="title" id="I:A">A</h2>
<dl class="index">
<dt><a href="battleship/model/player/AbstractPlayer.html" title="class in battleship.model.player"><span class="type-name-link">AbstractPlayer</span></a> - Class in <a href="battleship/model/player/package-summary.html">battleship.model.player</a></dt>
<dd>
<div class="block">Abstract player class see <a href="battleship/model/player/Player.html" title="interface in battleship.model.player"><code>Player</code></a> to know more about this code organisation</div>
</dd>
<dt><span class="member-name-link"><a href="battleship/model/player/AbstractPlayer.html#%3Cinit%3E()">AbstractPlayer()</a></span> - Constructor for class battleship.model.player.<a href="battleship/model/player/AbstractPlayer.html" title="class in battleship.model.player">AbstractPlayer</a></dt>
<dd>&nbsp;</dd>
<dt><a href="battleship/view/AbstractView.html" title="class in battleship.view"><span class="type-name-link">AbstractView</span></a> - Class in <a href="battleship/view/package-summary.html">battleship.view</a></dt>
<dd>
<div class="block">Abstract view class</div>
</dd>
<dt><span class="member-name-link"><a href="battleship/view/AbstractView.html#%3Cinit%3E(battleship.model.Game)">AbstractView(Game)</a></span> - Constructor for class battleship.view.<a href="battleship/view/AbstractView.html" title="class in battleship.view">AbstractView</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/model/player/AbstractPlayer.html#addMove(battleship.utils.Triplet)">addMove(Triplet&lt;Integer, Integer, Boolean&gt;)</a></span> - Method in class battleship.model.player.<a href="battleship/model/player/AbstractPlayer.html" title="class in battleship.model.player">AbstractPlayer</a></dt>
<dd>
<div class="block">add <code>move</code> to the <a href="battleship/model/player/AbstractPlayer.html#moves"><code>AbstractPlayer.moves</code></a> list</div>
</dd>
<dt><span class="member-name-link"><a href="battleship/model/player/Player.html#addMove(battleship.utils.Triplet)">addMove(Triplet&lt;Integer, Integer, Boolean&gt;)</a></span> - Method in interface battleship.model.player.<a href="battleship/model/player/Player.html" title="interface in battleship.model.player">Player</a></dt>
<dd>
<div class="block">Adds coordinates of the <code>move</code> in the <a href="battleship/model/player/AbstractPlayer.html#moves"><code>AbstractPlayer.moves</code></a> list</div>
</dd>
<dt><span class="member-name-link"><a href="battleship/model/player/AbstractPlayer.html#areValid(int,int)">areValid(int, int)</a></span> - Method in class battleship.model.player.<a href="battleship/model/player/AbstractPlayer.html" title="class in battleship.model.player">AbstractPlayer</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/model/player/Player.html#areValid(int,int)">areValid(int, int)</a></span> - Method in interface battleship.model.player.<a href="battleship/model/player/Player.html" title="interface in battleship.model.player">Player</a></dt>
<dd>
<div class="block">check if coordinates from <a href="battleship/view/View.html#chooseMove(battleship.model.player.Player)"><code>View.chooseMove(Player)</code></a>are in valids position</div>
</dd>
<dt><span class="member-name-link"><a href="battleship/model/Direction.html#arrow">arrow</a></span> - Variable in enum battleship.model.<a href="battleship/model/Direction.html" title="enum in battleship.model">Direction</a></dt>
<dd>&nbsp;</dd>
</dl>
<h2 class="title" id="I:B">B</h2>
<dl class="index">
<dt><a href="battleship/package-summary.html">battleship</a> - package battleship</dt>
<dd>
<div class="block">Contains Main Class</div>
</dd>
<dt><a href="battleship/control/package-summary.html">battleship.control</a> - package battleship.control</dt>
<dd>
<div class="block">Contains keyboard and mouse listeners</div>
</dd>
<dt><a href="battleship/model/package-summary.html">battleship.model</a> - package battleship.model</dt>
<dd>
<div class="block">Contains all main Game classes</div>
</dd>
<dt><a href="battleship/model/player/package-summary.html">battleship.model.player</a> - package battleship.model.player</dt>
<dd>
<div class="block">Contains all players classes instances and theirs super classes and interface</div>
</dd>
<dt><a href="battleship/utils/package-summary.html">battleship.utils</a> - package battleship.utils</dt>
<dd>
<div class="block">Utility classes</div>
</dd>
<dt><a href="battleship/view/package-summary.html">battleship.view</a> - package battleship.view</dt>
<dd>
<div class="block">Contains terminal and windows view classes and theirs super class and interface</div>
</dd>
</dl>
<h2 class="title" id="I:C">C</h2>
<dl class="index">
<dt><span class="member-name-link"><a href="battleship/model/Game.html#changeCurrentPlayer()">changeCurrentPlayer()</a></span> - Method in class battleship.model.<a href="battleship/model/Game.html" title="class in battleship.model">Game</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/model/Game.html#checkDrownedShips()">checkDrownedShips()</a></span> - Method in class battleship.model.<a href="battleship/model/Game.html" title="class in battleship.model">Game</a></dt>
<dd>
<div class="block">Update ship to know if they're drowned</div>
</dd>
<dt><span class="member-name-link"><a href="battleship/model/player/Human.html#chooseMove()">chooseMove()</a></span> - Method in class battleship.model.player.<a href="battleship/model/player/Human.html" title="class in battleship.model.player">Human</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/model/player/Player.html#chooseMove()">chooseMove()</a></span> - Method in interface battleship.model.player.<a href="battleship/model/player/Player.html" title="interface in battleship.model.player">Player</a></dt>
<dd>
<div class="block">Used by computer only</div>
</dd>
<dt><span class="member-name-link"><a href="battleship/model/player/Random.html#chooseMove()">chooseMove()</a></span> - Method in class battleship.model.player.<a href="battleship/model/player/Random.html" title="class in battleship.model.player">Random</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/view/AbstractView.html#chooseMove(battleship.model.player.Player)">chooseMove(Player)</a></span> - Method in class battleship.view.<a href="battleship/view/AbstractView.html" title="class in battleship.view">AbstractView</a></dt>
<dd>
<div class="block">used by <a href="battleship/model/player/Computer.html" title="class in battleship.model.player"><code>Computer</code></a> player to play a move in the grid depending of its algorithm</div>
</dd>
<dt><span class="member-name-link"><a href="battleship/view/Terminal.html#chooseMove(battleship.model.player.Player)">chooseMove(Player)</a></span> - Method in class battleship.view.<a href="battleship/view/Terminal.html" title="class in battleship.view">Terminal</a></dt>
<dd>
<div class="block">ask player to choose a coords on its opponent grid, call <a href="battleship/view/AbstractView.html#chooseMove(battleship.model.player.Player)"><code>AbstractView.chooseMove(Player)</code></a> if instance of
player is <a href="battleship/model/player/Computer.html" title="class in battleship.model.player"><code>Computer</code></a>
if <code>player</code> isn't <a href="battleship/model/player/Human.html" title="class in battleship.model.player"><code>Human</code></a> instance</div>
</dd>
<dt><span class="member-name-link"><a href="battleship/view/View.html#chooseMove(battleship.model.player.Player)">chooseMove(Player)</a></span> - Method in interface battleship.view.<a href="battleship/view/View.html" title="interface in battleship.view">View</a></dt>
<dd>
<div class="block">ask the player the choose a position on its opponent grid</div>
</dd>
<dt><span class="member-name-link"><a href="battleship/view/Window.html#chooseMove(battleship.model.player.Player)">chooseMove(Player)</a></span> - Method in class battleship.view.<a href="battleship/view/Window.html" title="class in battleship.view">Window</a></dt>
<dd>
<div class="block">ask player to choose a position in its opponent grid</div>
</dd>
<dt><a href="battleship/model/player/Computer.html" title="class in battleship.model.player"><span class="type-name-link">Computer</span></a> - Class in <a href="battleship/model/player/package-summary.html">battleship.model.player</a></dt>
<dd>
<div class="block">Computer super class, all player object which use an algorithm to calculate coordinates to use should extend from
this object.</div>
</dd>
<dt><span class="member-name-link"><a href="battleship/model/player/Computer.html#%3Cinit%3E()">Computer()</a></span> - Constructor for class battleship.model.player.<a href="battleship/model/player/Computer.html" title="class in battleship.model.player">Computer</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/model/Ship.html#coords">coords</a></span> - Variable in class battleship.model.<a href="battleship/model/Ship.html" title="class in battleship.model">Ship</a></dt>
<dd>
<div class="block">base coordinates of the ship</div>
</dd>
<dt><span class="member-name-link"><a href="battleship/model/Game.html#currentPlayer">currentPlayer</a></span> - Variable in class battleship.model.<a href="battleship/model/Game.html" title="class in battleship.model">Game</a></dt>
<dd>&nbsp;</dd>
</dl>
<h2 class="title" id="I:D">D</h2>
<dl class="index">
<dt><span class="member-name-link"><a href="battleship/model/Direction.html#DEFAULT">DEFAULT</a></span> - battleship.model.<a href="battleship/model/Direction.html" title="enum in battleship.model">Direction</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/model/Direction.html#direction">direction</a></span> - Variable in enum battleship.model.<a href="battleship/model/Direction.html" title="enum in battleship.model">Direction</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/model/Ship.html#direction">direction</a></span> - Variable in class battleship.model.<a href="battleship/model/Ship.html" title="class in battleship.model">Ship</a></dt>
<dd>&nbsp;</dd>
<dt><a href="battleship/model/Direction.html" title="enum in battleship.model"><span class="type-name-link">Direction</span></a> - Enum in <a href="battleship/model/package-summary.html">battleship.model</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/model/Direction.html#%3Cinit%3E(battleship.utils.Pair,java.lang.String,int)">Direction(Pair&lt;Integer, Integer&gt;, String, int)</a></span> - Constructor for enum battleship.model.<a href="battleship/model/Direction.html" title="enum in battleship.model">Direction</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/view/Terminal.html#displayBoard()">displayBoard()</a></span> - Method in class battleship.view.<a href="battleship/view/Terminal.html" title="class in battleship.view">Terminal</a></dt>
<dd>
<div class="block">print board in terminal</div>
</dd>
<dt><span class="member-name-link"><a href="battleship/view/View.html#displayBoard()">displayBoard()</a></span> - Method in interface battleship.view.<a href="battleship/view/View.html" title="interface in battleship.view">View</a></dt>
<dd>
<div class="block">Display all grids</div>
</dd>
<dt><span class="member-name-link"><a href="battleship/view/Window.html#displayBoard()">displayBoard()</a></span> - Method in class battleship.view.<a href="battleship/view/Window.html" title="class in battleship.view">Window</a></dt>
<dd>
<div class="block">refresh windows to display updated content</div>
</dd>
<dt><span class="member-name-link"><a href="battleship/view/Terminal.html#displayWinner(battleship.model.player.Player)">displayWinner(Player)</a></span> - Method in class battleship.view.<a href="battleship/view/Terminal.html" title="class in battleship.view">Terminal</a></dt>
<dd>
<div class="block">print grid, winner player and close scanner, game automatically close after this</div>
</dd>
<dt><span class="member-name-link"><a href="battleship/view/View.html#displayWinner(battleship.model.player.Player)">displayWinner(Player)</a></span> - Method in interface battleship.view.<a href="battleship/view/View.html" title="interface in battleship.view">View</a></dt>
<dd>
<div class="block">Display the winner of the game and then close the game</div>
</dd>
<dt><span class="member-name-link"><a href="battleship/view/Window.html#displayWinner(battleship.model.player.Player)">displayWinner(Player)</a></span> - Method in class battleship.view.<a href="battleship/view/Window.html" title="class in battleship.view">Window</a></dt>
<dd>
<div class="block">open a dialog to display the winner and exit the program when window is closed</div>
</dd>
<dt><span class="member-name-link"><a href="battleship/model/Direction.html#DOWN">DOWN</a></span> - battleship.model.<a href="battleship/model/Direction.html" title="enum in battleship.model">Direction</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/view/Window.Draw.html#%3Cinit%3E(battleship.view.Window)">Draw(Window)</a></span> - Constructor for class battleship.view.<a href="battleship/view/Window.Draw.html" title="class in battleship.view">Window.Draw</a></dt>
<dd>&nbsp;</dd>
</dl>
<h2 class="title" id="I:E">E</h2>
<dl class="index">
<dt><span class="member-name-link"><a href="battleship/utils/Pair.html#equals(java.lang.Object)">equals(Object)</a></span> - Method in class battleship.utils.<a href="battleship/utils/Pair.html" title="class in battleship.utils">Pair</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/utils/Triplet.html#equals(java.lang.Object)">equals(Object)</a></span> - Method in class battleship.utils.<a href="battleship/utils/Triplet.html" title="class in battleship.utils">Triplet</a></dt>
<dd>&nbsp;</dd>
</dl>
<h2 class="title" id="I:F">F</h2>
<dl class="index">
<dt><span class="member-name-link"><a href="battleship/view/Window.html#frame">frame</a></span> - Variable in class battleship.view.<a href="battleship/view/Window.html" title="class in battleship.view">Window</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/model/Ship.html#fullCoords">fullCoords</a></span> - Variable in class battleship.model.<a href="battleship/model/Ship.html" title="class in battleship.model">Ship</a></dt>
<dd>
<div class="block">ship full coordinates calculate thank to base coordinates, direction and size</div>
</dd>
</dl>
<h2 class="title" id="I:G">G</h2>
<dl class="index">
<dt><span class="member-name-link"><a href="battleship/Main.html#game">game</a></span> - Static variable in class battleship.<a href="battleship/Main.html" title="class in battleship">Main</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/view/AbstractView.html#game">game</a></span> - Variable in class battleship.view.<a href="battleship/view/AbstractView.html" title="class in battleship.view">AbstractView</a></dt>
<dd>&nbsp;</dd>
<dt><a href="battleship/model/Game.html" title="class in battleship.model"><span class="type-name-link">Game</span></a> - Class in <a href="battleship/model/package-summary.html">battleship.model</a></dt>
<dd>
<div class="block">Main game class</div>
</dd>
<dt><span class="member-name-link"><a href="battleship/model/Game.html#%3Cinit%3E(battleship.model.player.Player%5B%5D)">Game(Player[])</a></span> - Constructor for class battleship.model.<a href="battleship/model/Game.html" title="class in battleship.model">Game</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/model/Direction.html#getArrow()">getArrow()</a></span> - Method in enum battleship.model.<a href="battleship/model/Direction.html" title="enum in battleship.model">Direction</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/model/Ship.html#getCoords()">getCoords()</a></span> - Method in class battleship.model.<a href="battleship/model/Ship.html" title="class in battleship.model">Ship</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/model/Game.html#getCurrentPlayer()">getCurrentPlayer()</a></span> - Method in class battleship.model.<a href="battleship/model/Game.html" title="class in battleship.model">Game</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/model/Direction.html#getDirection()">getDirection()</a></span> - Method in enum battleship.model.<a href="battleship/model/Direction.html" title="enum in battleship.model">Direction</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/model/Ship.html#getDirection()">getDirection()</a></span> - Method in class battleship.model.<a href="battleship/model/Ship.html" title="class in battleship.model">Ship</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/view/AbstractView.html#getDirectionFromChar()">getDirectionFromChar()</a></span> - Method in class battleship.view.<a href="battleship/view/AbstractView.html" title="class in battleship.view">AbstractView</a></dt>
<dd>
<div class="block">ask player for keyboard input and parse it into one of <a href="battleship/model/Direction.html" title="enum in battleship.model"><code>Direction</code></a> value</div>
</dd>
<dt><span class="member-name-link"><a href="battleship/model/Ship.html#getFullCoords()">getFullCoords()</a></span> - Method in class battleship.model.<a href="battleship/model/Ship.html" title="class in battleship.model">Ship</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/model/player/AbstractPlayer.html#getId()">getId()</a></span> - Method in class battleship.model.player.<a href="battleship/model/player/AbstractPlayer.html" title="class in battleship.model.player">AbstractPlayer</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/model/player/Player.html#getId()">getId()</a></span> - Method in interface battleship.model.player.<a href="battleship/model/player/Player.html" title="interface in battleship.model.player">Player</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/view/AbstractView.html#getKeyInput()">getKeyInput()</a></span> - Method in class battleship.view.<a href="battleship/view/AbstractView.html" title="class in battleship.view">AbstractView</a></dt>
<dd>
<div class="block">ask player for keyboard input and return result</div>
</dd>
<dt><span class="member-name-link"><a href="battleship/view/Terminal.html#getKeyInput()">getKeyInput()</a></span> - Method in class battleship.view.<a href="battleship/view/Terminal.html" title="class in battleship.view">Terminal</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/view/Window.html#getKeyInput()">getKeyInput()</a></span> - Method in class battleship.view.<a href="battleship/view/Window.html" title="class in battleship.view">Window</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/model/Direction.html#getKeyword()">getKeyword()</a></span> - Method in enum battleship.model.<a href="battleship/model/Direction.html" title="enum in battleship.model">Direction</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/utils/Pair.html#getLeft()">getLeft()</a></span> - Method in class battleship.utils.<a href="battleship/utils/Pair.html" title="class in battleship.utils">Pair</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/utils/Triplet.html#getLeft()">getLeft()</a></span> - Method in class battleship.utils.<a href="battleship/utils/Triplet.html" title="class in battleship.utils">Triplet</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/utils/Triplet.html#getMiddle()">getMiddle()</a></span> - Method in class battleship.utils.<a href="battleship/utils/Triplet.html" title="class in battleship.utils">Triplet</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/model/player/AbstractPlayer.html#getMoves()">getMoves()</a></span> - Method in class battleship.model.player.<a href="battleship/model/player/AbstractPlayer.html" title="class in battleship.model.player">AbstractPlayer</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/model/player/Player.html#getMoves()">getMoves()</a></span> - Method in interface battleship.model.player.<a href="battleship/model/player/Player.html" title="interface in battleship.model.player">Player</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/model/Game.html#getOtherPlayer()">getOtherPlayer()</a></span> - Method in class battleship.model.<a href="battleship/model/Game.html" title="class in battleship.model">Game</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/model/Game.html#getOtherPlayer(battleship.model.player.Player)">getOtherPlayer(Player)</a></span> - Method in class battleship.model.<a href="battleship/model/Game.html" title="class in battleship.model">Game</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/utils/Pair.html#getRight()">getRight()</a></span> - Method in class battleship.utils.<a href="battleship/utils/Pair.html" title="class in battleship.utils">Pair</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/utils/Triplet.html#getRight()">getRight()</a></span> - Method in class battleship.utils.<a href="battleship/utils/Triplet.html" title="class in battleship.utils">Triplet</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/model/player/AbstractPlayer.html#getShips()">getShips()</a></span> - Method in class battleship.model.player.<a href="battleship/model/player/AbstractPlayer.html" title="class in battleship.model.player">AbstractPlayer</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/model/player/Player.html#getShips()">getShips()</a></span> - Method in interface battleship.model.player.<a href="battleship/model/player/Player.html" title="interface in battleship.model.player">Player</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/model/Ship.html#getSize()">getSize()</a></span> - Method in class battleship.model.<a href="battleship/model/Ship.html" title="class in battleship.model">Ship</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/model/Game.html#getWinner()">getWinner()</a></span> - Method in class battleship.model.<a href="battleship/model/Game.html" title="class in battleship.model">Game</a></dt>
<dd>&nbsp;</dd>
</dl>
<h2 class="title" id="I:H">H</h2>
<dl class="index">
<dt><span class="member-name-link"><a href="battleship/utils/Pair.html#hashCode()">hashCode()</a></span> - Method in class battleship.utils.<a href="battleship/utils/Pair.html" title="class in battleship.utils">Pair</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/utils/Triplet.html#hashCode()">hashCode()</a></span> - Method in class battleship.utils.<a href="battleship/utils/Triplet.html" title="class in battleship.utils">Triplet</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/view/Window.html#height">height</a></span> - Variable in class battleship.view.<a href="battleship/view/Window.html" title="class in battleship.view">Window</a></dt>
<dd>
<div class="block">grids height, do no represent frame size</div>
</dd>
<dt><a href="battleship/model/player/Human.html" title="class in battleship.model.player"><span class="type-name-link">Human</span></a> - Class in <a href="battleship/model/player/package-summary.html">battleship.model.player</a></dt>
<dd>
<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>
</dd>
<dt><span class="member-name-link"><a href="battleship/model/player/Human.html#%3Cinit%3E()">Human()</a></span> - Constructor for class battleship.model.player.<a href="battleship/model/player/Human.html" title="class in battleship.model.player">Human</a></dt>
<dd>&nbsp;</dd>
</dl>
<h2 class="title" id="I:I">I</h2>
<dl class="index">
<dt><span class="member-name-link"><a href="battleship/model/player/AbstractPlayer.html#id">id</a></span> - Variable in class battleship.model.player.<a href="battleship/model/player/AbstractPlayer.html" title="class in battleship.model.player">AbstractPlayer</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/model/Ship.html#isDrown">isDrown</a></span> - Variable in class battleship.model.<a href="battleship/model/Ship.html" title="class in battleship.model">Ship</a></dt>
<dd>
<div class="block">if true the ship is destroyed</div>
</dd>
<dt><span class="member-name-link"><a href="battleship/model/Ship.html#isDrown()">isDrown()</a></span> - Method in class battleship.model.<a href="battleship/model/Ship.html" title="class in battleship.model">Ship</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/view/AbstractView.html#isPositionDrowned(battleship.model.player.Player,battleship.model.Ship,battleship.utils.Pair)">isPositionDrowned(Player, Ship, Pair&lt;Integer, Integer&gt;)</a></span> - Method in class battleship.view.<a href="battleship/view/AbstractView.html" title="class in battleship.view">AbstractView</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/view/AbstractView.html#isPositionDrowned(battleship.model.player.Player,battleship.utils.Pair)">isPositionDrowned(Player, Pair&lt;Integer, Integer&gt;)</a></span> - Method in class battleship.view.<a href="battleship/view/AbstractView.html" title="class in battleship.view">AbstractView</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/view/AbstractView.html#isShipPosition(battleship.model.Ship,battleship.utils.Pair)">isShipPosition(Ship, Pair&lt;Integer, Integer&gt;)</a></span> - Method in class battleship.view.<a href="battleship/view/AbstractView.html" title="class in battleship.view">AbstractView</a></dt>
<dd>&nbsp;</dd>
</dl>
<h2 class="title" id="I:K">K</h2>
<dl class="index">
<dt><span class="member-name-link"><a href="battleship/view/Terminal.html#keyboardComponent">keyboardComponent</a></span> - Variable in class battleship.view.<a href="battleship/view/Terminal.html" title="class in battleship.view">Terminal</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/view/Window.html#keyboardComponent">keyboardComponent</a></span> - Variable in class battleship.view.<a href="battleship/view/Window.html" title="class in battleship.view">Window</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/control/TerminalKeyboardListener.html#keyboardInput()">keyboardInput()</a></span> - Method in class battleship.control.<a href="battleship/control/TerminalKeyboardListener.html" title="class in battleship.control">TerminalKeyboardListener</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/view/AbstractView.html#keyboardInput()">keyboardInput()</a></span> - Method in class battleship.view.<a href="battleship/view/AbstractView.html" title="class in battleship.view">AbstractView</a></dt>
<dd>
<div class="block">ask <a href="battleship/model/Game.html#currentPlayer"><code>Game.currentPlayer</code></a> for keyboard input</div>
</dd>
<dt><span class="member-name-link"><a href="battleship/view/Terminal.html#keyboardInput()">keyboardInput()</a></span> - Method in class battleship.view.<a href="battleship/view/Terminal.html" title="class in battleship.view">Terminal</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/view/Window.html#keyboardInput()">keyboardInput()</a></span> - Method in class battleship.view.<a href="battleship/view/Window.html" title="class in battleship.view">Window</a></dt>
<dd>
<div class="block">ask <a href="battleship/model/Game.html#currentPlayer"><code>Game.currentPlayer</code></a> for keyboard input</div>
</dd>
<dt><span class="member-name-link"><a href="battleship/view/Terminal.html#keyboardInputInteger()">keyboardInputInteger()</a></span> - Method in class battleship.view.<a href="battleship/view/Terminal.html" title="class in battleship.view">Terminal</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/control/WindowKeyboardListener.html#keyPressed(java.awt.event.KeyEvent)">keyPressed(KeyEvent)</a></span> - Method in class battleship.control.<a href="battleship/control/WindowKeyboardListener.html" title="class in battleship.control">WindowKeyboardListener</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/control/WindowKeyboardListener.html#keyReleased(java.awt.event.KeyEvent)">keyReleased(KeyEvent)</a></span> - Method in class battleship.control.<a href="battleship/control/WindowKeyboardListener.html" title="class in battleship.control">WindowKeyboardListener</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/control/WindowKeyboardListener.html#keyTyped">keyTyped</a></span> - Variable in class battleship.control.<a href="battleship/control/WindowKeyboardListener.html" title="class in battleship.control">WindowKeyboardListener</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/control/WindowKeyboardListener.html#keyTyped(java.awt.event.KeyEvent)">keyTyped(KeyEvent)</a></span> - Method in class battleship.control.<a href="battleship/control/WindowKeyboardListener.html" title="class in battleship.control">WindowKeyboardListener</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/control/WindowKeyboardListener.html#keyTypedArrow">keyTypedArrow</a></span> - Variable in class battleship.control.<a href="battleship/control/WindowKeyboardListener.html" title="class in battleship.control">WindowKeyboardListener</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/model/Direction.html#keyword">keyword</a></span> - Variable in enum battleship.model.<a href="battleship/model/Direction.html" title="enum in battleship.model">Direction</a></dt>
<dd>&nbsp;</dd>
</dl>
<h2 class="title" id="I:L">L</h2>
<dl class="index">
<dt><span class="member-name-link"><a href="battleship/control/WindowMouseListener.html#lastInput">lastInput</a></span> - Variable in class battleship.control.<a href="battleship/control/WindowMouseListener.html" title="class in battleship.control">WindowMouseListener</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/utils/Pair.html#left">left</a></span> - Variable in class battleship.utils.<a href="battleship/utils/Pair.html" title="class in battleship.utils">Pair</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/utils/Triplet.html#left">left</a></span> - Variable in class battleship.utils.<a href="battleship/utils/Triplet.html" title="class in battleship.utils">Triplet</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/model/Direction.html#LEFT">LEFT</a></span> - battleship.model.<a href="battleship/model/Direction.html" title="enum in battleship.model">Direction</a></dt>
<dd>&nbsp;</dd>
</dl>
<h2 class="title" id="I:M">M</h2>
<dl class="index">
<dt><span class="member-name-link"><a href="battleship/Main.html#main(java.lang.String%5B%5D)">main(String[])</a></span> - Static method in class battleship.<a href="battleship/Main.html" title="class in battleship">Main</a></dt>
<dd>&nbsp;</dd>
<dt><a href="battleship/Main.html" title="class in battleship"><span class="type-name-link">Main</span></a> - Class in <a href="battleship/package-summary.html">battleship</a></dt>
<dd>
<div class="block">Main class
Given arguments are importants, please give attention to <a href="battleship/Main.html#parseArgs(java.lang.String%5B%5D)"><code>Main.parseArgs(String[])</code></a> about this</div>
</dd>
<dt><span class="member-name-link"><a href="battleship/Main.html#%3Cinit%3E()">Main()</a></span> - Constructor for class battleship.<a href="battleship/Main.html" title="class in battleship">Main</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/utils/Triplet.html#middle">middle</a></span> - Variable in class battleship.utils.<a href="battleship/utils/Triplet.html" title="class in battleship.utils">Triplet</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/control/WindowMouseListener.html#mouseClicked(java.awt.event.MouseEvent)">mouseClicked(MouseEvent)</a></span> - Method in class battleship.control.<a href="battleship/control/WindowMouseListener.html" title="class in battleship.control">WindowMouseListener</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/view/WindowListener.html#mouseClicked(java.awt.event.MouseEvent)">mouseClicked(MouseEvent)</a></span> - Method in class battleship.view.<a href="battleship/view/WindowListener.html" title="class in battleship.view">WindowListener</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/view/Window.html#mouseComponent">mouseComponent</a></span> - Variable in class battleship.view.<a href="battleship/view/Window.html" title="class in battleship.view">Window</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/control/WindowMouseListener.html#mouseEntered(java.awt.event.MouseEvent)">mouseEntered(MouseEvent)</a></span> - Method in class battleship.control.<a href="battleship/control/WindowMouseListener.html" title="class in battleship.control">WindowMouseListener</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/view/WindowListener.html#mouseEntered(java.awt.event.MouseEvent)">mouseEntered(MouseEvent)</a></span> - Method in class battleship.view.<a href="battleship/view/WindowListener.html" title="class in battleship.view">WindowListener</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/control/WindowMouseListener.html#mouseExited(java.awt.event.MouseEvent)">mouseExited(MouseEvent)</a></span> - Method in class battleship.control.<a href="battleship/control/WindowMouseListener.html" title="class in battleship.control">WindowMouseListener</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/view/WindowListener.html#mouseExited(java.awt.event.MouseEvent)">mouseExited(MouseEvent)</a></span> - Method in class battleship.view.<a href="battleship/view/WindowListener.html" title="class in battleship.view">WindowListener</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/view/AbstractView.html#mouseInput(battleship.model.player.Player)">mouseInput(Player)</a></span> - Method in class battleship.view.<a href="battleship/view/AbstractView.html" title="class in battleship.view">AbstractView</a></dt>
<dd>
<div class="block">ask <code>player</code> for mouse input</div>
</dd>
<dt><span class="member-name-link"><a href="battleship/view/Terminal.html#mouseInput(battleship.model.player.Player)">mouseInput(Player)</a></span> - Method in class battleship.view.<a href="battleship/view/Terminal.html" title="class in battleship.view">Terminal</a></dt>
<dd>
<div class="block">Never call in Terminal</div>
</dd>
<dt><span class="member-name-link"><a href="battleship/view/Window.html#mouseInput(battleship.model.player.Player)">mouseInput(Player)</a></span> - Method in class battleship.view.<a href="battleship/view/Window.html" title="class in battleship.view">Window</a></dt>
<dd>
<div class="block">ask <code>player</code> for mouse input</div>
</dd>
<dt><span class="member-name-link"><a href="battleship/control/WindowMouseListener.html#mousePressed(java.awt.event.MouseEvent)">mousePressed(MouseEvent)</a></span> - Method in class battleship.control.<a href="battleship/control/WindowMouseListener.html" title="class in battleship.control">WindowMouseListener</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/view/WindowListener.html#mousePressed(java.awt.event.MouseEvent)">mousePressed(MouseEvent)</a></span> - Method in class battleship.view.<a href="battleship/view/WindowListener.html" title="class in battleship.view">WindowListener</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/control/WindowMouseListener.html#mouseReleased(java.awt.event.MouseEvent)">mouseReleased(MouseEvent)</a></span> - Method in class battleship.control.<a href="battleship/control/WindowMouseListener.html" title="class in battleship.control">WindowMouseListener</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/view/WindowListener.html#mouseReleased(java.awt.event.MouseEvent)">mouseReleased(MouseEvent)</a></span> - Method in class battleship.view.<a href="battleship/view/WindowListener.html" title="class in battleship.view">WindowListener</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/model/Game.html#move(battleship.utils.Pair)">move(Pair&lt;Integer, Integer&gt;)</a></span> - Method in class battleship.model.<a href="battleship/model/Game.html" title="class in battleship.model">Game</a></dt>
<dd>
<div class="block">Play the selected move from current player in grid</div>
</dd>
<dt><span class="member-name-link"><a href="battleship/model/player/AbstractPlayer.html#moves">moves</a></span> - Variable in class battleship.model.player.<a href="battleship/model/player/AbstractPlayer.html" title="class in battleship.model.player">AbstractPlayer</a></dt>
<dd>
<div class="block">reference every shot on the opponent board, left and middle side of the Triplet reference the coordinates and the
right side if this move hit or not an opponent ship</div>
</dd>
</dl>
<h2 class="title" id="I:O">O</h2>
<dl class="index">
<dt><span class="member-name-link"><a href="battleship/view/Window.html#openDialog(java.lang.String)">openDialog(String)</a></span> - Method in class battleship.view.<a href="battleship/view/Window.html" title="class in battleship.view">Window</a></dt>
<dd>
<div class="block">Open a window with <code>message</code> as content and with a "OK" button</div>
</dd>
<dt><span class="member-name-link"><a href="battleship/view/Window.html#openDialog(java.lang.String,boolean)">openDialog(String, boolean)</a></span> - Method in class battleship.view.<a href="battleship/view/Window.html" title="class in battleship.view">Window</a></dt>
<dd>
<div class="block">Open a window with <code>message</code> as content and with a "OK" button</div>
</dd>
</dl>
<h2 class="title" id="I:P">P</h2>
<dl class="index">
<dt><span class="member-name-link"><a href="battleship/view/Window.Draw.html#paintComponent(java.awt.Graphics)">paintComponent(Graphics)</a></span> - Method in class battleship.view.<a href="battleship/view/Window.Draw.html" title="class in battleship.view">Window.Draw</a></dt>
<dd>&nbsp;</dd>
<dt><a href="battleship/utils/Pair.html" title="class in battleship.utils"><span class="type-name-link">Pair</span></a>&lt;<a href="battleship/utils/Pair.html" title="type parameter in Pair">U</a>,&#8203;<a href="battleship/utils/Pair.html" title="type parameter in Pair">K</a>&gt; - Class in <a href="battleship/utils/package-summary.html">battleship.utils</a></dt>
<dd>
<div class="block">tuple containing 2 generic type elements</div>
</dd>
<dt><span class="member-name-link"><a href="battleship/utils/Pair.html#%3Cinit%3E(U,K)">Pair(U, K)</a></span> - Constructor for class battleship.utils.<a href="battleship/utils/Pair.html" title="class in battleship.utils">Pair</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/Main.html#parseArgs(java.lang.String%5B%5D)">parseArgs(String[])</a></span> - Static method in class battleship.<a href="battleship/Main.html" title="class in battleship">Main</a></dt>
<dd>
<div class="block">Read and parse launch arguments.<br>
launch arguments need to follow this syntax:<br></div>
</dd>
<dt><span class="member-name-link"><a href="battleship/model/player/Computer.html#placeShipRandomly()">placeShipRandomly()</a></span> - Method in class battleship.model.player.<a href="battleship/model/player/Computer.html" title="class in battleship.model.player">Computer</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/model/player/Human.html#placeShips()">placeShips()</a></span> - Method in class battleship.model.player.<a href="battleship/model/player/Human.html" title="class in battleship.model.player">Human</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/model/player/Player.html#placeShips()">placeShips()</a></span> - Method in interface battleship.model.player.<a href="battleship/model/player/Player.html" title="interface in battleship.model.player">Player</a></dt>
<dd>
<div class="block">Used by <a href="battleship/model/player/Computer.html" title="class in battleship.model.player"><code>Computer</code></a> instances to place ships</div>
</dd>
<dt><span class="member-name-link"><a href="battleship/model/player/Random.html#placeShips()">placeShips()</a></span> - Method in class battleship.model.player.<a href="battleship/model/player/Random.html" title="class in battleship.model.player">Random</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/model/Game.html#Play(battleship.view.View)">Play(View)</a></span> - Method in class battleship.model.<a href="battleship/model/Game.html" title="class in battleship.model">Game</a></dt>
<dd>
<div class="block">game loop</div>
</dd>
<dt><a href="battleship/model/player/Player.html" title="interface in battleship.model.player"><span class="type-name-link">Player</span></a> - Interface in <a href="battleship/model/player/package-summary.html">battleship.model.player</a></dt>
<dd>
<div class="block">Player interface, used as an API.</div>
</dd>
<dt><span class="member-name-link"><a href="battleship/control/WindowMouseListener.html#playerIdLastInput">playerIdLastInput</a></span> - Variable in class battleship.control.<a href="battleship/control/WindowMouseListener.html" title="class in battleship.control">WindowMouseListener</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/model/Game.html#players">players</a></span> - Variable in class battleship.model.<a href="battleship/model/Game.html" title="class in battleship.model">Game</a></dt>
<dd>&nbsp;</dd>
</dl>
<h2 class="title" id="I:R">R</h2>
<dl class="index">
<dt><a href="battleship/model/player/Random.html" title="class in battleship.model.player"><span class="type-name-link">Random</span></a> - Class in <a href="battleship/model/player/package-summary.html">battleship.model.player</a></dt>
<dd>
<div class="block">place its ship and choose moves randomly</div>
</dd>
<dt><span class="member-name-link"><a href="battleship/model/player/Random.html#%3Cinit%3E()">Random()</a></span> - Constructor for class battleship.model.player.<a href="battleship/model/player/Random.html" title="class in battleship.model.player">Random</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/model/Ship.html#recalculateFullCoords()">recalculateFullCoords()</a></span> - Method in class battleship.model.<a href="battleship/model/Ship.html" title="class in battleship.model">Ship</a></dt>
<dd>
<div class="block">recalculate all coords based on this base coords, direction and size</div>
</dd>
<dt><span class="member-name-link"><a href="battleship/control/WindowKeyboardListener.html#requestInput">requestInput</a></span> - Variable in class battleship.control.<a href="battleship/control/WindowKeyboardListener.html" title="class in battleship.control">WindowKeyboardListener</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/control/WindowMouseListener.html#requestInput">requestInput</a></span> - Variable in class battleship.control.<a href="battleship/control/WindowMouseListener.html" title="class in battleship.control">WindowMouseListener</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/utils/Pair.html#right">right</a></span> - Variable in class battleship.utils.<a href="battleship/utils/Pair.html" title="class in battleship.utils">Pair</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/utils/Triplet.html#right">right</a></span> - Variable in class battleship.utils.<a href="battleship/utils/Triplet.html" title="class in battleship.utils">Triplet</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/model/Direction.html#RIGHT">RIGHT</a></span> - battleship.model.<a href="battleship/model/Direction.html" title="enum in battleship.model">Direction</a></dt>
<dd>&nbsp;</dd>
</dl>
<h2 class="title" id="I:S">S</h2>
<dl class="index">
<dt><span class="member-name-link"><a href="battleship/control/TerminalKeyboardListener.html#scanner">scanner</a></span> - Variable in class battleship.control.<a href="battleship/control/TerminalKeyboardListener.html" title="class in battleship.control">TerminalKeyboardListener</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/view/Terminal.html#scanner">scanner</a></span> - Static variable in class battleship.view.<a href="battleship/view/Terminal.html" title="class in battleship.view">Terminal</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/model/Ship.html#setCoords(battleship.utils.Pair)">setCoords(Pair&lt;Integer, Integer&gt;)</a></span> - Method in class battleship.model.<a href="battleship/model/Ship.html" title="class in battleship.model">Ship</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/model/Ship.html#setDirection(battleship.model.Direction)">setDirection(Direction)</a></span> - Method in class battleship.model.<a href="battleship/model/Ship.html" title="class in battleship.model">Ship</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/model/Ship.html#setDrown()">setDrown()</a></span> - Method in class battleship.model.<a href="battleship/model/Ship.html" title="class in battleship.model">Ship</a></dt>
<dd>
<div class="block">set <a href="battleship/model/Ship.html#isDrown"><code>Ship.isDrown</code></a> to true</div>
</dd>
<dt><span class="member-name-link"><a href="battleship/model/player/AbstractPlayer.html#setId(int)">setId(int)</a></span> - Method in class battleship.model.player.<a href="battleship/model/player/AbstractPlayer.html" title="class in battleship.model.player">AbstractPlayer</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/model/player/Player.html#setId(int)">setId(int)</a></span> - Method in interface battleship.model.player.<a href="battleship/model/player/Player.html" title="interface in battleship.model.player">Player</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/view/AbstractView.html#setShips(battleship.model.player.Player)">setShips(Player)</a></span> - Method in class battleship.view.<a href="battleship/view/AbstractView.html" title="class in battleship.view">AbstractView</a></dt>
<dd>
<div class="block">used if <code>player</code> instance of <a href="battleship/model/player/Computer.html" title="class in battleship.model.player"><code>Computer</code></a></div>
</dd>
<dt><span class="member-name-link"><a href="battleship/view/Terminal.html#setShips(battleship.model.player.Player)">setShips(Player)</a></span> - Method in class battleship.view.<a href="battleship/view/Terminal.html" title="class in battleship.view">Terminal</a></dt>
<dd>
<div class="block">Ask <code>player</code> to set position of its ships</div>
</dd>
<dt><span class="member-name-link"><a href="battleship/view/View.html#setShips(battleship.model.player.Player)">setShips(Player)</a></span> - Method in interface battleship.view.<a href="battleship/view/View.html" title="interface in battleship.view">View</a></dt>
<dd>
<div class="block">Ask <code>player</code> to set position of its ships</div>
</dd>
<dt><span class="member-name-link"><a href="battleship/view/Window.html#setShips(battleship.model.player.Player)">setShips(Player)</a></span> - Method in class battleship.view.<a href="battleship/view/Window.html" title="class in battleship.view">Window</a></dt>
<dd>
<div class="block">Ask <code>player</code> to set position of its ships</div>
</dd>
<dt><span class="member-name-link"><a href="battleship/model/player/AbstractPlayer.html#setShips(battleship.model.Ship)">setShips(Ship)</a></span> - Method in class battleship.model.player.<a href="battleship/model/player/AbstractPlayer.html" title="class in battleship.model.player">AbstractPlayer</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/model/player/Player.html#setShips(battleship.model.Ship)">setShips(Ship)</a></span> - Method in interface battleship.model.player.<a href="battleship/model/player/Player.html" title="interface in battleship.model.player">Player</a></dt>
<dd>
<div class="block">check if ship position and direction are valides and does not overlap on other vessels
add the ship to player <a href="battleship/model/player/AbstractPlayer.html#ships"><code>AbstractPlayer.ships</code></a> list and return <code>true</code> if valid
<code>false</code> otherwise</div>
</dd>
<dt><span class="member-name-link"><a href="battleship/view/AbstractView.html#setUpperText(java.lang.String)">setUpperText(String)</a></span> - Method in class battleship.view.<a href="battleship/view/AbstractView.html" title="class in battleship.view">AbstractView</a></dt>
<dd>
<div class="block">Display a text above the grid on <a href="battleship/view/Window.html" title="class in battleship.view"><code>Window</code></a>, simply print text on <a href="battleship/view/Terminal.html" title="class in battleship.view"><code>Terminal</code></a></div>
</dd>
<dt><span class="member-name-link"><a href="battleship/view/Terminal.html#setUpperText(java.lang.String)">setUpperText(String)</a></span> - Method in class battleship.view.<a href="battleship/view/Terminal.html" title="class in battleship.view">Terminal</a></dt>
<dd>
<div class="block">print string</div>
</dd>
<dt><span class="member-name-link"><a href="battleship/view/Window.html#setUpperText(java.lang.String)">setUpperText(String)</a></span> - Method in class battleship.view.<a href="battleship/view/Window.html" title="class in battleship.view">Window</a></dt>
<dd>
<div class="block">Display a text above the grid</div>
</dd>
<dt><a href="battleship/model/Ship.html" title="class in battleship.model"><span class="type-name-link">Ship</span></a> - Class in <a href="battleship/model/package-summary.html">battleship.model</a></dt>
<dd>
<div class="block">player's ship class</div>
</dd>
<dt><span class="member-name-link"><a href="battleship/model/Ship.html#%3Cinit%3E(battleship.utils.Pair,int,battleship.model.Direction)">Ship(Pair&lt;Integer, Integer&gt;, int, Direction)</a></span> - Constructor for class battleship.model.<a href="battleship/model/Ship.html" title="class in battleship.model">Ship</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/model/player/AbstractPlayer.html#ships">ships</a></span> - Variable in class battleship.model.player.<a href="battleship/model/player/AbstractPlayer.html" title="class in battleship.model.player">AbstractPlayer</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/model/player/Player.html#shipSize">shipSize</a></span> - Static variable in interface battleship.model.player.<a href="battleship/model/player/Player.html" title="interface in battleship.model.player">Player</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/view/View.html#shipsSize">shipsSize</a></span> - Static variable in interface battleship.view.<a href="battleship/view/View.html" title="interface in battleship.view">View</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/model/Ship.html#size">size</a></span> - Variable in class battleship.model.<a href="battleship/model/Ship.html" title="class in battleship.model">Ship</a></dt>
<dd>
<div class="block">ship size</div>
</dd>
</dl>
<h2 class="title" id="I:T">T</h2>
<dl class="index">
<dt><a href="battleship/view/Terminal.html" title="class in battleship.view"><span class="type-name-link">Terminal</span></a> - Class in <a href="battleship/view/package-summary.html">battleship.view</a></dt>
<dd>
<div class="block">Terminal view, instanced if argument 2 equals to "nogui"</div>
</dd>
<dt><span class="member-name-link"><a href="battleship/view/Terminal.html#%3Cinit%3E(battleship.model.Game)">Terminal(Game)</a></span> - Constructor for class battleship.view.<a href="battleship/view/Terminal.html" title="class in battleship.view">Terminal</a></dt>
<dd>&nbsp;</dd>
<dt><a href="battleship/control/TerminalKeyboardListener.html" title="class in battleship.control"><span class="type-name-link">TerminalKeyboardListener</span></a> - Class in <a href="battleship/control/package-summary.html">battleship.control</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/control/TerminalKeyboardListener.html#%3Cinit%3E(java.util.Scanner)">TerminalKeyboardListener(Scanner)</a></span> - Constructor for class battleship.control.<a href="battleship/control/TerminalKeyboardListener.html" title="class in battleship.control">TerminalKeyboardListener</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/model/player/AbstractPlayer.html#toString()">toString()</a></span> - Method in class battleship.model.player.<a href="battleship/model/player/AbstractPlayer.html" title="class in battleship.model.player">AbstractPlayer</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/model/Ship.html#toString()">toString()</a></span> - Method in class battleship.model.<a href="battleship/model/Ship.html" title="class in battleship.model">Ship</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/utils/Pair.html#toString()">toString()</a></span> - Method in class battleship.utils.<a href="battleship/utils/Pair.html" title="class in battleship.utils">Pair</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/utils/Triplet.html#toString()">toString()</a></span> - Method in class battleship.utils.<a href="battleship/utils/Triplet.html" title="class in battleship.utils">Triplet</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/view/AbstractView.html#toString()">toString()</a></span> - Method in class battleship.view.<a href="battleship/view/AbstractView.html" title="class in battleship.view">AbstractView</a></dt>
<dd>
<div class="block">Used during debugging, used in terminal to display grids too</div>
</dd>
<dt><span class="member-name-link"><a href="battleship/view/AbstractView.html#toString(boolean)">toString(boolean)</a></span> - Method in class battleship.view.<a href="battleship/view/AbstractView.html" title="class in battleship.view">AbstractView</a></dt>
<dd>&nbsp;</dd>
<dt><a href="battleship/utils/Triplet.html" title="class in battleship.utils"><span class="type-name-link">Triplet</span></a>&lt;<a href="battleship/utils/Triplet.html" title="type parameter in Triplet">U</a>,&#8203;<a href="battleship/utils/Triplet.html" title="type parameter in Triplet">K</a>,&#8203;<a href="battleship/utils/Triplet.html" title="type parameter in Triplet">V</a>&gt; - Class in <a href="battleship/utils/package-summary.html">battleship.utils</a></dt>
<dd>
<div class="block">tuple containing 3 generic type elements</div>
</dd>
<dt><span class="member-name-link"><a href="battleship/utils/Triplet.html#%3Cinit%3E(battleship.utils.Pair,V)">Triplet(Pair&lt;U, K&gt;, V)</a></span> - Constructor for class battleship.utils.<a href="battleship/utils/Triplet.html" title="class in battleship.utils">Triplet</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/utils/Triplet.html#%3Cinit%3E(U,K,V)">Triplet(U, K, V)</a></span> - Constructor for class battleship.utils.<a href="battleship/utils/Triplet.html" title="class in battleship.utils">Triplet</a></dt>
<dd>&nbsp;</dd>
</dl>
<h2 class="title" id="I:U">U</h2>
<dl class="index">
<dt><span class="member-name-link"><a href="battleship/model/Direction.html#UP">UP</a></span> - battleship.model.<a href="battleship/model/Direction.html" title="enum in battleship.model">Direction</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/model/Ship.html#updateIsDrown(battleship.model.player.Player)">updateIsDrown(Player)</a></span> - Method in class battleship.model.<a href="battleship/model/Ship.html" title="class in battleship.model">Ship</a></dt>
<dd>
<div class="block">update value <a href="battleship/model/Ship.html#isDrown"><code>Ship.isDrown</code></a> to true if <code>player</code> hit all of ship boxes</div>
</dd>
<dt><span class="member-name-link"><a href="battleship/view/Window.html#upperSubTitle">upperSubTitle</a></span> - Variable in class battleship.view.<a href="battleship/view/Window.html" title="class in battleship.view">Window</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/view/Window.html#upperTitle">upperTitle</a></span> - Variable in class battleship.view.<a href="battleship/view/Window.html" title="class in battleship.view">Window</a></dt>
<dd>&nbsp;</dd>
</dl>
<h2 class="title" id="I:V">V</h2>
<dl class="index">
<dt><span class="member-name-link"><a href="battleship/model/player/AbstractPlayer.html#validMoves()">validMoves()</a></span> - Method in class battleship.model.player.<a href="battleship/model/player/AbstractPlayer.html" title="class in battleship.model.player">AbstractPlayer</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/model/player/Player.html#validMoves()">validMoves()</a></span> - Method in interface battleship.model.player.<a href="battleship/model/player/Player.html" title="interface in battleship.model.player">Player</a></dt>
<dd>
<div class="block">give a list of the player possible moves, used in <a href="battleship/model/player/Player.html#chooseMove()"><code>Player.chooseMove()</code></a></div>
</dd>
<dt><span class="member-name-link"><a href="battleship/model/Direction.html#valueOf(java.lang.String)">valueOf(String)</a></span> - Static method in enum battleship.model.<a href="battleship/model/Direction.html" title="enum in battleship.model">Direction</a></dt>
<dd>
<div class="block">Returns the enum constant of this type with the specified name.</div>
</dd>
<dt><span class="member-name-link"><a href="battleship/model/Direction.html#values()">values()</a></span> - Static method in enum battleship.model.<a href="battleship/model/Direction.html" title="enum in battleship.model">Direction</a></dt>
<dd>
<div class="block">Returns an array containing the constants of this enum type, in
the order they are declared.</div>
</dd>
<dt><span class="member-name-link"><a href="battleship/Main.html#view">view</a></span> - Static variable in class battleship.<a href="battleship/Main.html" title="class in battleship">Main</a></dt>
<dd>&nbsp;</dd>
<dt><a href="battleship/view/View.html" title="interface in battleship.view"><span class="type-name-link">View</span></a> - Interface in <a href="battleship/view/package-summary.html">battleship.view</a></dt>
<dd>
<div class="block">View interface, used as an API</div>
</dd>
</dl>
<h2 class="title" id="I:W">W</h2>
<dl class="index">
<dt><span class="member-name-link"><a href="battleship/view/Window.html#width">width</a></span> - Variable in class battleship.view.<a href="battleship/view/Window.html" title="class in battleship.view">Window</a></dt>
<dd>
<div class="block">grids width, do no represent frame size</div>
</dd>
<dt><span class="member-name-link"><a href="battleship/control/WindowMouseListener.html#window">window</a></span> - Variable in class battleship.control.<a href="battleship/control/WindowMouseListener.html" title="class in battleship.control">WindowMouseListener</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/view/Window.Draw.html#window">window</a></span> - Variable in class battleship.view.<a href="battleship/view/Window.Draw.html" title="class in battleship.view">Window.Draw</a></dt>
<dd>&nbsp;</dd>
<dt><a href="battleship/view/Window.html" title="class in battleship.view"><span class="type-name-link">Window</span></a> - Class in <a href="battleship/view/package-summary.html">battleship.view</a></dt>
<dd>
<div class="block">Window view, instanced if argument 2 equals to "nogui"</div>
</dd>
<dt><span class="member-name-link"><a href="battleship/view/Window.html#%3Cinit%3E(battleship.model.Game)">Window(Game)</a></span> - Constructor for class battleship.view.<a href="battleship/view/Window.html" title="class in battleship.view">Window</a></dt>
<dd>&nbsp;</dd>
<dt><a href="battleship/view/Window.Draw.html" title="class in battleship.view"><span class="type-name-link">Window.Draw</span></a> - Class in <a href="battleship/view/package-summary.html">battleship.view</a></dt>
<dd>
<div class="block">Panel where we paint the board</div>
</dd>
<dt><a href="battleship/control/WindowKeyboardListener.html" title="class in battleship.control"><span class="type-name-link">WindowKeyboardListener</span></a> - Class in <a href="battleship/control/package-summary.html">battleship.control</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/control/WindowKeyboardListener.html#%3Cinit%3E()">WindowKeyboardListener()</a></span> - Constructor for class battleship.control.<a href="battleship/control/WindowKeyboardListener.html" title="class in battleship.control">WindowKeyboardListener</a></dt>
<dd>&nbsp;</dd>
<dt><a href="battleship/view/WindowListener.html" title="class in battleship.view"><span class="type-name-link">WindowListener</span></a> - Class in <a href="battleship/view/package-summary.html">battleship.view</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/view/WindowListener.html#%3Cinit%3E()">WindowListener()</a></span> - Constructor for class battleship.view.<a href="battleship/view/WindowListener.html" title="class in battleship.view">WindowListener</a></dt>
<dd>&nbsp;</dd>
<dt><a href="battleship/control/WindowMouseListener.html" title="class in battleship.control"><span class="type-name-link">WindowMouseListener</span></a> - Class in <a href="battleship/control/package-summary.html">battleship.control</a></dt>
<dd>&nbsp;</dd>
<dt><span class="member-name-link"><a href="battleship/control/WindowMouseListener.html#%3Cinit%3E(battleship.view.Window)">WindowMouseListener(Window)</a></span> - Constructor for class battleship.control.<a href="battleship/control/WindowMouseListener.html" title="class in battleship.control">WindowMouseListener</a></dt>
<dd>&nbsp;</dd>
</dl>
<a href="#I:A">A</a>&nbsp;<a href="#I:B">B</a>&nbsp;<a href="#I:C">C</a>&nbsp;<a href="#I:D">D</a>&nbsp;<a href="#I:E">E</a>&nbsp;<a href="#I:F">F</a>&nbsp;<a href="#I:G">G</a>&nbsp;<a href="#I:H">H</a>&nbsp;<a href="#I:I">I</a>&nbsp;<a href="#I:K">K</a>&nbsp;<a href="#I:L">L</a>&nbsp;<a href="#I:M">M</a>&nbsp;<a href="#I:O">O</a>&nbsp;<a href="#I:P">P</a>&nbsp;<a href="#I:R">R</a>&nbsp;<a href="#I:S">S</a>&nbsp;<a href="#I:T">T</a>&nbsp;<a href="#I:U">U</a>&nbsp;<a href="#I:V">V</a>&nbsp;<a href="#I:W">W</a>&nbsp;<br><a href="allclasses-index.html">All&nbsp;Classes</a><span class="vertical-separator">|</span><a href="allpackages-index.html">All&nbsp;Packages</a></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>Package</li>
<li>Class</li>
<li><a href="overview-tree.html">Tree</a></li>
<li><a href="deprecated-list.html">Deprecated</a></li>
<li class="nav-bar-cell1-rev">Index</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>