Files
cours-420-301-ah/docs/HockeyGame.html
T
2023-12-05 12:13:57 -05:00

260 lines
6.4 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<title>HockeyGame - Programmation Client II documentation</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="doc-current-symbol" content="HockeyGame">
<link rel="stylesheet" href="./styles.css">
</head>
<body>
<nav id="sidepanel">
<h2><a href="index.html"><span>Programmation Client II</span></a></h2>
<div class="section_title"><div class="symbol_kind kind_Class_text kind_Class_bg" title="Class">
c
</div>
<h3 class="kind_Class_text">Classes</h3></div>
<ul>
<li>
<a href="HockeyGame.html" title="HockeyGame" class=""><span><code>HockeyGame</code></span></a>
</li>
</ul>
<div class="section_title"><div class="symbol_kind kind_Function_text kind_Function_bg" title="Function">
f
</div>
<h3 class="kind_Function_text">Functions</h3></div>
<ul>
<li>
<a href="average.html" title="average" class=""><span><code>average</code></span></a>
</li>
<li>
<a href="isValidIsbn.html" title="isValidIsbn" class=""><span><code>isValidIsbn</code></span></a>
</li>
<li>
<a href="isValidIsbn10.html" title="isValidIsbn10" class=""><span><code>isValidIsbn10</code></span></a>
</li>
<li>
<a href="isValidIsbn13.html" title="isValidIsbn13" class=""><span><code>isValidIsbn13</code></span></a>
</li>
<li>
<a href="std.html" title="std" class=""><span><code>std</code></span></a>
</li>
</ul>
<div class="section_title"><div class="symbol_kind kind_Variable_text kind_Variable_bg" title="Variable">
v
</div>
<h3 class="kind_Variable_text">Variables</h3></div>
<ul>
<li>
<a href="INFINITY.html" title="INFINITY" class=""><span><code>INFINITY</code></span></a>
</li>
</ul>
</nav>
<div id="content">
<a href="./index.html">&#8592; Back to index</a>
<input type="text" id="searchbar" style="display: none;" />
<main class="symbol_group" id="symbol_HockeyGame">
<article class="symbol">
<div class="symbol_header">
<div class="doc_block_title">
<div>
<span class="kind_Class_text">class</span>&nbsp;<span style="font-weight: 700;">HockeyGame</span>
</div>
<div class="doc_block_subtitle">
</div>
</div>
</div>
<div>
<div class="doc_block_items"><div class="markdown_summary"><p>Represent a the scoring of a hockey game. The two teams
playing are &quot;home&quot; and &quot;away&quot;.</p>
</div><div>
Constructors
<div class="section">
<div class="doc_item" id="constructor_0">
<a
href="#constructor_0"
class="anchor"
aria-label="Anchor"
tabIndex=-1
>
<div style="width: 14px; height: 14px; display: inline-block;">&#128279;</div>
</a>
<div class="doc_entry">
<span class="doc_entry_children">
<code>
<span style="font-weight: 700;">HockeyGame</span><span style="font-weight: 500;">
()
</span>
</code>
</span>
</div>
</div>
</div>
</div><div>
Properties
<div class="section">
<div class="doc_item" id="property_away">
<a
href="#property_away"
class="anchor"
aria-label="Anchor"
tabIndex=-1
>
<div style="width: 14px; height: 14px; display: inline-block;">&#128279;</div>
</a>
<div class="doc_entry">
<span class="doc_entry_children">
<code>
<span style="font-weight: 700;">away</span><span style="font-weight: 500;">
: <span>number</span>
</span>
</code>
</span>
</div>
<div class="markdown"><p>Score of the &quot;away&quot; team</p>
</div>
</div><div class="doc_item" id="property_home">
<a
href="#property_home"
class="anchor"
aria-label="Anchor"
tabIndex=-1
>
<div style="width: 14px; height: 14px; display: inline-block;">&#128279;</div>
</a>
<div class="doc_entry">
<span class="doc_entry_children">
<code>
<span style="font-weight: 700;">home</span><span style="font-weight: 500;">
: <span>number</span>
</span>
</code>
</span>
</div>
<div class="markdown"><p>Score of the &quot;home&quot; team</p>
</div>
</div>
</div>
</div><div>
Methods
<div class="section">
<div class="doc_item" id="method_awayTeamScores_0">
<a
href="#method_awayTeamScores_0"
class="anchor"
aria-label="Anchor"
tabIndex=-1
>
<div style="width: 14px; height: 14px; display: inline-block;">&#128279;</div>
</a>
<div class="doc_entry">
<span class="doc_entry_children">
<code>
<span style="font-weight: 700;">awayTeamScores</span><span style="font-weight: 500;">
(): <span>void</span>
</span>
</code>
</span>
</div>
<div class="markdown"><p>Call this method when away team scores. It will
increase home team score by 1 point.</p>
</div>
</div><div class="doc_item" id="method_homeTeamScores_0">
<a
href="#method_homeTeamScores_0"
class="anchor"
aria-label="Anchor"
tabIndex=-1
>
<div style="width: 14px; height: 14px; display: inline-block;">&#128279;</div>
</a>
<div class="doc_entry">
<span class="doc_entry_children">
<code>
<span style="font-weight: 700;">homeTeamScores</span><span style="font-weight: 500;">
(): <span>void</span>
</span>
</code>
</span>
</div>
<div class="markdown"><p>Call this method when home team scores. It will
increase home team score by 1 point.</p>
</div>
</div><div class="doc_item" id="method_winner_0">
<a
href="#method_winner_0"
class="anchor"
aria-label="Anchor"
tabIndex=-1
>
<div style="width: 14px; height: 14px; display: inline-block;">&#128279;</div>
</a>
<div class="doc_entry">
<span class="doc_entry_children">
<code>
<span style="font-weight: 700;">winner</span><span style="font-weight: 500;">
()
</span>
</code>
</span>
</div>
<div class="markdown"><p>Returns winner of the game.</p>
</div>
</div>
</div>
</div></div>
</div>
</article>
</main>
<div id="searchResults"></div>
</div>
</body>
<script src="./search_index.js" defer></script>
<script src="./fuse.js" defer></script>
<script src="./search.js" defer></script>
</html>