Added: JAVADOC html in deliverables
This commit is contained in:
+83
@@ -0,0 +1,83 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="it">
|
||||
<head>
|
||||
<!-- Generated by javadoc (25) on Fri Jun 19 23:05:23 CEST 2026 -->
|
||||
<title>BuildingEffect</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="2026-06-19">
|
||||
<meta name="description" content="declaration: module: it.polimi.ingsw.gc14, package: it.polimi.ingsw.gc14.Model.Cards.Building, interface: BuildingEffect">
|
||||
<meta name="generator" content="javadoc/ClassWriter">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../resource-files/jquery-ui.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../resource-files/stylesheet.css">
|
||||
<script type="text/javascript" src="../../../../../../../../script-files/script.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../script-files/jquery-3.7.1.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../script-files/jquery-ui.min.js"></script>
|
||||
</head>
|
||||
<body class="class-declaration-page">
|
||||
<script type="text/javascript">const pathtoroot = "../../../../../../../../";
|
||||
loadScripts(document, 'script');</script>
|
||||
<noscript>
|
||||
<div>JavaScript is disabled on your browser.</div>
|
||||
</noscript>
|
||||
<header role="banner">
|
||||
<nav role="navigation">
|
||||
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||
<div class="top-nav" id="navbar-top">
|
||||
<div class="nav-content">
|
||||
<div class="nav-menu-button"><button id="navbar-toggle-button" aria-controls="navbar-top" aria-expanded="false" aria-label="Toggle navigation links"><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span></button></div>
|
||||
<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="../../../../../../../module-summary.html">Module</a></li>
|
||||
<li class="nav-bar-cell1-rev">Class</li>
|
||||
<li><a href="package-tree.html">Tree</a></li>
|
||||
<li><a href="../../../../../../../../index-files/index-1.html">Index</a></li>
|
||||
<li><a href="../../../../../../../../search.html">Search</a></li>
|
||||
<li><a href="../../../../../../../../help-doc.html#class">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sub-nav">
|
||||
<div class="nav-content">
|
||||
<ol class="sub-nav-list">
|
||||
<li><a href="../../../../../../../module-summary.html">it.polimi.ingsw.gc14</a></li>
|
||||
<li><a href="package-summary.html">it.polimi.ingsw.gc14.Model.Cards.Building</a></li>
|
||||
<li><a href="BuildingEffect.html" class="current-selection">BuildingEffect</a></li>
|
||||
</ol>
|
||||
<div class="nav-list-search"><input type="text" id="search-input" disabled placeholder="Search documentation (type /)" aria-label="Search in documentation" autocomplete="off" spellcheck="false"><input type="reset" id="reset-search" disabled value="Reset"></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<span class="skip-nav" id="skip-navbar-top"></span></nav>
|
||||
</header>
|
||||
<div class="main-grid">
|
||||
<nav role="navigation" class="toc" aria-label="Table of contents">
|
||||
<div class="toc-header">Contents <input type="text" class="filter-input" disabled placeholder="Filter contents (type .)" aria-label="Filter table of contents" autocomplete="off" spellcheck="false"><input type="reset" class="reset-filter" disabled tabindex="-1" value="Reset"></div>
|
||||
<ol class="toc-list" tabindex="-1">
|
||||
<li><a href="#" tabindex="0">Description</a></li>
|
||||
</ol>
|
||||
<button class="hide-sidebar"><span>Hide sidebar </span><img src="../../../../../../../../resource-files/left.svg" alt="Hide sidebar"></button><button class="show-sidebar"><img src="../../../../../../../../resource-files/right.svg" alt="Show sidebar"><span> Show sidebar</span></button></nav>
|
||||
<main role="main">
|
||||
<!-- ======== START OF CLASS DATA ======== -->
|
||||
<div class="header">
|
||||
<h1 title="Interface BuildingEffect" class="title">Interface BuildingEffect</h1>
|
||||
</div>
|
||||
<section class="class-description" id="class-description">
|
||||
<dl class="notes">
|
||||
<dt>All Known Implementing Classes:</dt>
|
||||
<dd><code><a href="Effects/Building0.html" title="class in it.polimi.ingsw.gc14.Model.Cards.Building.Effects">Building0</a>, <a href="Effects/Building1.html" title="class in it.polimi.ingsw.gc14.Model.Cards.Building.Effects">Building1</a>, <a href="Effects/Building10.html" title="class in it.polimi.ingsw.gc14.Model.Cards.Building.Effects">Building10</a>, <a href="Effects/Building11.html" title="class in it.polimi.ingsw.gc14.Model.Cards.Building.Effects">Building11</a>, <a href="Effects/Building13.html" title="class in it.polimi.ingsw.gc14.Model.Cards.Building.Effects">Building13</a>, <a href="Effects/Building4.html" title="class in it.polimi.ingsw.gc14.Model.Cards.Building.Effects">Building4</a>, <a href="Effects/Building8.html" title="class in it.polimi.ingsw.gc14.Model.Cards.Building.Effects">Building8</a>, <a href="../BuildingCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">BuildingCard</a></code></dd>
|
||||
</dl>
|
||||
<hr>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="type-signature"><span class="modifiers">public interface </span><span class="element-name type-name-label">BuildingEffect</span></div>
|
||||
<div class="block">Defines the effect behavior of a building card.
|
||||
|
||||
<p>Classes implementing this interface provide the specific effect
|
||||
applied to a player when the building card is activated.</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- ========= END OF CLASS DATA ========= -->
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
+332
@@ -0,0 +1,332 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="it">
|
||||
<head>
|
||||
<!-- Generated by javadoc (25) on Fri Jun 19 23:05:23 CEST 2026 -->
|
||||
<title>EffectType</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="2026-06-19">
|
||||
<meta name="description" content="declaration: module: it.polimi.ingsw.gc14, package: it.polimi.ingsw.gc14.Model.Cards.Building, enum: EffectType">
|
||||
<meta name="generator" content="javadoc/ClassWriter">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../resource-files/jquery-ui.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../resource-files/stylesheet.css">
|
||||
<script type="text/javascript" src="../../../../../../../../script-files/script.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../script-files/jquery-3.7.1.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../script-files/jquery-ui.min.js"></script>
|
||||
</head>
|
||||
<body class="class-declaration-page">
|
||||
<script type="text/javascript">const pathtoroot = "../../../../../../../../";
|
||||
loadScripts(document, 'script');</script>
|
||||
<noscript>
|
||||
<div>JavaScript is disabled on your browser.</div>
|
||||
</noscript>
|
||||
<header role="banner">
|
||||
<nav role="navigation">
|
||||
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||
<div class="top-nav" id="navbar-top">
|
||||
<div class="nav-content">
|
||||
<div class="nav-menu-button"><button id="navbar-toggle-button" aria-controls="navbar-top" aria-expanded="false" aria-label="Toggle navigation links"><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span></button></div>
|
||||
<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="../../../../../../../module-summary.html">Module</a></li>
|
||||
<li class="nav-bar-cell1-rev">Class</li>
|
||||
<li><a href="package-tree.html">Tree</a></li>
|
||||
<li><a href="../../../../../../../../index-files/index-1.html">Index</a></li>
|
||||
<li><a href="../../../../../../../../search.html">Search</a></li>
|
||||
<li><a href="../../../../../../../../help-doc.html#class">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sub-nav">
|
||||
<div class="nav-content">
|
||||
<ol class="sub-nav-list">
|
||||
<li><a href="../../../../../../../module-summary.html">it.polimi.ingsw.gc14</a></li>
|
||||
<li><a href="package-summary.html">it.polimi.ingsw.gc14.Model.Cards.Building</a></li>
|
||||
<li><a href="EffectType.html" class="current-selection">EffectType</a></li>
|
||||
</ol>
|
||||
<div class="nav-list-search"><input type="text" id="search-input" disabled placeholder="Search documentation (type /)" aria-label="Search in documentation" autocomplete="off" spellcheck="false"><input type="reset" id="reset-search" disabled value="Reset"></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<span class="skip-nav" id="skip-navbar-top"></span></nav>
|
||||
</header>
|
||||
<div class="main-grid">
|
||||
<nav role="navigation" class="toc" aria-label="Table of contents">
|
||||
<div class="toc-header">Contents <input type="text" class="filter-input" disabled placeholder="Filter contents (type .)" aria-label="Filter table of contents" autocomplete="off" spellcheck="false"><input type="reset" class="reset-filter" disabled tabindex="-1" value="Reset"></div>
|
||||
<ol class="toc-list" tabindex="-1">
|
||||
<li><a href="#" tabindex="0">Description</a></li>
|
||||
<li><a href="#nested-class-summary" tabindex="0">Nested Class Summary</a></li>
|
||||
<li><a href="#enum-constant-summary" tabindex="0">Enum Constant Summary</a></li>
|
||||
<li><a href="#constructor-summary" tabindex="0">Constructor Summary</a></li>
|
||||
<li><a href="#method-summary" tabindex="0">Method Summary</a></li>
|
||||
<li><a href="#enum-constant-detail" tabindex="0">Enum Constant Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#FINAL" tabindex="0">FINAL</a></li>
|
||||
<li><a href="#CARD_SET" tabindex="0">CARD_SET</a></li>
|
||||
<li><a href="#INVENTOR_PAIR" tabindex="0">INVENTOR_PAIR</a></li>
|
||||
<li><a href="#ON_EVENT" tabindex="0">ON_EVENT</a></li>
|
||||
<li><a href="#ON_END_TURN" tabindex="0">ON_END_TURN</a></li>
|
||||
<li><a href="#ON_ROUND_END" tabindex="0">ON_ROUND_END</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
<li><a href="#constructor-detail" tabindex="0">Constructor Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#%3Cinit%3E()" tabindex="0">EffectType()</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
<li><a href="#method-detail" tabindex="0">Method Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#values()" tabindex="0">values()</a></li>
|
||||
<li><a href="#valueOf(java.lang.String)" tabindex="0">valueOf(String)</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
</ol>
|
||||
<button class="hide-sidebar"><span>Hide sidebar </span><img src="../../../../../../../../resource-files/left.svg" alt="Hide sidebar"></button><button class="show-sidebar"><img src="../../../../../../../../resource-files/right.svg" alt="Show sidebar"><span> Show sidebar</span></button></nav>
|
||||
<main role="main">
|
||||
<!-- ======== START OF CLASS DATA ======== -->
|
||||
<div class="header">
|
||||
<h1 title="Enum Class EffectType" class="title">Enum Class EffectType</h1>
|
||||
</div>
|
||||
<div class="inheritance" title="Inheritance Tree"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">java.lang.Object</a>
|
||||
<div class="inheritance"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html" title="class or interface in java.lang" class="external-link">java.lang.Enum</a><<a href="EffectType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.Building">EffectType</a>>
|
||||
<div class="inheritance">it.polimi.ingsw.gc14.Model.Cards.Building.EffectType</div>
|
||||
</div>
|
||||
</div>
|
||||
<section class="class-description" id="class-description">
|
||||
<dl class="notes">
|
||||
<dt>All Implemented Interfaces:</dt>
|
||||
<dd><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/Serializable.html" title="class or interface in java.io" class="external-link">Serializable</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Comparable.html" title="class or interface in java.lang" class="external-link">Comparable</a><<a href="EffectType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.Building">EffectType</a>>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/constant/Constable.html" title="class or interface in java.lang.constant" class="external-link">Constable</a></code></dd>
|
||||
</dl>
|
||||
<hr>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="type-signature"><span class="modifiers">public enum </span><span class="element-name type-name-label">EffectType</span>
|
||||
<span class="extends-implements">extends <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html" title="class or interface in java.lang" class="external-link">Enum</a><<a href="EffectType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.Building">EffectType</a>></span></div>
|
||||
<div class="block">Represents the possible effect types of building cards.</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="summary">
|
||||
<ul class="summary-list">
|
||||
<!-- ======== NESTED CLASS SUMMARY ======== -->
|
||||
<li>
|
||||
<section class="nested-class-summary" id="nested-class-summary">
|
||||
<h2>Nested Class Summary</h2>
|
||||
<div class="inherited-list">
|
||||
<h3 id="nested-classes-inherited-from-class-java.lang.Enum">Nested classes/interfaces inherited from class <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#nested-class-summary" title="class or interface in java.lang" class="external-link">Enum</a></h3>
|
||||
<code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.EnumDesc.html" title="class or interface in java.lang" class="external-link">Enum.EnumDesc</a><E></code></div>
|
||||
</section>
|
||||
</li>
|
||||
<!-- =========== ENUM CONSTANT SUMMARY =========== -->
|
||||
<li>
|
||||
<section class="constants-summary" id="enum-constant-summary">
|
||||
<h2>Enum Constant Summary</h2>
|
||||
<div class="caption"><span>Enum Constants</span></div>
|
||||
<div class="summary-table two-column-summary">
|
||||
<div class="table-header col-first">Enum Constant</div>
|
||||
<div class="table-header col-last">Description</div>
|
||||
<div class="col-first even-row-color"><code><a href="#CARD_SET" class="member-name-link">CARD_SET</a></code></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">Effect based on collecting a specific set of cards.</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color"><code><a href="#FINAL" class="member-name-link">FINAL</a></code></div>
|
||||
<div class="col-last odd-row-color">
|
||||
<div class="block">Effect applied during the final scoring phase.</div>
|
||||
</div>
|
||||
<div class="col-first even-row-color"><code><a href="#INVENTOR_PAIR" class="member-name-link">INVENTOR_PAIR</a></code></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">Effect based on pairs of Inventor cards.</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color"><code><a href="#ON_END_TURN" class="member-name-link">ON_END_TURN</a></code></div>
|
||||
<div class="col-last odd-row-color">
|
||||
<div class="block">Effect triggered at the end of a player's turn.</div>
|
||||
</div>
|
||||
<div class="col-first even-row-color"><code><a href="#ON_EVENT" class="member-name-link">ON_EVENT</a></code></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">Effect triggered when an event card is resolved.</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color"><code><a href="#ON_ROUND_END" class="member-name-link">ON_ROUND_END</a></code></div>
|
||||
<div class="col-last odd-row-color">
|
||||
<div class="block">Effect triggered at the end of a round.</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
||||
<li>
|
||||
<section class="constructor-summary" id="constructor-summary">
|
||||
<h2>Constructor Summary</h2>
|
||||
<div class="caption"><span>Constructors</span></div>
|
||||
<div class="summary-table three-column-summary">
|
||||
<div class="table-header col-first">Modifier</div>
|
||||
<div class="table-header col-second">Constructor</div>
|
||||
<div class="table-header col-last">Description</div>
|
||||
<div class="col-first even-row-color"><code>private </code></div>
|
||||
<div class="col-constructor-name even-row-color"><code><a href="#%3Cinit%3E()" class="member-name-link">EffectType</a>()</code></div>
|
||||
<div class="col-last even-row-color"> </div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ========== METHOD SUMMARY =========== -->
|
||||
<li>
|
||||
<section class="method-summary" id="method-summary">
|
||||
<h2>Method Summary</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">All Methods</button><button id="method-summary-table-tab1" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab1', 3)" class="table-tab">Static Methods</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">Concrete Methods</button></div>
|
||||
<div id="method-summary-table.tabpanel" role="tabpanel" aria-labelledby="method-summary-table-tab0">
|
||||
<div class="summary-table three-column-summary">
|
||||
<div class="table-header col-first">Modifier and Type</div>
|
||||
<div class="table-header col-second">Method</div>
|
||||
<div class="table-header col-last">Description</div>
|
||||
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="EffectType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.Building">EffectType</a></code></div>
|
||||
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#valueOf(java.lang.String)" class="member-name-link">valueOf</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> name)</code></div>
|
||||
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||||
<div class="block">Returns the enum constant of this class with the specified name.</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="EffectType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.Building">EffectType</a>[]</code></div>
|
||||
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#values()" class="member-name-link">values</a>()</code></div>
|
||||
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||||
<div class="block">Returns an array containing the constants of this enum class, in
|
||||
the order they are declared.</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-java.lang.Enum">Methods inherited from class <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#method-summary" title="class or interface in java.lang" class="external-link">Enum</a></h3>
|
||||
<code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#clone()" title="class or interface in java.lang" class="external-link">clone</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#compareTo(E)" title="class or interface in java.lang" class="external-link">compareTo</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#describeConstable()" title="class or interface in java.lang" class="external-link">describeConstable</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#equals(java.lang.Object)" title="class or interface in java.lang" class="external-link">equals</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#finalize()" title="class or interface in java.lang" class="external-link">finalize</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#getDeclaringClass()" title="class or interface in java.lang" class="external-link">getDeclaringClass</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#hashCode()" title="class or interface in java.lang" class="external-link">hashCode</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#name()" title="class or interface in java.lang" class="external-link">name</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#ordinal()" title="class or interface in java.lang" class="external-link">ordinal</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#toString()" title="class or interface in java.lang" class="external-link">toString</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#valueOf(java.lang.Class,java.lang.String)" title="class or interface in java.lang" class="external-link">valueOf</a></code></div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-java.lang.Object">Methods inherited from class <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#method-summary" title="class or interface in java.lang" class="external-link">Object</a></h3>
|
||||
<code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()" title="class or interface in java.lang" class="external-link">getClass</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()" title="class or interface in java.lang" class="external-link">notify</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()" title="class or interface in java.lang" class="external-link">notifyAll</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)" title="class or interface in java.lang" class="external-link">wait</a></code></div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<section class="details">
|
||||
<ul class="details-list">
|
||||
<!-- ============ ENUM CONSTANT DETAIL =========== -->
|
||||
<li>
|
||||
<section class="constant-details" id="enum-constant-detail">
|
||||
<h2>Enum Constant Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="FINAL">
|
||||
<h3>FINAL</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type"><a href="EffectType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.Building">EffectType</a></span> <span class="element-name">FINAL</span></div>
|
||||
<div class="block">Effect applied during the final scoring phase.</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="CARD_SET">
|
||||
<h3>CARD_SET</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type"><a href="EffectType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.Building">EffectType</a></span> <span class="element-name">CARD_SET</span></div>
|
||||
<div class="block">Effect based on collecting a specific set of cards.</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="INVENTOR_PAIR">
|
||||
<h3>INVENTOR_PAIR</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type"><a href="EffectType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.Building">EffectType</a></span> <span class="element-name">INVENTOR_PAIR</span></div>
|
||||
<div class="block">Effect based on pairs of Inventor cards.</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="ON_EVENT">
|
||||
<h3>ON_EVENT</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type"><a href="EffectType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.Building">EffectType</a></span> <span class="element-name">ON_EVENT</span></div>
|
||||
<div class="block">Effect triggered when an event card is resolved.</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="ON_END_TURN">
|
||||
<h3>ON_END_TURN</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type"><a href="EffectType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.Building">EffectType</a></span> <span class="element-name">ON_END_TURN</span></div>
|
||||
<div class="block">Effect triggered at the end of a player's turn.</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="ON_ROUND_END">
|
||||
<h3>ON_ROUND_END</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type"><a href="EffectType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.Building">EffectType</a></span> <span class="element-name">ON_ROUND_END</span></div>
|
||||
<div class="block">Effect triggered at the end of a round.</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
||||
<li>
|
||||
<section class="constructor-details" id="constructor-detail">
|
||||
<h2>Constructor Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="<init>()">
|
||||
<h3>EffectType</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">private</span> <span class="element-name">EffectType</span>()</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ============ METHOD DETAIL ========== -->
|
||||
<li>
|
||||
<section class="method-details" id="method-detail">
|
||||
<h2>Method Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="values()">
|
||||
<h3>values</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type"><a href="EffectType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.Building">EffectType</a>[]</span> <span class="element-name">values</span>()</div>
|
||||
<div class="block">Returns an array containing the constants of this enum class, in
|
||||
the order they are declared.</div>
|
||||
<dl class="notes">
|
||||
<dt>Returns:</dt>
|
||||
<dd>an array containing the constants of this enum class, in the order they are declared</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="valueOf(java.lang.String)">
|
||||
<h3>valueOf</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type"><a href="EffectType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.Building">EffectType</a></span> <span class="element-name">valueOf</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> name)</span></div>
|
||||
<div class="block">Returns the enum constant of this class with the specified name.
|
||||
The string must match <i>exactly</i> an identifier used to declare an
|
||||
enum constant in this class. (Extraneous whitespace characters are
|
||||
not permitted.)</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>name</code> - the name of the enum constant to be returned.</dd>
|
||||
<dt>Returns:</dt>
|
||||
<dd>the enum constant with the specified name</dd>
|
||||
<dt>Throws:</dt>
|
||||
<dd><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a></code> - if this enum class has no constant with the specified name</dd>
|
||||
<dd><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/NullPointerException.html" title="class or interface in java.lang" class="external-link">NullPointerException</a></code> - if the argument is null</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<!-- ========= END OF CLASS DATA ========= -->
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
+410
@@ -0,0 +1,410 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="it">
|
||||
<head>
|
||||
<!-- Generated by javadoc (25) on Fri Jun 19 23:05:23 CEST 2026 -->
|
||||
<title>Building0</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="2026-06-19">
|
||||
<meta name="description" content="declaration: module: it.polimi.ingsw.gc14, package: it.polimi.ingsw.gc14.Model.Cards.Building.Effects, class: Building0">
|
||||
<meta name="generator" content="javadoc/ClassWriter">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../../resource-files/jquery-ui.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../../resource-files/stylesheet.css">
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/script.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/jquery-3.7.1.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/jquery-ui.min.js"></script>
|
||||
</head>
|
||||
<body class="class-declaration-page">
|
||||
<script type="text/javascript">const pathtoroot = "../../../../../../../../../";
|
||||
loadScripts(document, 'script');</script>
|
||||
<noscript>
|
||||
<div>JavaScript is disabled on your browser.</div>
|
||||
</noscript>
|
||||
<header role="banner">
|
||||
<nav role="navigation">
|
||||
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||
<div class="top-nav" id="navbar-top">
|
||||
<div class="nav-content">
|
||||
<div class="nav-menu-button"><button id="navbar-toggle-button" aria-controls="navbar-top" aria-expanded="false" aria-label="Toggle navigation links"><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span></button></div>
|
||||
<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="../../../../../../../../module-summary.html">Module</a></li>
|
||||
<li class="nav-bar-cell1-rev">Class</li>
|
||||
<li><a href="package-tree.html">Tree</a></li>
|
||||
<li><a href="../../../../../../../../../index-files/index-1.html">Index</a></li>
|
||||
<li><a href="../../../../../../../../../search.html">Search</a></li>
|
||||
<li><a href="../../../../../../../../../help-doc.html#class">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sub-nav">
|
||||
<div class="nav-content">
|
||||
<ol class="sub-nav-list">
|
||||
<li><a href="../../../../../../../../module-summary.html">it.polimi.ingsw.gc14</a></li>
|
||||
<li><a href="package-summary.html">it.polimi.ingsw.gc14.Model.Cards.Building.Effects</a></li>
|
||||
<li><a href="Building0.html" class="current-selection">Building0</a></li>
|
||||
</ol>
|
||||
<div class="nav-list-search"><input type="text" id="search-input" disabled placeholder="Search documentation (type /)" aria-label="Search in documentation" autocomplete="off" spellcheck="false"><input type="reset" id="reset-search" disabled value="Reset"></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<span class="skip-nav" id="skip-navbar-top"></span></nav>
|
||||
</header>
|
||||
<div class="main-grid">
|
||||
<nav role="navigation" class="toc" aria-label="Table of contents">
|
||||
<div class="toc-header">Contents <input type="text" class="filter-input" disabled placeholder="Filter contents (type .)" aria-label="Filter table of contents" autocomplete="off" spellcheck="false"><input type="reset" class="reset-filter" disabled tabindex="-1" value="Reset"></div>
|
||||
<ol class="toc-list" tabindex="-1">
|
||||
<li><a href="#" tabindex="0">Description</a></li>
|
||||
<li><a href="#field-summary" tabindex="0">Field Summary</a></li>
|
||||
<li><a href="#constructor-summary" tabindex="0">Constructor Summary</a></li>
|
||||
<li><a href="#method-summary" tabindex="0">Method Summary</a></li>
|
||||
<li><a href="#field-detail" tabindex="0">Field Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#FOOD_PER_CHARACTER_SET" tabindex="0">FOOD_PER_CHARACTER_SET</a></li>
|
||||
<li><a href="#purchased" tabindex="0">purchased</a></li>
|
||||
<li><a href="#numSet" tabindex="0">numSet</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
<li><a href="#constructor-detail" tabindex="0">Constructor Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#%3Cinit%3E(java.lang.String,int,int,int)" tabindex="0">Building0(String, int, int, int)</a></li>
|
||||
<li><a href="#%3Cinit%3E(int,int,int)" tabindex="0">Building0(int, int, int)</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
<li><a href="#method-detail" tabindex="0">Method Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#buy(it.polimi.ingsw.gc14.Model.Player)" tabindex="0">buy(Player)</a></li>
|
||||
<li><a href="#initialize(it.polimi.ingsw.gc14.Model.Player)" tabindex="0">initialize(Player)</a></li>
|
||||
<li><a href="#clone()" tabindex="0">clone()</a></li>
|
||||
<li><a href="#applyEffect(it.polimi.ingsw.gc14.Model.Player)" tabindex="0">applyEffect(Player)</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
</ol>
|
||||
<button class="hide-sidebar"><span>Hide sidebar </span><img src="../../../../../../../../../resource-files/left.svg" alt="Hide sidebar"></button><button class="show-sidebar"><img src="../../../../../../../../../resource-files/right.svg" alt="Show sidebar"><span> Show sidebar</span></button></nav>
|
||||
<main role="main">
|
||||
<!-- ======== START OF CLASS DATA ======== -->
|
||||
<div class="header">
|
||||
<h1 title="Class Building0" class="title">Class Building0</h1>
|
||||
</div>
|
||||
<div class="inheritance" title="Inheritance Tree"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">java.lang.Object</a>
|
||||
<div class="inheritance"><a href="../../../PlayableCard.html" title="class in it.polimi.ingsw.gc14.Model">it.polimi.ingsw.gc14.Model.PlayableCard</a>
|
||||
<div class="inheritance"><a href="../../BuildingCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">it.polimi.ingsw.gc14.Model.Cards.BuildingCard</a>
|
||||
<div class="inheritance">it.polimi.ingsw.gc14.Model.Cards.Building.Effects.Building0</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<section class="class-description" id="class-description">
|
||||
<dl class="notes">
|
||||
<dt>All Implemented Interfaces:</dt>
|
||||
<dd><code><a href="../BuildingEffect.html" title="interface in it.polimi.ingsw.gc14.Model.Cards.Building">BuildingEffect</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/Serializable.html" title="class or interface in java.io" class="external-link">Serializable</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Cloneable.html" title="class or interface in java.lang" class="external-link">Cloneable</a></code></dd>
|
||||
</dl>
|
||||
<hr>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="type-signature"><span class="modifiers">public class </span><span class="element-name type-name-label">Building0</span>
|
||||
<span class="extends-implements">extends <a href="../../BuildingCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">BuildingCard</a></span></div>
|
||||
<div class="block">Building effect that grants 5 food for each new complete set of
|
||||
6 different character types obtained after purchasing this building.
|
||||
|
||||
<p>Character sets already completed before the building is purchased
|
||||
are stored during initialization and do not provide food.</div>
|
||||
<dl class="notes">
|
||||
<dt>See Also:</dt>
|
||||
<dd>
|
||||
<ul class="tag-list">
|
||||
<li><a href="../../../../../../../../../serialized-form.html#it.polimi.ingsw.gc14.Model.Cards.Building.Effects.Building0">Serialized Form</a></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
<section class="summary">
|
||||
<ul class="summary-list">
|
||||
<!-- =========== FIELD SUMMARY =========== -->
|
||||
<li>
|
||||
<section class="field-summary" id="field-summary">
|
||||
<h2>Field Summary</h2>
|
||||
<div class="caption"><span>Fields</span></div>
|
||||
<div class="summary-table three-column-summary">
|
||||
<div class="table-header col-first">Modifier and Type</div>
|
||||
<div class="table-header col-second">Field</div>
|
||||
<div class="table-header col-last">Description</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="#FOOD_PER_CHARACTER_SET" class="member-name-link">FOOD_PER_CHARACTER_SET</a></code></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">Food units granted per newly completed character set.</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color"><code>private int</code></div>
|
||||
<div class="col-second odd-row-color"><code><a href="#numSet" class="member-name-link">numSet</a></code></div>
|
||||
<div class="col-last odd-row-color">
|
||||
<div class="block">Number of complete character sets already counted by this building effect.</div>
|
||||
</div>
|
||||
<div class="col-first even-row-color"><code>private boolean</code></div>
|
||||
<div class="col-second even-row-color"><code><a href="#purchased" class="member-name-link">purchased</a></code></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">Indicates whether the building effect has already been initialized
|
||||
after purchase.</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="fields-inherited-from-class-it.polimi.ingsw.gc14.Model.Cards.BuildingCard">Fields inherited from class <a href="../../BuildingCard.html#field-summary" title="class in it.polimi.ingsw.gc14.Model.Cards">BuildingCard</a></h3>
|
||||
<code><a href="../../BuildingCard.html#effectId">effectId</a>, <a href="../../BuildingCard.html#effectType">effectType</a></code></div>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
||||
<li>
|
||||
<section class="constructor-summary" id="constructor-summary">
|
||||
<h2>Constructor Summary</h2>
|
||||
<div class="caption"><span>Constructors</span></div>
|
||||
<div class="summary-table two-column-summary">
|
||||
<div class="table-header col-first">Constructor</div>
|
||||
<div class="table-header col-last">Description</div>
|
||||
<div class="col-constructor-name even-row-color"><code><a href="#%3Cinit%3E(int,int,int)" class="member-name-link">Building0</a><wbr>(int era,
|
||||
int price,
|
||||
int prestigeValue)</code></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">Creates a building with the specified era, price and prestige value.</div>
|
||||
</div>
|
||||
<div class="col-constructor-name odd-row-color"><code><a href="#%3Cinit%3E(java.lang.String,int,int,int)" class="member-name-link">Building0</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> idImage,
|
||||
int era,
|
||||
int price,
|
||||
int prestigeValue)</code></div>
|
||||
<div class="col-last odd-row-color">
|
||||
<div class="block">Creates a building with the specified image identifier, era, price
|
||||
and prestige value.</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ========== METHOD SUMMARY =========== -->
|
||||
<li>
|
||||
<section class="method-summary" id="method-summary">
|
||||
<h2>Method Summary</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">All Methods</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">Instance Methods</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">Concrete Methods</button></div>
|
||||
<div id="method-summary-table.tabpanel" role="tabpanel" aria-labelledby="method-summary-table-tab0">
|
||||
<div class="summary-table three-column-summary">
|
||||
<div class="table-header col-first">Modifier and Type</div>
|
||||
<div class="table-header col-second">Method</div>
|
||||
<div class="table-header col-last">Description</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="#applyEffect(it.polimi.ingsw.gc14.Model.Player)" class="member-name-link">applyEffect</a><wbr>(<a href="../../../Player.html" title="class in it.polimi.ingsw.gc14.Model">Player</a> player)</code></div>
|
||||
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Applies the building effect to the specified player.</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>boolean</code></div>
|
||||
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#buy(it.polimi.ingsw.gc14.Model.Player)" class="member-name-link">buy</a><wbr>(<a href="../../../Player.html" title="class in it.polimi.ingsw.gc14.Model">Player</a> player)</code></div>
|
||||
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Attempts to purchase the building and initializes its effect if the
|
||||
purchase succeeds.</div>
|
||||
</div>
|
||||
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="../../BuildingCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">BuildingCard</a></code></div>
|
||||
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#clone()" class="member-name-link">clone</a>()</code></div>
|
||||
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Creates a new building instance with the same configuration values
|
||||
as this card.</div>
|
||||
</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="#initialize(it.polimi.ingsw.gc14.Model.Player)" class="member-name-link">initialize</a><wbr>(<a href="../../../Player.html" title="class in it.polimi.ingsw.gc14.Model">Player</a> player)</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 building effect by storing the number of complete
|
||||
character sets already owned by the player at the moment of purchase.</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-it.polimi.ingsw.gc14.Model.Cards.BuildingCard">Methods inherited from class <a href="../../BuildingCard.html#method-summary" title="class in it.polimi.ingsw.gc14.Model.Cards">BuildingCard</a></h3>
|
||||
<code><a href="../../BuildingCard.html#getEffectId()" title="getEffectId()">getEffectId</a>, <a href="../../BuildingCard.html#getEffectType()" title="getEffectType()">getEffectType</a>, <a href="../../BuildingCard.html#getPrestigeValue()" title="getPrestigeValue()">getPrestigeValue</a>, <a href="../../BuildingCard.html#getPrice()" title="getPrice()">getPrice</a>, <a href="../../BuildingCard.html#toStringBoard()" title="toStringBoard()">toStringBoard</a>, <a href="../../BuildingCard.html#toStringPlayer()" title="toStringPlayer()">toStringPlayer</a></code></div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-it.polimi.ingsw.gc14.Model.PlayableCard">Methods inherited from class <a href="../../../PlayableCard.html#method-summary" title="class in it.polimi.ingsw.gc14.Model">PlayableCard</a></h3>
|
||||
<code><a href="../../../PlayableCard.html#getEra()" title="getEra()">getEra</a>, <a href="../../../PlayableCard.html#getIdIMG()" title="getIdIMG()">getIdIMG</a></code></div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-java.lang.Object">Methods inherited from class <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#method-summary" title="class or interface in java.lang" class="external-link">Object</a></h3>
|
||||
<code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang" class="external-link">equals</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()" title="class or interface in java.lang" class="external-link">finalize</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()" title="class or interface in java.lang" class="external-link">getClass</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()" title="class or interface in java.lang" class="external-link">hashCode</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()" title="class or interface in java.lang" class="external-link">notify</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()" title="class or interface in java.lang" class="external-link">notifyAll</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()" title="class or interface in java.lang" class="external-link">toString</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)" title="class or interface 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>Field Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="FOOD_PER_CHARACTER_SET">
|
||||
<h3>FOOD_PER_CHARACTER_SET</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">private static final</span> <span class="return-type">int</span> <span class="element-name">FOOD_PER_CHARACTER_SET</span></div>
|
||||
<div class="block">Food units granted per newly completed character set.</div>
|
||||
<dl class="notes">
|
||||
<dt>See Also:</dt>
|
||||
<dd>
|
||||
<ul class="tag-list">
|
||||
<li><a href="../../../../../../../../../constant-values.html#it.polimi.ingsw.gc14.Model.Cards.Building.Effects.Building0.FOOD_PER_CHARACTER_SET">Constant Field Values</a></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="purchased">
|
||||
<h3>purchased</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">private</span> <span class="return-type">boolean</span> <span class="element-name">purchased</span></div>
|
||||
<div class="block">Indicates whether the building effect has already been initialized
|
||||
after purchase.</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="numSet">
|
||||
<h3>numSet</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">private</span> <span class="return-type">int</span> <span class="element-name">numSet</span></div>
|
||||
<div class="block">Number of complete character sets already counted by this building effect.</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
||||
<li>
|
||||
<section class="constructor-details" id="constructor-detail">
|
||||
<h2>Constructor Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="<init>(java.lang.String,int,int,int)">
|
||||
<h3>Building0</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="element-name">Building0</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> idImage,
|
||||
int era,
|
||||
int price,
|
||||
int prestigeValue)</span></div>
|
||||
<div class="block">Creates a building with the specified image identifier, era, price
|
||||
and prestige value.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>idImage</code> - the image identifier of the building.</dd>
|
||||
<dd><code>era</code> - the game era of the building.</dd>
|
||||
<dd><code>price</code> - the price in food of the building.</dd>
|
||||
<dd><code>prestigeValue</code> - the number of Prestige Points granted by this building
|
||||
at the end of the game.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="<init>(int,int,int)">
|
||||
<h3>Building0</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="element-name">Building0</span><wbr><span class="parameters">(int era,
|
||||
int price,
|
||||
int prestigeValue)</span></div>
|
||||
<div class="block">Creates a building with the specified era, price and prestige value.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>era</code> - the game era of the building.</dd>
|
||||
<dd><code>price</code> - the price in food of the building.</dd>
|
||||
<dd><code>prestigeValue</code> - the number of Prestige Points granted by this building
|
||||
at the end of the game.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ============ METHOD DETAIL ========== -->
|
||||
<li>
|
||||
<section class="method-details" id="method-detail">
|
||||
<h2>Method Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="buy(it.polimi.ingsw.gc14.Model.Player)">
|
||||
<h3>buy</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type">boolean</span> <span class="element-name">buy</span><wbr><span class="parameters">(<a href="../../../Player.html" title="class in it.polimi.ingsw.gc14.Model">Player</a> player)</span></div>
|
||||
<div class="block">Attempts to purchase the building and initializes its effect if the
|
||||
purchase succeeds.</div>
|
||||
<dl class="notes">
|
||||
<dt>Overrides:</dt>
|
||||
<dd><code><a href="../../BuildingCard.html#buy(it.polimi.ingsw.gc14.Model.Player)">buy</a></code> in class <code><a href="../../BuildingCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">BuildingCard</a></code></dd>
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>player</code> - the player who attempts to buy the building.</dd>
|
||||
<dt>Returns:</dt>
|
||||
<dd><code>true</code> if the building is successfully purchased and initialized,
|
||||
<code>false</code> otherwise.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="initialize(it.polimi.ingsw.gc14.Model.Player)">
|
||||
<h3>initialize</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">initialize</span><wbr><span class="parameters">(<a href="../../../Player.html" title="class in it.polimi.ingsw.gc14.Model">Player</a> player)</span></div>
|
||||
<div class="block">Initializes the building effect by storing the number of complete
|
||||
character sets already owned by the player at the moment of purchase.
|
||||
|
||||
<p>The initialization is performed only once.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>player</code> - the player who owns the building.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="clone()">
|
||||
<h3>clone</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="../../BuildingCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">BuildingCard</a></span> <span class="element-name">clone</span>()</div>
|
||||
<div class="block">Creates a new building instance with the same configuration values
|
||||
as this card.
|
||||
|
||||
<p>The runtime state of the effect, such as initialization status and
|
||||
counted character sets, is not copied.</div>
|
||||
<dl class="notes">
|
||||
<dt>Overrides:</dt>
|
||||
<dd><code><a href="../../BuildingCard.html#clone()">clone</a></code> in class <code><a href="../../BuildingCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">BuildingCard</a></code></dd>
|
||||
<dt>Returns:</dt>
|
||||
<dd>a new building card with the same base properties.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="applyEffect(it.polimi.ingsw.gc14.Model.Player)">
|
||||
<h3>applyEffect</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">applyEffect</span><wbr><span class="parameters">(<a href="../../../Player.html" title="class in it.polimi.ingsw.gc14.Model">Player</a> player)</span>
|
||||
throws <span class="exceptions"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a></span></div>
|
||||
<div class="block">Applies the building effect to the specified player.
|
||||
|
||||
<p>The method counts the complete character sets currently owned by the player
|
||||
and grants 5 food for each set completed since the last stored value.</div>
|
||||
<dl class="notes">
|
||||
<dt>Overrides:</dt>
|
||||
<dd><code><a href="../../BuildingCard.html#applyEffect(it.polimi.ingsw.gc14.Model.Player)">applyEffect</a></code> in class <code><a href="../../BuildingCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">BuildingCard</a></code></dd>
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>player</code> - the player who owns the building.</dd>
|
||||
<dt>Throws:</dt>
|
||||
<dd><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a></code> - if the specified player does not own this card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<!-- ========= END OF CLASS DATA ========= -->
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
+357
@@ -0,0 +1,357 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="it">
|
||||
<head>
|
||||
<!-- Generated by javadoc (25) on Fri Jun 19 23:05:23 CEST 2026 -->
|
||||
<title>Building1</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="2026-06-19">
|
||||
<meta name="description" content="declaration: module: it.polimi.ingsw.gc14, package: it.polimi.ingsw.gc14.Model.Cards.Building.Effects, class: Building1">
|
||||
<meta name="generator" content="javadoc/ClassWriter">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../../resource-files/jquery-ui.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../../resource-files/stylesheet.css">
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/script.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/jquery-3.7.1.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/jquery-ui.min.js"></script>
|
||||
</head>
|
||||
<body class="class-declaration-page">
|
||||
<script type="text/javascript">const pathtoroot = "../../../../../../../../../";
|
||||
loadScripts(document, 'script');</script>
|
||||
<noscript>
|
||||
<div>JavaScript is disabled on your browser.</div>
|
||||
</noscript>
|
||||
<header role="banner">
|
||||
<nav role="navigation">
|
||||
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||
<div class="top-nav" id="navbar-top">
|
||||
<div class="nav-content">
|
||||
<div class="nav-menu-button"><button id="navbar-toggle-button" aria-controls="navbar-top" aria-expanded="false" aria-label="Toggle navigation links"><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span></button></div>
|
||||
<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="../../../../../../../../module-summary.html">Module</a></li>
|
||||
<li class="nav-bar-cell1-rev">Class</li>
|
||||
<li><a href="package-tree.html">Tree</a></li>
|
||||
<li><a href="../../../../../../../../../index-files/index-1.html">Index</a></li>
|
||||
<li><a href="../../../../../../../../../search.html">Search</a></li>
|
||||
<li><a href="../../../../../../../../../help-doc.html#class">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sub-nav">
|
||||
<div class="nav-content">
|
||||
<ol class="sub-nav-list">
|
||||
<li><a href="../../../../../../../../module-summary.html">it.polimi.ingsw.gc14</a></li>
|
||||
<li><a href="package-summary.html">it.polimi.ingsw.gc14.Model.Cards.Building.Effects</a></li>
|
||||
<li><a href="Building1.html" class="current-selection">Building1</a></li>
|
||||
</ol>
|
||||
<div class="nav-list-search"><input type="text" id="search-input" disabled placeholder="Search documentation (type /)" aria-label="Search in documentation" autocomplete="off" spellcheck="false"><input type="reset" id="reset-search" disabled value="Reset"></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<span class="skip-nav" id="skip-navbar-top"></span></nav>
|
||||
</header>
|
||||
<div class="main-grid">
|
||||
<nav role="navigation" class="toc" aria-label="Table of contents">
|
||||
<div class="toc-header">Contents <input type="text" class="filter-input" disabled placeholder="Filter contents (type .)" aria-label="Filter table of contents" autocomplete="off" spellcheck="false"><input type="reset" class="reset-filter" disabled tabindex="-1" value="Reset"></div>
|
||||
<ol class="toc-list" tabindex="-1">
|
||||
<li><a href="#" tabindex="0">Description</a></li>
|
||||
<li><a href="#field-summary" tabindex="0">Field Summary</a></li>
|
||||
<li><a href="#constructor-summary" tabindex="0">Constructor Summary</a></li>
|
||||
<li><a href="#method-summary" tabindex="0">Method Summary</a></li>
|
||||
<li><a href="#field-detail" tabindex="0">Field Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#icon" tabindex="0">icon</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
<li><a href="#constructor-detail" tabindex="0">Constructor Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#%3Cinit%3E(int,int,int,it.polimi.ingsw.gc14.Model.Cards.TribeCards.CharacterType)" tabindex="0">Building1(int, int, int, CharacterType)</a></li>
|
||||
<li><a href="#%3Cinit%3E(java.lang.String,int,int,int,it.polimi.ingsw.gc14.Model.Cards.TribeCards.CharacterType)" tabindex="0">Building1(String, int, int, int, CharacterType)</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
<li><a href="#method-detail" tabindex="0">Method Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#getIcon()" tabindex="0">getIcon()</a></li>
|
||||
<li><a href="#clone()" tabindex="0">clone()</a></li>
|
||||
<li><a href="#toStringBoard()" tabindex="0">toStringBoard()</a></li>
|
||||
<li><a href="#toStringPlayer()" tabindex="0">toStringPlayer()</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
</ol>
|
||||
<button class="hide-sidebar"><span>Hide sidebar </span><img src="../../../../../../../../../resource-files/left.svg" alt="Hide sidebar"></button><button class="show-sidebar"><img src="../../../../../../../../../resource-files/right.svg" alt="Show sidebar"><span> Show sidebar</span></button></nav>
|
||||
<main role="main">
|
||||
<!-- ======== START OF CLASS DATA ======== -->
|
||||
<div class="header">
|
||||
<h1 title="Class Building1" class="title">Class Building1</h1>
|
||||
</div>
|
||||
<div class="inheritance" title="Inheritance Tree"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">java.lang.Object</a>
|
||||
<div class="inheritance"><a href="../../../PlayableCard.html" title="class in it.polimi.ingsw.gc14.Model">it.polimi.ingsw.gc14.Model.PlayableCard</a>
|
||||
<div class="inheritance"><a href="../../BuildingCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">it.polimi.ingsw.gc14.Model.Cards.BuildingCard</a>
|
||||
<div class="inheritance">it.polimi.ingsw.gc14.Model.Cards.Building.Effects.Building1</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<section class="class-description" id="class-description">
|
||||
<dl class="notes">
|
||||
<dt>All Implemented Interfaces:</dt>
|
||||
<dd><code><a href="../BuildingEffect.html" title="interface in it.polimi.ingsw.gc14.Model.Cards.Building">BuildingEffect</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/Serializable.html" title="class or interface in java.io" class="external-link">Serializable</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Cloneable.html" title="class or interface in java.lang" class="external-link">Cloneable</a></code></dd>
|
||||
</dl>
|
||||
<hr>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="type-signature"><span class="modifiers">public class </span><span class="element-name type-name-label">Building1</span>
|
||||
<span class="extends-implements">extends <a href="../../BuildingCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">BuildingCard</a></span></div>
|
||||
<div class="block">Building effect that grants a discount of 1 food during the Sustenance Event
|
||||
for each character of the indicated type present in the player's tribe.</div>
|
||||
<dl class="notes">
|
||||
<dt>See Also:</dt>
|
||||
<dd>
|
||||
<ul class="tag-list">
|
||||
<li><a href="../../../../../../../../../serialized-form.html#it.polimi.ingsw.gc14.Model.Cards.Building.Effects.Building1">Serialized Form</a></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
<section class="summary">
|
||||
<ul class="summary-list">
|
||||
<!-- =========== FIELD SUMMARY =========== -->
|
||||
<li>
|
||||
<section class="field-summary" id="field-summary">
|
||||
<h2>Field Summary</h2>
|
||||
<div class="caption"><span>Fields</span></div>
|
||||
<div class="summary-table three-column-summary">
|
||||
<div class="table-header col-first">Modifier and Type</div>
|
||||
<div class="table-header col-second">Field</div>
|
||||
<div class="table-header col-last">Description</div>
|
||||
<div class="col-first even-row-color"><code>private final <a href="../../TribeCards/CharacterType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">CharacterType</a></code></div>
|
||||
<div class="col-second even-row-color"><code><a href="#icon" class="member-name-link">icon</a></code></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">Character type involved in the building effect.</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="fields-inherited-from-class-it.polimi.ingsw.gc14.Model.Cards.BuildingCard">Fields inherited from class <a href="../../BuildingCard.html#field-summary" title="class in it.polimi.ingsw.gc14.Model.Cards">BuildingCard</a></h3>
|
||||
<code><a href="../../BuildingCard.html#effectId">effectId</a>, <a href="../../BuildingCard.html#effectType">effectType</a></code></div>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
||||
<li>
|
||||
<section class="constructor-summary" id="constructor-summary">
|
||||
<h2>Constructor Summary</h2>
|
||||
<div class="caption"><span>Constructors</span></div>
|
||||
<div class="summary-table two-column-summary">
|
||||
<div class="table-header col-first">Constructor</div>
|
||||
<div class="table-header col-last">Description</div>
|
||||
<div class="col-constructor-name even-row-color"><code><a href="#%3Cinit%3E(int,int,int,it.polimi.ingsw.gc14.Model.Cards.TribeCards.CharacterType)" class="member-name-link">Building1</a><wbr>(int era,
|
||||
int price,
|
||||
int prestigeValue,
|
||||
<a href="../../TribeCards/CharacterType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">CharacterType</a> icon)</code></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">Creates a building with the specified era, price, prestige value
|
||||
and character type involved in its effect.</div>
|
||||
</div>
|
||||
<div class="col-constructor-name odd-row-color"><code><a href="#%3Cinit%3E(java.lang.String,int,int,int,it.polimi.ingsw.gc14.Model.Cards.TribeCards.CharacterType)" class="member-name-link">Building1</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> idIMG,
|
||||
int era,
|
||||
int price,
|
||||
int prestigeValue,
|
||||
<a href="../../TribeCards/CharacterType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">CharacterType</a> icon)</code></div>
|
||||
<div class="col-last odd-row-color">
|
||||
<div class="block">Creates a building with the specified image identifier, era, price,
|
||||
prestige value and character type involved in its effect.</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ========== METHOD SUMMARY =========== -->
|
||||
<li>
|
||||
<section class="method-summary" id="method-summary">
|
||||
<h2>Method Summary</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">All Methods</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">Instance Methods</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">Concrete Methods</button></div>
|
||||
<div id="method-summary-table.tabpanel" role="tabpanel" aria-labelledby="method-summary-table-tab0">
|
||||
<div class="summary-table three-column-summary">
|
||||
<div class="table-header col-first">Modifier and Type</div>
|
||||
<div class="table-header col-second">Method</div>
|
||||
<div class="table-header col-last">Description</div>
|
||||
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="../../BuildingCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">BuildingCard</a></code></div>
|
||||
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#clone()" class="member-name-link">clone</a>()</code></div>
|
||||
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Creates a new building instance with the same configuration values
|
||||
as this card.</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="../../TribeCards/CharacterType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">CharacterType</a></code></div>
|
||||
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getIcon()" class="member-name-link">getIcon</a>()</code></div>
|
||||
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Returns the character type associated with this building effect.</div>
|
||||
</div>
|
||||
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
|
||||
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#toStringBoard()" class="member-name-link">toStringBoard</a>()</code></div>
|
||||
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Returns the representation shown on the board (offer track cards).</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
|
||||
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#toStringPlayer()" class="member-name-link">toStringPlayer</a>()</code></div>
|
||||
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Returns the compact representation shown in the player hand panel.</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-it.polimi.ingsw.gc14.Model.Cards.BuildingCard">Methods inherited from class <a href="../../BuildingCard.html#method-summary" title="class in it.polimi.ingsw.gc14.Model.Cards">BuildingCard</a></h3>
|
||||
<code><a href="../../BuildingCard.html#applyEffect(it.polimi.ingsw.gc14.Model.Player)" title="applyEffect(Player)">applyEffect</a>, <a href="../../BuildingCard.html#buy(it.polimi.ingsw.gc14.Model.Player)" title="buy(Player)">buy</a>, <a href="../../BuildingCard.html#getEffectId()" title="getEffectId()">getEffectId</a>, <a href="../../BuildingCard.html#getEffectType()" title="getEffectType()">getEffectType</a>, <a href="../../BuildingCard.html#getPrestigeValue()" title="getPrestigeValue()">getPrestigeValue</a>, <a href="../../BuildingCard.html#getPrice()" title="getPrice()">getPrice</a></code></div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-it.polimi.ingsw.gc14.Model.PlayableCard">Methods inherited from class <a href="../../../PlayableCard.html#method-summary" title="class in it.polimi.ingsw.gc14.Model">PlayableCard</a></h3>
|
||||
<code><a href="../../../PlayableCard.html#getEra()" title="getEra()">getEra</a>, <a href="../../../PlayableCard.html#getIdIMG()" title="getIdIMG()">getIdIMG</a></code></div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-java.lang.Object">Methods inherited from class <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#method-summary" title="class or interface in java.lang" class="external-link">Object</a></h3>
|
||||
<code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang" class="external-link">equals</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()" title="class or interface in java.lang" class="external-link">finalize</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()" title="class or interface in java.lang" class="external-link">getClass</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()" title="class or interface in java.lang" class="external-link">hashCode</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()" title="class or interface in java.lang" class="external-link">notify</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()" title="class or interface in java.lang" class="external-link">notifyAll</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()" title="class or interface in java.lang" class="external-link">toString</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)" title="class or interface 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>Field Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="icon">
|
||||
<h3>icon</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">private final</span> <span class="return-type"><a href="../../TribeCards/CharacterType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">CharacterType</a></span> <span class="element-name">icon</span></div>
|
||||
<div class="block">Character type involved in the building effect.</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
||||
<li>
|
||||
<section class="constructor-details" id="constructor-detail">
|
||||
<h2>Constructor Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="<init>(int,int,int,it.polimi.ingsw.gc14.Model.Cards.TribeCards.CharacterType)">
|
||||
<h3>Building1</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="element-name">Building1</span><wbr><span class="parameters">(int era,
|
||||
int price,
|
||||
int prestigeValue,
|
||||
<a href="../../TribeCards/CharacterType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">CharacterType</a> icon)</span></div>
|
||||
<div class="block">Creates a building with the specified era, price, prestige value
|
||||
and character type involved in its effect.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>era</code> - the game era of the building.</dd>
|
||||
<dd><code>price</code> - the price in food of the building.</dd>
|
||||
<dd><code>prestigeValue</code> - the number of Prestige Points gained from this building at the end of the game.</dd>
|
||||
<dd><code>icon</code> - the character type used by the building effect.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="<init>(java.lang.String,int,int,int,it.polimi.ingsw.gc14.Model.Cards.TribeCards.CharacterType)">
|
||||
<h3>Building1</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="element-name">Building1</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> idIMG,
|
||||
int era,
|
||||
int price,
|
||||
int prestigeValue,
|
||||
<a href="../../TribeCards/CharacterType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">CharacterType</a> icon)</span></div>
|
||||
<div class="block">Creates a building with the specified image identifier, era, price,
|
||||
prestige value and character type involved in its effect.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>idIMG</code> - the image identifier of the building.</dd>
|
||||
<dd><code>era</code> - the game era of the building.</dd>
|
||||
<dd><code>price</code> - the price in food of the building.</dd>
|
||||
<dd><code>prestigeValue</code> - the number of Prestige Points gained from this building at the end of the game.</dd>
|
||||
<dd><code>icon</code> - the character type used by the building effect.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ============ METHOD DETAIL ========== -->
|
||||
<li>
|
||||
<section class="method-details" id="method-detail">
|
||||
<h2>Method Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="getIcon()">
|
||||
<h3>getIcon</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="../../TribeCards/CharacterType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">CharacterType</a></span> <span class="element-name">getIcon</span>()</div>
|
||||
<div class="block">Returns the character type associated with this building effect.</div>
|
||||
<dl class="notes">
|
||||
<dt>Returns:</dt>
|
||||
<dd>the character type associated with this building effect.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="clone()">
|
||||
<h3>clone</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="../../BuildingCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">BuildingCard</a></span> <span class="element-name">clone</span>()</div>
|
||||
<div class="block">Creates a new building instance with the same configuration values
|
||||
as this card.</div>
|
||||
<dl class="notes">
|
||||
<dt>Overrides:</dt>
|
||||
<dd><code><a href="../../BuildingCard.html#clone()">clone</a></code> in class <code><a href="../../BuildingCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">BuildingCard</a></code></dd>
|
||||
<dt>Returns:</dt>
|
||||
<dd>a new building card with the same base properties and icon.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="toStringBoard()">
|
||||
<h3>toStringBoard</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span> <span class="element-name">toStringBoard</span>()</div>
|
||||
<div class="block"><span class="description-from-type-label">Description copied from class: <code><a href="../../../PlayableCard.html#toStringBoard()">PlayableCard</a></code></span></div>
|
||||
<div class="block">Returns the representation shown on the board (offer track cards).</div>
|
||||
<dl class="notes">
|
||||
<dt>Overrides:</dt>
|
||||
<dd><code><a href="../../BuildingCard.html#toStringBoard()">toStringBoard</a></code> in class <code><a href="../../BuildingCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">BuildingCard</a></code></dd>
|
||||
<dt>Returns:</dt>
|
||||
<dd>the board string representation of this card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="toStringPlayer()">
|
||||
<h3>toStringPlayer</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span> <span class="element-name">toStringPlayer</span>()</div>
|
||||
<div class="block"><span class="description-from-type-label">Description copied from class: <code><a href="../../../PlayableCard.html#toStringPlayer()">PlayableCard</a></code></span></div>
|
||||
<div class="block">Returns the compact representation shown in the player hand panel.</div>
|
||||
<dl class="notes">
|
||||
<dt>Overrides:</dt>
|
||||
<dd><code><a href="../../BuildingCard.html#toStringPlayer()">toStringPlayer</a></code> in class <code><a href="../../BuildingCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">BuildingCard</a></code></dd>
|
||||
<dt>Returns:</dt>
|
||||
<dd>the player-hand string representation of this card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<!-- ========= END OF CLASS DATA ========= -->
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
+320
@@ -0,0 +1,320 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="it">
|
||||
<head>
|
||||
<!-- Generated by javadoc (25) on Fri Jun 19 23:05:23 CEST 2026 -->
|
||||
<title>Building10</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="2026-06-19">
|
||||
<meta name="description" content="declaration: module: it.polimi.ingsw.gc14, package: it.polimi.ingsw.gc14.Model.Cards.Building.Effects, class: Building10">
|
||||
<meta name="generator" content="javadoc/ClassWriter">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../../resource-files/jquery-ui.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../../resource-files/stylesheet.css">
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/script.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/jquery-3.7.1.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/jquery-ui.min.js"></script>
|
||||
</head>
|
||||
<body class="class-declaration-page">
|
||||
<script type="text/javascript">const pathtoroot = "../../../../../../../../../";
|
||||
loadScripts(document, 'script');</script>
|
||||
<noscript>
|
||||
<div>JavaScript is disabled on your browser.</div>
|
||||
</noscript>
|
||||
<header role="banner">
|
||||
<nav role="navigation">
|
||||
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||
<div class="top-nav" id="navbar-top">
|
||||
<div class="nav-content">
|
||||
<div class="nav-menu-button"><button id="navbar-toggle-button" aria-controls="navbar-top" aria-expanded="false" aria-label="Toggle navigation links"><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span></button></div>
|
||||
<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="../../../../../../../../module-summary.html">Module</a></li>
|
||||
<li class="nav-bar-cell1-rev">Class</li>
|
||||
<li><a href="package-tree.html">Tree</a></li>
|
||||
<li><a href="../../../../../../../../../index-files/index-1.html">Index</a></li>
|
||||
<li><a href="../../../../../../../../../search.html">Search</a></li>
|
||||
<li><a href="../../../../../../../../../help-doc.html#class">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sub-nav">
|
||||
<div class="nav-content">
|
||||
<ol class="sub-nav-list">
|
||||
<li><a href="../../../../../../../../module-summary.html">it.polimi.ingsw.gc14</a></li>
|
||||
<li><a href="package-summary.html">it.polimi.ingsw.gc14.Model.Cards.Building.Effects</a></li>
|
||||
<li><a href="Building10.html" class="current-selection">Building10</a></li>
|
||||
</ol>
|
||||
<div class="nav-list-search"><input type="text" id="search-input" disabled placeholder="Search documentation (type /)" aria-label="Search in documentation" autocomplete="off" spellcheck="false"><input type="reset" id="reset-search" disabled value="Reset"></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<span class="skip-nav" id="skip-navbar-top"></span></nav>
|
||||
</header>
|
||||
<div class="main-grid">
|
||||
<nav role="navigation" class="toc" aria-label="Table of contents">
|
||||
<div class="toc-header">Contents <input type="text" class="filter-input" disabled placeholder="Filter contents (type .)" aria-label="Filter table of contents" autocomplete="off" spellcheck="false"><input type="reset" class="reset-filter" disabled tabindex="-1" value="Reset"></div>
|
||||
<ol class="toc-list" tabindex="-1">
|
||||
<li><a href="#" tabindex="0">Description</a></li>
|
||||
<li><a href="#field-summary" tabindex="0">Field Summary</a></li>
|
||||
<li><a href="#constructor-summary" tabindex="0">Constructor Summary</a></li>
|
||||
<li><a href="#method-summary" tabindex="0">Method Summary</a></li>
|
||||
<li><a href="#field-detail" tabindex="0">Field Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#PRESTIGE_PER_CHARACTER_SET" tabindex="0">PRESTIGE_PER_CHARACTER_SET</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
<li><a href="#constructor-detail" tabindex="0">Constructor Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#%3Cinit%3E(int,int,int)" tabindex="0">Building10(int, int, int)</a></li>
|
||||
<li><a href="#%3Cinit%3E(java.lang.String,int,int,int)" tabindex="0">Building10(String, int, int, int)</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
<li><a href="#method-detail" tabindex="0">Method Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#clone()" tabindex="0">clone()</a></li>
|
||||
<li><a href="#applyEffect(it.polimi.ingsw.gc14.Model.Player)" tabindex="0">applyEffect(Player)</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
</ol>
|
||||
<button class="hide-sidebar"><span>Hide sidebar </span><img src="../../../../../../../../../resource-files/left.svg" alt="Hide sidebar"></button><button class="show-sidebar"><img src="../../../../../../../../../resource-files/right.svg" alt="Show sidebar"><span> Show sidebar</span></button></nav>
|
||||
<main role="main">
|
||||
<!-- ======== START OF CLASS DATA ======== -->
|
||||
<div class="header">
|
||||
<h1 title="Class Building10" class="title">Class Building10</h1>
|
||||
</div>
|
||||
<div class="inheritance" title="Inheritance Tree"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">java.lang.Object</a>
|
||||
<div class="inheritance"><a href="../../../PlayableCard.html" title="class in it.polimi.ingsw.gc14.Model">it.polimi.ingsw.gc14.Model.PlayableCard</a>
|
||||
<div class="inheritance"><a href="../../BuildingCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">it.polimi.ingsw.gc14.Model.Cards.BuildingCard</a>
|
||||
<div class="inheritance">it.polimi.ingsw.gc14.Model.Cards.Building.Effects.Building10</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<section class="class-description" id="class-description">
|
||||
<dl class="notes">
|
||||
<dt>All Implemented Interfaces:</dt>
|
||||
<dd><code><a href="../BuildingEffect.html" title="interface in it.polimi.ingsw.gc14.Model.Cards.Building">BuildingEffect</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/Serializable.html" title="class or interface in java.io" class="external-link">Serializable</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Cloneable.html" title="class or interface in java.lang" class="external-link">Cloneable</a></code></dd>
|
||||
</dl>
|
||||
<hr>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="type-signature"><span class="modifiers">public class </span><span class="element-name type-name-label">Building10</span>
|
||||
<span class="extends-implements">extends <a href="../../BuildingCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">BuildingCard</a></span></div>
|
||||
<div class="block">At the end of the game, the player gains 6 Prestige Points
|
||||
for each complete set of character types in their tribe.
|
||||
|
||||
<p>A complete set contains one character card of each <a href="../../TribeCards/CharacterType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards"><code>CharacterType</code></a>.</div>
|
||||
<dl class="notes">
|
||||
<dt>See Also:</dt>
|
||||
<dd>
|
||||
<ul class="tag-list">
|
||||
<li><a href="../../../../../../../../../serialized-form.html#it.polimi.ingsw.gc14.Model.Cards.Building.Effects.Building10">Serialized Form</a></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
<section class="summary">
|
||||
<ul class="summary-list">
|
||||
<!-- =========== FIELD SUMMARY =========== -->
|
||||
<li>
|
||||
<section class="field-summary" id="field-summary">
|
||||
<h2>Field Summary</h2>
|
||||
<div class="caption"><span>Fields</span></div>
|
||||
<div class="summary-table three-column-summary">
|
||||
<div class="table-header col-first">Modifier and Type</div>
|
||||
<div class="table-header col-second">Field</div>
|
||||
<div class="table-header col-last">Description</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="#PRESTIGE_PER_CHARACTER_SET" class="member-name-link">PRESTIGE_PER_CHARACTER_SET</a></code></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">Prestige points granted per complete character set at end of game.</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="fields-inherited-from-class-it.polimi.ingsw.gc14.Model.Cards.BuildingCard">Fields inherited from class <a href="../../BuildingCard.html#field-summary" title="class in it.polimi.ingsw.gc14.Model.Cards">BuildingCard</a></h3>
|
||||
<code><a href="../../BuildingCard.html#effectId">effectId</a>, <a href="../../BuildingCard.html#effectType">effectType</a></code></div>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
||||
<li>
|
||||
<section class="constructor-summary" id="constructor-summary">
|
||||
<h2>Constructor Summary</h2>
|
||||
<div class="caption"><span>Constructors</span></div>
|
||||
<div class="summary-table two-column-summary">
|
||||
<div class="table-header col-first">Constructor</div>
|
||||
<div class="table-header col-last">Description</div>
|
||||
<div class="col-constructor-name even-row-color"><code><a href="#%3Cinit%3E(int,int,int)" class="member-name-link">Building10</a><wbr>(int era,
|
||||
int price,
|
||||
int prestigeValue)</code></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">Creates a Building10 card with the specified era, price, and prestige value.</div>
|
||||
</div>
|
||||
<div class="col-constructor-name odd-row-color"><code><a href="#%3Cinit%3E(java.lang.String,int,int,int)" class="member-name-link">Building10</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> idIMG,
|
||||
int era,
|
||||
int price,
|
||||
int prestigeValue)</code></div>
|
||||
<div class="col-last odd-row-color">
|
||||
<div class="block">Creates a Building10 card with the specified image id, era, price, and prestige value.</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ========== METHOD SUMMARY =========== -->
|
||||
<li>
|
||||
<section class="method-summary" id="method-summary">
|
||||
<h2>Method Summary</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">All Methods</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">Instance Methods</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">Concrete Methods</button></div>
|
||||
<div id="method-summary-table.tabpanel" role="tabpanel" aria-labelledby="method-summary-table-tab0">
|
||||
<div class="summary-table three-column-summary">
|
||||
<div class="table-header col-first">Modifier and Type</div>
|
||||
<div class="table-header col-second">Method</div>
|
||||
<div class="table-header col-last">Description</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="#applyEffect(it.polimi.ingsw.gc14.Model.Player)" class="member-name-link">applyEffect</a><wbr>(<a href="../../../Player.html" title="class in it.polimi.ingsw.gc14.Model">Player</a> player)</code></div>
|
||||
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Applies the effect of this building card to the specified player.</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="../../BuildingCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">BuildingCard</a></code></div>
|
||||
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#clone()" class="member-name-link">clone</a>()</code></div>
|
||||
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Creates and returns a copy of this Building10 card.</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-it.polimi.ingsw.gc14.Model.Cards.BuildingCard">Methods inherited from class <a href="../../BuildingCard.html#method-summary" title="class in it.polimi.ingsw.gc14.Model.Cards">BuildingCard</a></h3>
|
||||
<code><a href="../../BuildingCard.html#buy(it.polimi.ingsw.gc14.Model.Player)" title="buy(Player)">buy</a>, <a href="../../BuildingCard.html#getEffectId()" title="getEffectId()">getEffectId</a>, <a href="../../BuildingCard.html#getEffectType()" title="getEffectType()">getEffectType</a>, <a href="../../BuildingCard.html#getPrestigeValue()" title="getPrestigeValue()">getPrestigeValue</a>, <a href="../../BuildingCard.html#getPrice()" title="getPrice()">getPrice</a>, <a href="../../BuildingCard.html#toStringBoard()" title="toStringBoard()">toStringBoard</a>, <a href="../../BuildingCard.html#toStringPlayer()" title="toStringPlayer()">toStringPlayer</a></code></div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-it.polimi.ingsw.gc14.Model.PlayableCard">Methods inherited from class <a href="../../../PlayableCard.html#method-summary" title="class in it.polimi.ingsw.gc14.Model">PlayableCard</a></h3>
|
||||
<code><a href="../../../PlayableCard.html#getEra()" title="getEra()">getEra</a>, <a href="../../../PlayableCard.html#getIdIMG()" title="getIdIMG()">getIdIMG</a></code></div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-java.lang.Object">Methods inherited from class <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#method-summary" title="class or interface in java.lang" class="external-link">Object</a></h3>
|
||||
<code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang" class="external-link">equals</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()" title="class or interface in java.lang" class="external-link">finalize</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()" title="class or interface in java.lang" class="external-link">getClass</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()" title="class or interface in java.lang" class="external-link">hashCode</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()" title="class or interface in java.lang" class="external-link">notify</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()" title="class or interface in java.lang" class="external-link">notifyAll</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()" title="class or interface in java.lang" class="external-link">toString</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)" title="class or interface 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>Field Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="PRESTIGE_PER_CHARACTER_SET">
|
||||
<h3>PRESTIGE_PER_CHARACTER_SET</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">private static final</span> <span class="return-type">int</span> <span class="element-name">PRESTIGE_PER_CHARACTER_SET</span></div>
|
||||
<div class="block">Prestige points granted per complete character set at end of game.</div>
|
||||
<dl class="notes">
|
||||
<dt>See Also:</dt>
|
||||
<dd>
|
||||
<ul class="tag-list">
|
||||
<li><a href="../../../../../../../../../constant-values.html#it.polimi.ingsw.gc14.Model.Cards.Building.Effects.Building10.PRESTIGE_PER_CHARACTER_SET">Constant Field Values</a></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
||||
<li>
|
||||
<section class="constructor-details" id="constructor-detail">
|
||||
<h2>Constructor Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="<init>(int,int,int)">
|
||||
<h3>Building10</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="element-name">Building10</span><wbr><span class="parameters">(int era,
|
||||
int price,
|
||||
int prestigeValue)</span></div>
|
||||
<div class="block">Creates a Building10 card with the specified era, price, and prestige value.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>era</code> - the era of the building card.</dd>
|
||||
<dd><code>price</code> - the price of the building card.</dd>
|
||||
<dd><code>prestigeValue</code> - the prestige value of the building card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="<init>(java.lang.String,int,int,int)">
|
||||
<h3>Building10</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="element-name">Building10</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> idIMG,
|
||||
int era,
|
||||
int price,
|
||||
int prestigeValue)</span></div>
|
||||
<div class="block">Creates a Building10 card with the specified image id, era, price, and prestige value.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>idIMG</code> - the image identifier of the building card.</dd>
|
||||
<dd><code>era</code> - the era of the building card.</dd>
|
||||
<dd><code>price</code> - the price of the building card.</dd>
|
||||
<dd><code>prestigeValue</code> - the prestige value of the building card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ============ METHOD DETAIL ========== -->
|
||||
<li>
|
||||
<section class="method-details" id="method-detail">
|
||||
<h2>Method Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="clone()">
|
||||
<h3>clone</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="../../BuildingCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">BuildingCard</a></span> <span class="element-name">clone</span>()</div>
|
||||
<div class="block">Creates and returns a copy of this Building10 card.</div>
|
||||
<dl class="notes">
|
||||
<dt>Overrides:</dt>
|
||||
<dd><code><a href="../../BuildingCard.html#clone()">clone</a></code> in class <code><a href="../../BuildingCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">BuildingCard</a></code></dd>
|
||||
<dt>Returns:</dt>
|
||||
<dd>a clone of this Building10 card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="applyEffect(it.polimi.ingsw.gc14.Model.Player)">
|
||||
<h3>applyEffect</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">applyEffect</span><wbr><span class="parameters">(<a href="../../../Player.html" title="class in it.polimi.ingsw.gc14.Model">Player</a> player)</span>
|
||||
throws <span class="exceptions"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a></span></div>
|
||||
<div class="block">Applies the effect of this building card to the specified player.
|
||||
|
||||
<p>The effect grants 6 Prestige Points for each complete set of character
|
||||
cards owned by the player, where a complete set contains one card of each
|
||||
<a href="../../TribeCards/CharacterType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards"><code>CharacterType</code></a>.</div>
|
||||
<dl class="notes">
|
||||
<dt>Overrides:</dt>
|
||||
<dd><code><a href="../../BuildingCard.html#applyEffect(it.polimi.ingsw.gc14.Model.Player)">applyEffect</a></code> in class <code><a href="../../BuildingCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">BuildingCard</a></code></dd>
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>player</code> - the player to whom the effect is applied.</dd>
|
||||
<dt>Throws:</dt>
|
||||
<dd><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a></code> - if the player does not own this building card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<!-- ========= END OF CLASS DATA ========= -->
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
+424
@@ -0,0 +1,424 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="it">
|
||||
<head>
|
||||
<!-- Generated by javadoc (25) on Fri Jun 19 23:05:23 CEST 2026 -->
|
||||
<title>Building11</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="2026-06-19">
|
||||
<meta name="description" content="declaration: module: it.polimi.ingsw.gc14, package: it.polimi.ingsw.gc14.Model.Cards.Building.Effects, class: Building11">
|
||||
<meta name="generator" content="javadoc/ClassWriter">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../../resource-files/jquery-ui.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../../resource-files/stylesheet.css">
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/script.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/jquery-3.7.1.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/jquery-ui.min.js"></script>
|
||||
</head>
|
||||
<body class="class-declaration-page">
|
||||
<script type="text/javascript">const pathtoroot = "../../../../../../../../../";
|
||||
loadScripts(document, 'script');</script>
|
||||
<noscript>
|
||||
<div>JavaScript is disabled on your browser.</div>
|
||||
</noscript>
|
||||
<header role="banner">
|
||||
<nav role="navigation">
|
||||
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||
<div class="top-nav" id="navbar-top">
|
||||
<div class="nav-content">
|
||||
<div class="nav-menu-button"><button id="navbar-toggle-button" aria-controls="navbar-top" aria-expanded="false" aria-label="Toggle navigation links"><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span></button></div>
|
||||
<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="../../../../../../../../module-summary.html">Module</a></li>
|
||||
<li class="nav-bar-cell1-rev">Class</li>
|
||||
<li><a href="package-tree.html">Tree</a></li>
|
||||
<li><a href="../../../../../../../../../index-files/index-1.html">Index</a></li>
|
||||
<li><a href="../../../../../../../../../search.html">Search</a></li>
|
||||
<li><a href="../../../../../../../../../help-doc.html#class">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sub-nav">
|
||||
<div class="nav-content">
|
||||
<ol class="sub-nav-list">
|
||||
<li><a href="../../../../../../../../module-summary.html">it.polimi.ingsw.gc14</a></li>
|
||||
<li><a href="package-summary.html">it.polimi.ingsw.gc14.Model.Cards.Building.Effects</a></li>
|
||||
<li><a href="Building11.html" class="current-selection">Building11</a></li>
|
||||
</ol>
|
||||
<div class="nav-list-search"><input type="text" id="search-input" disabled placeholder="Search documentation (type /)" aria-label="Search in documentation" autocomplete="off" spellcheck="false"><input type="reset" id="reset-search" disabled value="Reset"></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<span class="skip-nav" id="skip-navbar-top"></span></nav>
|
||||
</header>
|
||||
<div class="main-grid">
|
||||
<nav role="navigation" class="toc" aria-label="Table of contents">
|
||||
<div class="toc-header">Contents <input type="text" class="filter-input" disabled placeholder="Filter contents (type .)" aria-label="Filter table of contents" autocomplete="off" spellcheck="false"><input type="reset" class="reset-filter" disabled tabindex="-1" value="Reset"></div>
|
||||
<ol class="toc-list" tabindex="-1">
|
||||
<li><a href="#" tabindex="0">Description</a></li>
|
||||
<li><a href="#field-summary" tabindex="0">Field Summary</a></li>
|
||||
<li><a href="#constructor-summary" tabindex="0">Constructor Summary</a></li>
|
||||
<li><a href="#method-summary" tabindex="0">Method Summary</a></li>
|
||||
<li><a href="#field-detail" tabindex="0">Field Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#characterType" tabindex="0">characterType</a></li>
|
||||
<li><a href="#prestigeMul" tabindex="0">prestigeMul</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
<li><a href="#constructor-detail" tabindex="0">Constructor Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#%3Cinit%3E(int,int,int,it.polimi.ingsw.gc14.Model.Cards.TribeCards.CharacterType,int)" tabindex="0">Building11(int, int, int, CharacterType, int)</a></li>
|
||||
<li><a href="#%3Cinit%3E(java.lang.String,int,int,int,it.polimi.ingsw.gc14.Model.Cards.TribeCards.CharacterType,int)" tabindex="0">Building11(String, int, int, int, CharacterType, int)</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
<li><a href="#method-detail" tabindex="0">Method Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#getIcon()" tabindex="0">getIcon()</a></li>
|
||||
<li><a href="#getPrestigeMul()" tabindex="0">getPrestigeMul()</a></li>
|
||||
<li><a href="#clone()" tabindex="0">clone()</a></li>
|
||||
<li><a href="#applyEffect(it.polimi.ingsw.gc14.Model.Player)" tabindex="0">applyEffect(Player)</a></li>
|
||||
<li><a href="#toStringBoard()" tabindex="0">toStringBoard()</a></li>
|
||||
<li><a href="#toStringPlayer()" tabindex="0">toStringPlayer()</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
</ol>
|
||||
<button class="hide-sidebar"><span>Hide sidebar </span><img src="../../../../../../../../../resource-files/left.svg" alt="Hide sidebar"></button><button class="show-sidebar"><img src="../../../../../../../../../resource-files/right.svg" alt="Show sidebar"><span> Show sidebar</span></button></nav>
|
||||
<main role="main">
|
||||
<!-- ======== START OF CLASS DATA ======== -->
|
||||
<div class="header">
|
||||
<h1 title="Class Building11" class="title">Class Building11</h1>
|
||||
</div>
|
||||
<div class="inheritance" title="Inheritance Tree"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">java.lang.Object</a>
|
||||
<div class="inheritance"><a href="../../../PlayableCard.html" title="class in it.polimi.ingsw.gc14.Model">it.polimi.ingsw.gc14.Model.PlayableCard</a>
|
||||
<div class="inheritance"><a href="../../BuildingCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">it.polimi.ingsw.gc14.Model.Cards.BuildingCard</a>
|
||||
<div class="inheritance">it.polimi.ingsw.gc14.Model.Cards.Building.Effects.Building11</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<section class="class-description" id="class-description">
|
||||
<dl class="notes">
|
||||
<dt>All Implemented Interfaces:</dt>
|
||||
<dd><code><a href="../BuildingEffect.html" title="interface in it.polimi.ingsw.gc14.Model.Cards.Building">BuildingEffect</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/Serializable.html" title="class or interface in java.io" class="external-link">Serializable</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Cloneable.html" title="class or interface in java.lang" class="external-link">Cloneable</a></code></dd>
|
||||
</dl>
|
||||
<hr>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="type-signature"><span class="modifiers">public class </span><span class="element-name type-name-label">Building11</span>
|
||||
<span class="extends-implements">extends <a href="../../BuildingCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">BuildingCard</a></span></div>
|
||||
<div class="block">At the end of the game, the player gains Prestige Points based on the number
|
||||
of cards of the indicated character type in their tribe.
|
||||
|
||||
<p>The gained amount is equal to the number of matching character cards
|
||||
multiplied by the building's prestige multiplier.</div>
|
||||
<dl class="notes">
|
||||
<dt>See Also:</dt>
|
||||
<dd>
|
||||
<ul class="tag-list">
|
||||
<li><a href="../../../../../../../../../serialized-form.html#it.polimi.ingsw.gc14.Model.Cards.Building.Effects.Building11">Serialized Form</a></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
<section class="summary">
|
||||
<ul class="summary-list">
|
||||
<!-- =========== FIELD SUMMARY =========== -->
|
||||
<li>
|
||||
<section class="field-summary" id="field-summary">
|
||||
<h2>Field Summary</h2>
|
||||
<div class="caption"><span>Fields</span></div>
|
||||
<div class="summary-table three-column-summary">
|
||||
<div class="table-header col-first">Modifier and Type</div>
|
||||
<div class="table-header col-second">Field</div>
|
||||
<div class="table-header col-last">Description</div>
|
||||
<div class="col-first even-row-color"><code>private final <a href="../../TribeCards/CharacterType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">CharacterType</a></code></div>
|
||||
<div class="col-second even-row-color"><code><a href="#characterType" class="member-name-link">characterType</a></code></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">The character type involved in this building effect.</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color"><code>private final int</code></div>
|
||||
<div class="col-second odd-row-color"><code><a href="#prestigeMul" class="member-name-link">prestigeMul</a></code></div>
|
||||
<div class="col-last odd-row-color">
|
||||
<div class="block">The prestige multiplier applied per matching character card at end of game.</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="fields-inherited-from-class-it.polimi.ingsw.gc14.Model.Cards.BuildingCard">Fields inherited from class <a href="../../BuildingCard.html#field-summary" title="class in it.polimi.ingsw.gc14.Model.Cards">BuildingCard</a></h3>
|
||||
<code><a href="../../BuildingCard.html#effectId">effectId</a>, <a href="../../BuildingCard.html#effectType">effectType</a></code></div>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
||||
<li>
|
||||
<section class="constructor-summary" id="constructor-summary">
|
||||
<h2>Constructor Summary</h2>
|
||||
<div class="caption"><span>Constructors</span></div>
|
||||
<div class="summary-table two-column-summary">
|
||||
<div class="table-header col-first">Constructor</div>
|
||||
<div class="table-header col-last">Description</div>
|
||||
<div class="col-constructor-name even-row-color"><code><a href="#%3Cinit%3E(int,int,int,it.polimi.ingsw.gc14.Model.Cards.TribeCards.CharacterType,int)" class="member-name-link">Building11</a><wbr>(int era,
|
||||
int price,
|
||||
int prestigeValue,
|
||||
<a href="../../TribeCards/CharacterType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">CharacterType</a> icon,
|
||||
int prestigeMul)</code></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">Creates a Building11 card with the specified era, price, prestige value,
|
||||
character type icon, and prestige multiplier.</div>
|
||||
</div>
|
||||
<div class="col-constructor-name odd-row-color"><code><a href="#%3Cinit%3E(java.lang.String,int,int,int,it.polimi.ingsw.gc14.Model.Cards.TribeCards.CharacterType,int)" class="member-name-link">Building11</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> idIMG,
|
||||
int era,
|
||||
int price,
|
||||
int prestigeValue,
|
||||
<a href="../../TribeCards/CharacterType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">CharacterType</a> icon,
|
||||
int prestigeMul)</code></div>
|
||||
<div class="col-last odd-row-color">
|
||||
<div class="block">Creates a Building11 card with the specified image id, era, price, prestige value,
|
||||
character type icon, and prestige multiplier.</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ========== METHOD SUMMARY =========== -->
|
||||
<li>
|
||||
<section class="method-summary" id="method-summary">
|
||||
<h2>Method Summary</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">All Methods</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">Instance Methods</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">Concrete Methods</button></div>
|
||||
<div id="method-summary-table.tabpanel" role="tabpanel" aria-labelledby="method-summary-table-tab0">
|
||||
<div class="summary-table three-column-summary">
|
||||
<div class="table-header col-first">Modifier and Type</div>
|
||||
<div class="table-header col-second">Method</div>
|
||||
<div class="table-header col-last">Description</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="#applyEffect(it.polimi.ingsw.gc14.Model.Player)" class="member-name-link">applyEffect</a><wbr>(<a href="../../../Player.html" title="class in it.polimi.ingsw.gc14.Model">Player</a> player)</code></div>
|
||||
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Applies the effect of this building card to the specified player.</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="../../BuildingCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">BuildingCard</a></code></div>
|
||||
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#clone()" class="member-name-link">clone</a>()</code></div>
|
||||
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Creates and returns a copy of this Building11 card.</div>
|
||||
</div>
|
||||
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="../../TribeCards/CharacterType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">CharacterType</a></code></div>
|
||||
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getIcon()" class="member-name-link">getIcon</a>()</code></div>
|
||||
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Returns the CharacterType associated with this building card effect.</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="#getPrestigeMul()" class="member-name-link">getPrestigeMul</a>()</code></div>
|
||||
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Returns the prestige multiplier associated with this building card effect.</div>
|
||||
</div>
|
||||
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
|
||||
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#toStringBoard()" class="member-name-link">toStringBoard</a>()</code></div>
|
||||
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Returns the representation shown on the board (offer track cards).</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
|
||||
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#toStringPlayer()" class="member-name-link">toStringPlayer</a>()</code></div>
|
||||
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Returns the compact representation shown in the player hand panel.</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-it.polimi.ingsw.gc14.Model.Cards.BuildingCard">Methods inherited from class <a href="../../BuildingCard.html#method-summary" title="class in it.polimi.ingsw.gc14.Model.Cards">BuildingCard</a></h3>
|
||||
<code><a href="../../BuildingCard.html#buy(it.polimi.ingsw.gc14.Model.Player)" title="buy(Player)">buy</a>, <a href="../../BuildingCard.html#getEffectId()" title="getEffectId()">getEffectId</a>, <a href="../../BuildingCard.html#getEffectType()" title="getEffectType()">getEffectType</a>, <a href="../../BuildingCard.html#getPrestigeValue()" title="getPrestigeValue()">getPrestigeValue</a>, <a href="../../BuildingCard.html#getPrice()" title="getPrice()">getPrice</a></code></div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-it.polimi.ingsw.gc14.Model.PlayableCard">Methods inherited from class <a href="../../../PlayableCard.html#method-summary" title="class in it.polimi.ingsw.gc14.Model">PlayableCard</a></h3>
|
||||
<code><a href="../../../PlayableCard.html#getEra()" title="getEra()">getEra</a>, <a href="../../../PlayableCard.html#getIdIMG()" title="getIdIMG()">getIdIMG</a></code></div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-java.lang.Object">Methods inherited from class <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#method-summary" title="class or interface in java.lang" class="external-link">Object</a></h3>
|
||||
<code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang" class="external-link">equals</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()" title="class or interface in java.lang" class="external-link">finalize</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()" title="class or interface in java.lang" class="external-link">getClass</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()" title="class or interface in java.lang" class="external-link">hashCode</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()" title="class or interface in java.lang" class="external-link">notify</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()" title="class or interface in java.lang" class="external-link">notifyAll</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()" title="class or interface in java.lang" class="external-link">toString</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)" title="class or interface 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>Field Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="characterType">
|
||||
<h3>characterType</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">private final</span> <span class="return-type"><a href="../../TribeCards/CharacterType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">CharacterType</a></span> <span class="element-name">characterType</span></div>
|
||||
<div class="block">The character type involved in this building effect.</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="prestigeMul">
|
||||
<h3>prestigeMul</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">private final</span> <span class="return-type">int</span> <span class="element-name">prestigeMul</span></div>
|
||||
<div class="block">The prestige multiplier applied per matching character card at end of game.</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
||||
<li>
|
||||
<section class="constructor-details" id="constructor-detail">
|
||||
<h2>Constructor Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="<init>(int,int,int,it.polimi.ingsw.gc14.Model.Cards.TribeCards.CharacterType,int)">
|
||||
<h3>Building11</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="element-name">Building11</span><wbr><span class="parameters">(int era,
|
||||
int price,
|
||||
int prestigeValue,
|
||||
<a href="../../TribeCards/CharacterType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">CharacterType</a> icon,
|
||||
int prestigeMul)</span></div>
|
||||
<div class="block">Creates a Building11 card with the specified era, price, prestige value,
|
||||
character type icon, and prestige multiplier.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>era</code> - the era of the building card.</dd>
|
||||
<dd><code>price</code> - the price of the building card.</dd>
|
||||
<dd><code>prestigeValue</code> - the prestige value of the building card.</dd>
|
||||
<dd><code>icon</code> - the CharacterType associated with the building card effect.</dd>
|
||||
<dd><code>prestigeMul</code> - the prestige multiplier of the building card effect.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="<init>(java.lang.String,int,int,int,it.polimi.ingsw.gc14.Model.Cards.TribeCards.CharacterType,int)">
|
||||
<h3>Building11</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="element-name">Building11</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> idIMG,
|
||||
int era,
|
||||
int price,
|
||||
int prestigeValue,
|
||||
<a href="../../TribeCards/CharacterType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">CharacterType</a> icon,
|
||||
int prestigeMul)</span></div>
|
||||
<div class="block">Creates a Building11 card with the specified image id, era, price, prestige value,
|
||||
character type icon, and prestige multiplier.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>idIMG</code> - the image identifier of the building card.</dd>
|
||||
<dd><code>era</code> - the era of the building card.</dd>
|
||||
<dd><code>price</code> - the price of the building card.</dd>
|
||||
<dd><code>prestigeValue</code> - the prestige value of the building card.</dd>
|
||||
<dd><code>icon</code> - the CharacterType associated with the building card effect.</dd>
|
||||
<dd><code>prestigeMul</code> - the prestige multiplier of the building card effect.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ============ METHOD DETAIL ========== -->
|
||||
<li>
|
||||
<section class="method-details" id="method-detail">
|
||||
<h2>Method Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="getIcon()">
|
||||
<h3>getIcon</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="../../TribeCards/CharacterType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">CharacterType</a></span> <span class="element-name">getIcon</span>()</div>
|
||||
<div class="block">Returns the CharacterType associated with this building card effect.</div>
|
||||
<dl class="notes">
|
||||
<dt>Returns:</dt>
|
||||
<dd>the CharacterType associated with this building card effect.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="getPrestigeMul()">
|
||||
<h3>getPrestigeMul</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type">int</span> <span class="element-name">getPrestigeMul</span>()</div>
|
||||
<div class="block">Returns the prestige multiplier associated with this building card effect.</div>
|
||||
<dl class="notes">
|
||||
<dt>Returns:</dt>
|
||||
<dd>the prestige multiplier associated with this building card effect.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="clone()">
|
||||
<h3>clone</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="../../BuildingCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">BuildingCard</a></span> <span class="element-name">clone</span>()</div>
|
||||
<div class="block">Creates and returns a copy of this Building11 card.</div>
|
||||
<dl class="notes">
|
||||
<dt>Overrides:</dt>
|
||||
<dd><code><a href="../../BuildingCard.html#clone()">clone</a></code> in class <code><a href="../../BuildingCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">BuildingCard</a></code></dd>
|
||||
<dt>Returns:</dt>
|
||||
<dd>a clone of this Building11 card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="applyEffect(it.polimi.ingsw.gc14.Model.Player)">
|
||||
<h3>applyEffect</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">applyEffect</span><wbr><span class="parameters">(<a href="../../../Player.html" title="class in it.polimi.ingsw.gc14.Model">Player</a> player)</span>
|
||||
throws <span class="exceptions"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a></span></div>
|
||||
<div class="block">Applies the effect of this building card to the specified player.
|
||||
The effect grants prestige points equal to the number of cards of the
|
||||
associated CharacterType owned by the player, multiplied by the prestige multiplier.</div>
|
||||
<dl class="notes">
|
||||
<dt>Overrides:</dt>
|
||||
<dd><code><a href="../../BuildingCard.html#applyEffect(it.polimi.ingsw.gc14.Model.Player)">applyEffect</a></code> in class <code><a href="../../BuildingCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">BuildingCard</a></code></dd>
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>player</code> - the player to whom the effect is applied.</dd>
|
||||
<dt>Throws:</dt>
|
||||
<dd><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a></code> - if the player does not own this building card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="toStringBoard()">
|
||||
<h3>toStringBoard</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span> <span class="element-name">toStringBoard</span>()</div>
|
||||
<div class="block"><span class="description-from-type-label">Description copied from class: <code><a href="../../../PlayableCard.html#toStringBoard()">PlayableCard</a></code></span></div>
|
||||
<div class="block">Returns the representation shown on the board (offer track cards).</div>
|
||||
<dl class="notes">
|
||||
<dt>Overrides:</dt>
|
||||
<dd><code><a href="../../BuildingCard.html#toStringBoard()">toStringBoard</a></code> in class <code><a href="../../BuildingCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">BuildingCard</a></code></dd>
|
||||
<dt>Returns:</dt>
|
||||
<dd>the board string representation of this card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="toStringPlayer()">
|
||||
<h3>toStringPlayer</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span> <span class="element-name">toStringPlayer</span>()</div>
|
||||
<div class="block"><span class="description-from-type-label">Description copied from class: <code><a href="../../../PlayableCard.html#toStringPlayer()">PlayableCard</a></code></span></div>
|
||||
<div class="block">Returns the compact representation shown in the player hand panel.</div>
|
||||
<dl class="notes">
|
||||
<dt>Overrides:</dt>
|
||||
<dd><code><a href="../../BuildingCard.html#toStringPlayer()">toStringPlayer</a></code> in class <code><a href="../../BuildingCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">BuildingCard</a></code></dd>
|
||||
<dt>Returns:</dt>
|
||||
<dd>the player-hand string representation of this card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<!-- ========= END OF CLASS DATA ========= -->
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
+316
@@ -0,0 +1,316 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="it">
|
||||
<head>
|
||||
<!-- Generated by javadoc (25) on Fri Jun 19 23:05:23 CEST 2026 -->
|
||||
<title>Building13</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="2026-06-19">
|
||||
<meta name="description" content="declaration: module: it.polimi.ingsw.gc14, package: it.polimi.ingsw.gc14.Model.Cards.Building.Effects, class: Building13">
|
||||
<meta name="generator" content="javadoc/ClassWriter">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../../resource-files/jquery-ui.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../../resource-files/stylesheet.css">
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/script.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/jquery-3.7.1.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/jquery-ui.min.js"></script>
|
||||
</head>
|
||||
<body class="class-declaration-page">
|
||||
<script type="text/javascript">const pathtoroot = "../../../../../../../../../";
|
||||
loadScripts(document, 'script');</script>
|
||||
<noscript>
|
||||
<div>JavaScript is disabled on your browser.</div>
|
||||
</noscript>
|
||||
<header role="banner">
|
||||
<nav role="navigation">
|
||||
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||
<div class="top-nav" id="navbar-top">
|
||||
<div class="nav-content">
|
||||
<div class="nav-menu-button"><button id="navbar-toggle-button" aria-controls="navbar-top" aria-expanded="false" aria-label="Toggle navigation links"><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span></button></div>
|
||||
<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="../../../../../../../../module-summary.html">Module</a></li>
|
||||
<li class="nav-bar-cell1-rev">Class</li>
|
||||
<li><a href="package-tree.html">Tree</a></li>
|
||||
<li><a href="../../../../../../../../../index-files/index-1.html">Index</a></li>
|
||||
<li><a href="../../../../../../../../../search.html">Search</a></li>
|
||||
<li><a href="../../../../../../../../../help-doc.html#class">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sub-nav">
|
||||
<div class="nav-content">
|
||||
<ol class="sub-nav-list">
|
||||
<li><a href="../../../../../../../../module-summary.html">it.polimi.ingsw.gc14</a></li>
|
||||
<li><a href="package-summary.html">it.polimi.ingsw.gc14.Model.Cards.Building.Effects</a></li>
|
||||
<li><a href="Building13.html" class="current-selection">Building13</a></li>
|
||||
</ol>
|
||||
<div class="nav-list-search"><input type="text" id="search-input" disabled placeholder="Search documentation (type /)" aria-label="Search in documentation" autocomplete="off" spellcheck="false"><input type="reset" id="reset-search" disabled value="Reset"></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<span class="skip-nav" id="skip-navbar-top"></span></nav>
|
||||
</header>
|
||||
<div class="main-grid">
|
||||
<nav role="navigation" class="toc" aria-label="Table of contents">
|
||||
<div class="toc-header">Contents <input type="text" class="filter-input" disabled placeholder="Filter contents (type .)" aria-label="Filter table of contents" autocomplete="off" spellcheck="false"><input type="reset" class="reset-filter" disabled tabindex="-1" value="Reset"></div>
|
||||
<ol class="toc-list" tabindex="-1">
|
||||
<li><a href="#" tabindex="0">Description</a></li>
|
||||
<li><a href="#field-summary" tabindex="0">Field Summary</a></li>
|
||||
<li><a href="#constructor-summary" tabindex="0">Constructor Summary</a></li>
|
||||
<li><a href="#method-summary" tabindex="0">Method Summary</a></li>
|
||||
<li><a href="#field-detail" tabindex="0">Field Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#PRESTIGE_AWARD" tabindex="0">PRESTIGE_AWARD</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
<li><a href="#constructor-detail" tabindex="0">Constructor Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#%3Cinit%3E(int,int,int)" tabindex="0">Building13(int, int, int)</a></li>
|
||||
<li><a href="#%3Cinit%3E(java.lang.String,int,int,int)" tabindex="0">Building13(String, int, int, int)</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
<li><a href="#method-detail" tabindex="0">Method Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#clone()" tabindex="0">clone()</a></li>
|
||||
<li><a href="#applyEffect(it.polimi.ingsw.gc14.Model.Player)" tabindex="0">applyEffect(Player)</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
</ol>
|
||||
<button class="hide-sidebar"><span>Hide sidebar </span><img src="../../../../../../../../../resource-files/left.svg" alt="Hide sidebar"></button><button class="show-sidebar"><img src="../../../../../../../../../resource-files/right.svg" alt="Show sidebar"><span> Show sidebar</span></button></nav>
|
||||
<main role="main">
|
||||
<!-- ======== START OF CLASS DATA ======== -->
|
||||
<div class="header">
|
||||
<h1 title="Class Building13" class="title">Class Building13</h1>
|
||||
</div>
|
||||
<div class="inheritance" title="Inheritance Tree"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">java.lang.Object</a>
|
||||
<div class="inheritance"><a href="../../../PlayableCard.html" title="class in it.polimi.ingsw.gc14.Model">it.polimi.ingsw.gc14.Model.PlayableCard</a>
|
||||
<div class="inheritance"><a href="../../BuildingCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">it.polimi.ingsw.gc14.Model.Cards.BuildingCard</a>
|
||||
<div class="inheritance">it.polimi.ingsw.gc14.Model.Cards.Building.Effects.Building13</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<section class="class-description" id="class-description">
|
||||
<dl class="notes">
|
||||
<dt>All Implemented Interfaces:</dt>
|
||||
<dd><code><a href="../BuildingEffect.html" title="interface in it.polimi.ingsw.gc14.Model.Cards.Building">BuildingEffect</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/Serializable.html" title="class or interface in java.io" class="external-link">Serializable</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Cloneable.html" title="class or interface in java.lang" class="external-link">Cloneable</a></code></dd>
|
||||
</dl>
|
||||
<hr>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="type-signature"><span class="modifiers">public class </span><span class="element-name type-name-label">Building13</span>
|
||||
<span class="extends-implements">extends <a href="../../BuildingCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">BuildingCard</a></span></div>
|
||||
<div class="block">At the end of the game, this building grants 25 Prestige Points
|
||||
to the player who owns it.</div>
|
||||
<dl class="notes">
|
||||
<dt>See Also:</dt>
|
||||
<dd>
|
||||
<ul class="tag-list">
|
||||
<li><a href="../../../../../../../../../serialized-form.html#it.polimi.ingsw.gc14.Model.Cards.Building.Effects.Building13">Serialized Form</a></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
<section class="summary">
|
||||
<ul class="summary-list">
|
||||
<!-- =========== FIELD SUMMARY =========== -->
|
||||
<li>
|
||||
<section class="field-summary" id="field-summary">
|
||||
<h2>Field Summary</h2>
|
||||
<div class="caption"><span>Fields</span></div>
|
||||
<div class="summary-table three-column-summary">
|
||||
<div class="table-header col-first">Modifier and Type</div>
|
||||
<div class="table-header col-second">Field</div>
|
||||
<div class="table-header col-last">Description</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="#PRESTIGE_AWARD" class="member-name-link">PRESTIGE_AWARD</a></code></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">Prestige points granted at end of game by this building.</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="fields-inherited-from-class-it.polimi.ingsw.gc14.Model.Cards.BuildingCard">Fields inherited from class <a href="../../BuildingCard.html#field-summary" title="class in it.polimi.ingsw.gc14.Model.Cards">BuildingCard</a></h3>
|
||||
<code><a href="../../BuildingCard.html#effectId">effectId</a>, <a href="../../BuildingCard.html#effectType">effectType</a></code></div>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
||||
<li>
|
||||
<section class="constructor-summary" id="constructor-summary">
|
||||
<h2>Constructor Summary</h2>
|
||||
<div class="caption"><span>Constructors</span></div>
|
||||
<div class="summary-table two-column-summary">
|
||||
<div class="table-header col-first">Constructor</div>
|
||||
<div class="table-header col-last">Description</div>
|
||||
<div class="col-constructor-name even-row-color"><code><a href="#%3Cinit%3E(int,int,int)" class="member-name-link">Building13</a><wbr>(int era,
|
||||
int price,
|
||||
int prestigeValue)</code></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">Creates a Building13 card with the specified era, price, and prestige value.</div>
|
||||
</div>
|
||||
<div class="col-constructor-name odd-row-color"><code><a href="#%3Cinit%3E(java.lang.String,int,int,int)" class="member-name-link">Building13</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> idIMG,
|
||||
int era,
|
||||
int price,
|
||||
int prestigeValue)</code></div>
|
||||
<div class="col-last odd-row-color">
|
||||
<div class="block">Creates a Building13 card with the specified image id, era, price, and prestige value.</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ========== METHOD SUMMARY =========== -->
|
||||
<li>
|
||||
<section class="method-summary" id="method-summary">
|
||||
<h2>Method Summary</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">All Methods</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">Instance Methods</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">Concrete Methods</button></div>
|
||||
<div id="method-summary-table.tabpanel" role="tabpanel" aria-labelledby="method-summary-table-tab0">
|
||||
<div class="summary-table three-column-summary">
|
||||
<div class="table-header col-first">Modifier and Type</div>
|
||||
<div class="table-header col-second">Method</div>
|
||||
<div class="table-header col-last">Description</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="#applyEffect(it.polimi.ingsw.gc14.Model.Player)" class="member-name-link">applyEffect</a><wbr>(<a href="../../../Player.html" title="class in it.polimi.ingsw.gc14.Model">Player</a> player)</code></div>
|
||||
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Applies the effect of this building card to the specified player,
|
||||
granting 25 Prestige Points.</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="../../BuildingCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">BuildingCard</a></code></div>
|
||||
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#clone()" class="member-name-link">clone</a>()</code></div>
|
||||
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Creates and returns a copy of this Building13 card.</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-it.polimi.ingsw.gc14.Model.Cards.BuildingCard">Methods inherited from class <a href="../../BuildingCard.html#method-summary" title="class in it.polimi.ingsw.gc14.Model.Cards">BuildingCard</a></h3>
|
||||
<code><a href="../../BuildingCard.html#buy(it.polimi.ingsw.gc14.Model.Player)" title="buy(Player)">buy</a>, <a href="../../BuildingCard.html#getEffectId()" title="getEffectId()">getEffectId</a>, <a href="../../BuildingCard.html#getEffectType()" title="getEffectType()">getEffectType</a>, <a href="../../BuildingCard.html#getPrestigeValue()" title="getPrestigeValue()">getPrestigeValue</a>, <a href="../../BuildingCard.html#getPrice()" title="getPrice()">getPrice</a>, <a href="../../BuildingCard.html#toStringBoard()" title="toStringBoard()">toStringBoard</a>, <a href="../../BuildingCard.html#toStringPlayer()" title="toStringPlayer()">toStringPlayer</a></code></div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-it.polimi.ingsw.gc14.Model.PlayableCard">Methods inherited from class <a href="../../../PlayableCard.html#method-summary" title="class in it.polimi.ingsw.gc14.Model">PlayableCard</a></h3>
|
||||
<code><a href="../../../PlayableCard.html#getEra()" title="getEra()">getEra</a>, <a href="../../../PlayableCard.html#getIdIMG()" title="getIdIMG()">getIdIMG</a></code></div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-java.lang.Object">Methods inherited from class <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#method-summary" title="class or interface in java.lang" class="external-link">Object</a></h3>
|
||||
<code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang" class="external-link">equals</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()" title="class or interface in java.lang" class="external-link">finalize</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()" title="class or interface in java.lang" class="external-link">getClass</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()" title="class or interface in java.lang" class="external-link">hashCode</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()" title="class or interface in java.lang" class="external-link">notify</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()" title="class or interface in java.lang" class="external-link">notifyAll</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()" title="class or interface in java.lang" class="external-link">toString</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)" title="class or interface 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>Field Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="PRESTIGE_AWARD">
|
||||
<h3>PRESTIGE_AWARD</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">private static final</span> <span class="return-type">int</span> <span class="element-name">PRESTIGE_AWARD</span></div>
|
||||
<div class="block">Prestige points granted at end of game by this building.</div>
|
||||
<dl class="notes">
|
||||
<dt>See Also:</dt>
|
||||
<dd>
|
||||
<ul class="tag-list">
|
||||
<li><a href="../../../../../../../../../constant-values.html#it.polimi.ingsw.gc14.Model.Cards.Building.Effects.Building13.PRESTIGE_AWARD">Constant Field Values</a></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
||||
<li>
|
||||
<section class="constructor-details" id="constructor-detail">
|
||||
<h2>Constructor Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="<init>(int,int,int)">
|
||||
<h3>Building13</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="element-name">Building13</span><wbr><span class="parameters">(int era,
|
||||
int price,
|
||||
int prestigeValue)</span></div>
|
||||
<div class="block">Creates a Building13 card with the specified era, price, and prestige value.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>era</code> - the era of the building card.</dd>
|
||||
<dd><code>price</code> - the price of the building card.</dd>
|
||||
<dd><code>prestigeValue</code> - the prestige value of the building card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="<init>(java.lang.String,int,int,int)">
|
||||
<h3>Building13</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="element-name">Building13</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> idIMG,
|
||||
int era,
|
||||
int price,
|
||||
int prestigeValue)</span></div>
|
||||
<div class="block">Creates a Building13 card with the specified image id, era, price, and prestige value.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>idIMG</code> - the image identifier of the building card.</dd>
|
||||
<dd><code>era</code> - the era of the building card.</dd>
|
||||
<dd><code>price</code> - the price of the building card.</dd>
|
||||
<dd><code>prestigeValue</code> - the prestige value of the building card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ============ METHOD DETAIL ========== -->
|
||||
<li>
|
||||
<section class="method-details" id="method-detail">
|
||||
<h2>Method Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="clone()">
|
||||
<h3>clone</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="../../BuildingCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">BuildingCard</a></span> <span class="element-name">clone</span>()</div>
|
||||
<div class="block">Creates and returns a copy of this Building13 card.</div>
|
||||
<dl class="notes">
|
||||
<dt>Overrides:</dt>
|
||||
<dd><code><a href="../../BuildingCard.html#clone()">clone</a></code> in class <code><a href="../../BuildingCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">BuildingCard</a></code></dd>
|
||||
<dt>Returns:</dt>
|
||||
<dd>a clone of this Building13 card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="applyEffect(it.polimi.ingsw.gc14.Model.Player)">
|
||||
<h3>applyEffect</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">applyEffect</span><wbr><span class="parameters">(<a href="../../../Player.html" title="class in it.polimi.ingsw.gc14.Model">Player</a> player)</span>
|
||||
throws <span class="exceptions"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a></span></div>
|
||||
<div class="block">Applies the effect of this building card to the specified player,
|
||||
granting 25 Prestige Points.</div>
|
||||
<dl class="notes">
|
||||
<dt>Overrides:</dt>
|
||||
<dd><code><a href="../../BuildingCard.html#applyEffect(it.polimi.ingsw.gc14.Model.Player)">applyEffect</a></code> in class <code><a href="../../BuildingCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">BuildingCard</a></code></dd>
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>player</code> - the player to whom the effect is applied.</dd>
|
||||
<dt>Throws:</dt>
|
||||
<dd><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a></code> - if the player does not own this building card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<!-- ========= END OF CLASS DATA ========= -->
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
+408
@@ -0,0 +1,408 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="it">
|
||||
<head>
|
||||
<!-- Generated by javadoc (25) on Fri Jun 19 23:05:23 CEST 2026 -->
|
||||
<title>Building4</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="2026-06-19">
|
||||
<meta name="description" content="declaration: module: it.polimi.ingsw.gc14, package: it.polimi.ingsw.gc14.Model.Cards.Building.Effects, class: Building4">
|
||||
<meta name="generator" content="javadoc/ClassWriter">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../../resource-files/jquery-ui.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../../resource-files/stylesheet.css">
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/script.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/jquery-3.7.1.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/jquery-ui.min.js"></script>
|
||||
</head>
|
||||
<body class="class-declaration-page">
|
||||
<script type="text/javascript">const pathtoroot = "../../../../../../../../../";
|
||||
loadScripts(document, 'script');</script>
|
||||
<noscript>
|
||||
<div>JavaScript is disabled on your browser.</div>
|
||||
</noscript>
|
||||
<header role="banner">
|
||||
<nav role="navigation">
|
||||
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||
<div class="top-nav" id="navbar-top">
|
||||
<div class="nav-content">
|
||||
<div class="nav-menu-button"><button id="navbar-toggle-button" aria-controls="navbar-top" aria-expanded="false" aria-label="Toggle navigation links"><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span></button></div>
|
||||
<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="../../../../../../../../module-summary.html">Module</a></li>
|
||||
<li class="nav-bar-cell1-rev">Class</li>
|
||||
<li><a href="package-tree.html">Tree</a></li>
|
||||
<li><a href="../../../../../../../../../index-files/index-1.html">Index</a></li>
|
||||
<li><a href="../../../../../../../../../search.html">Search</a></li>
|
||||
<li><a href="../../../../../../../../../help-doc.html#class">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sub-nav">
|
||||
<div class="nav-content">
|
||||
<ol class="sub-nav-list">
|
||||
<li><a href="../../../../../../../../module-summary.html">it.polimi.ingsw.gc14</a></li>
|
||||
<li><a href="package-summary.html">it.polimi.ingsw.gc14.Model.Cards.Building.Effects</a></li>
|
||||
<li><a href="Building4.html" class="current-selection">Building4</a></li>
|
||||
</ol>
|
||||
<div class="nav-list-search"><input type="text" id="search-input" disabled placeholder="Search documentation (type /)" aria-label="Search in documentation" autocomplete="off" spellcheck="false"><input type="reset" id="reset-search" disabled value="Reset"></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<span class="skip-nav" id="skip-navbar-top"></span></nav>
|
||||
</header>
|
||||
<div class="main-grid">
|
||||
<nav role="navigation" class="toc" aria-label="Table of contents">
|
||||
<div class="toc-header">Contents <input type="text" class="filter-input" disabled placeholder="Filter contents (type .)" aria-label="Filter table of contents" autocomplete="off" spellcheck="false"><input type="reset" class="reset-filter" disabled tabindex="-1" value="Reset"></div>
|
||||
<ol class="toc-list" tabindex="-1">
|
||||
<li><a href="#" tabindex="0">Description</a></li>
|
||||
<li><a href="#field-summary" tabindex="0">Field Summary</a></li>
|
||||
<li><a href="#constructor-summary" tabindex="0">Constructor Summary</a></li>
|
||||
<li><a href="#method-summary" tabindex="0">Method Summary</a></li>
|
||||
<li><a href="#field-detail" tabindex="0">Field Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#FOOD_PER_INVENTOR_PAIR" tabindex="0">FOOD_PER_INVENTOR_PAIR</a></li>
|
||||
<li><a href="#purchased" tabindex="0">purchased</a></li>
|
||||
<li><a href="#numPair" tabindex="0">numPair</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
<li><a href="#constructor-detail" tabindex="0">Constructor Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#%3Cinit%3E(int,int,int)" tabindex="0">Building4(int, int, int)</a></li>
|
||||
<li><a href="#%3Cinit%3E(java.lang.String,int,int,int)" tabindex="0">Building4(String, int, int, int)</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
<li><a href="#method-detail" tabindex="0">Method Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#initialize(it.polimi.ingsw.gc14.Model.Player)" tabindex="0">initialize(Player)</a></li>
|
||||
<li><a href="#buy(it.polimi.ingsw.gc14.Model.Player)" tabindex="0">buy(Player)</a></li>
|
||||
<li><a href="#clone()" tabindex="0">clone()</a></li>
|
||||
<li><a href="#applyEffect(it.polimi.ingsw.gc14.Model.Player)" tabindex="0">applyEffect(Player)</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
</ol>
|
||||
<button class="hide-sidebar"><span>Hide sidebar </span><img src="../../../../../../../../../resource-files/left.svg" alt="Hide sidebar"></button><button class="show-sidebar"><img src="../../../../../../../../../resource-files/right.svg" alt="Show sidebar"><span> Show sidebar</span></button></nav>
|
||||
<main role="main">
|
||||
<!-- ======== START OF CLASS DATA ======== -->
|
||||
<div class="header">
|
||||
<h1 title="Class Building4" class="title">Class Building4</h1>
|
||||
</div>
|
||||
<div class="inheritance" title="Inheritance Tree"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">java.lang.Object</a>
|
||||
<div class="inheritance"><a href="../../../PlayableCard.html" title="class in it.polimi.ingsw.gc14.Model">it.polimi.ingsw.gc14.Model.PlayableCard</a>
|
||||
<div class="inheritance"><a href="../../BuildingCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">it.polimi.ingsw.gc14.Model.Cards.BuildingCard</a>
|
||||
<div class="inheritance">it.polimi.ingsw.gc14.Model.Cards.Building.Effects.Building4</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<section class="class-description" id="class-description">
|
||||
<dl class="notes">
|
||||
<dt>All Implemented Interfaces:</dt>
|
||||
<dd><code><a href="../BuildingEffect.html" title="interface in it.polimi.ingsw.gc14.Model.Cards.Building">BuildingEffect</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/Serializable.html" title="class or interface in java.io" class="external-link">Serializable</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Cloneable.html" title="class or interface in java.lang" class="external-link">Cloneable</a></code></dd>
|
||||
</dl>
|
||||
<hr>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="type-signature"><span class="modifiers">public class </span><span class="element-name type-name-label">Building4</span>
|
||||
<span class="extends-implements">extends <a href="../../BuildingCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">BuildingCard</a></span></div>
|
||||
<div class="block">Building effect that grants 3 food for each new pair of identical inventors
|
||||
obtained after purchasing this building.
|
||||
|
||||
<p>Pairs of identical inventors already owned at the moment of purchase
|
||||
are stored during initialization and do not provide food.</div>
|
||||
<dl class="notes">
|
||||
<dt>See Also:</dt>
|
||||
<dd>
|
||||
<ul class="tag-list">
|
||||
<li><a href="../../../../../../../../../serialized-form.html#it.polimi.ingsw.gc14.Model.Cards.Building.Effects.Building4">Serialized Form</a></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
<section class="summary">
|
||||
<ul class="summary-list">
|
||||
<!-- =========== FIELD SUMMARY =========== -->
|
||||
<li>
|
||||
<section class="field-summary" id="field-summary">
|
||||
<h2>Field Summary</h2>
|
||||
<div class="caption"><span>Fields</span></div>
|
||||
<div class="summary-table three-column-summary">
|
||||
<div class="table-header col-first">Modifier and Type</div>
|
||||
<div class="table-header col-second">Field</div>
|
||||
<div class="table-header col-last">Description</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="#FOOD_PER_INVENTOR_PAIR" class="member-name-link">FOOD_PER_INVENTOR_PAIR</a></code></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">Food units granted per newly completed inventor pair.</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color"><code>private int</code></div>
|
||||
<div class="col-second odd-row-color"><code><a href="#numPair" class="member-name-link">numPair</a></code></div>
|
||||
<div class="col-last odd-row-color">
|
||||
<div class="block">Number of inventor pairs already counted by this building effect.</div>
|
||||
</div>
|
||||
<div class="col-first even-row-color"><code>private boolean</code></div>
|
||||
<div class="col-second even-row-color"><code><a href="#purchased" class="member-name-link">purchased</a></code></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">Indicates whether the building effect has already been initialized
|
||||
after purchase.</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="fields-inherited-from-class-it.polimi.ingsw.gc14.Model.Cards.BuildingCard">Fields inherited from class <a href="../../BuildingCard.html#field-summary" title="class in it.polimi.ingsw.gc14.Model.Cards">BuildingCard</a></h3>
|
||||
<code><a href="../../BuildingCard.html#effectId">effectId</a>, <a href="../../BuildingCard.html#effectType">effectType</a></code></div>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
||||
<li>
|
||||
<section class="constructor-summary" id="constructor-summary">
|
||||
<h2>Constructor Summary</h2>
|
||||
<div class="caption"><span>Constructors</span></div>
|
||||
<div class="summary-table two-column-summary">
|
||||
<div class="table-header col-first">Constructor</div>
|
||||
<div class="table-header col-last">Description</div>
|
||||
<div class="col-constructor-name even-row-color"><code><a href="#%3Cinit%3E(int,int,int)" class="member-name-link">Building4</a><wbr>(int era,
|
||||
int price,
|
||||
int prestigeValue)</code></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">Creates a building with the specified era, price and prestige value.</div>
|
||||
</div>
|
||||
<div class="col-constructor-name odd-row-color"><code><a href="#%3Cinit%3E(java.lang.String,int,int,int)" class="member-name-link">Building4</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> idIMG,
|
||||
int era,
|
||||
int price,
|
||||
int prestigeValue)</code></div>
|
||||
<div class="col-last odd-row-color">
|
||||
<div class="block">Creates a building with the specified image identifier, era, price
|
||||
and prestige value.</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ========== METHOD SUMMARY =========== -->
|
||||
<li>
|
||||
<section class="method-summary" id="method-summary">
|
||||
<h2>Method Summary</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">All Methods</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">Instance Methods</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">Concrete Methods</button></div>
|
||||
<div id="method-summary-table.tabpanel" role="tabpanel" aria-labelledby="method-summary-table-tab0">
|
||||
<div class="summary-table three-column-summary">
|
||||
<div class="table-header col-first">Modifier and Type</div>
|
||||
<div class="table-header col-second">Method</div>
|
||||
<div class="table-header col-last">Description</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="#applyEffect(it.polimi.ingsw.gc14.Model.Player)" class="member-name-link">applyEffect</a><wbr>(<a href="../../../Player.html" title="class in it.polimi.ingsw.gc14.Model">Player</a> player)</code></div>
|
||||
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Applies the building effect to the specified player.</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>boolean</code></div>
|
||||
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#buy(it.polimi.ingsw.gc14.Model.Player)" class="member-name-link">buy</a><wbr>(<a href="../../../Player.html" title="class in it.polimi.ingsw.gc14.Model">Player</a> player)</code></div>
|
||||
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Attempts to purchase the building and initializes its effect if the
|
||||
purchase succeeds.</div>
|
||||
</div>
|
||||
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="../../BuildingCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">BuildingCard</a></code></div>
|
||||
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#clone()" class="member-name-link">clone</a>()</code></div>
|
||||
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Creates a new building instance with the same configuration values
|
||||
as this card.</div>
|
||||
</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="#initialize(it.polimi.ingsw.gc14.Model.Player)" class="member-name-link">initialize</a><wbr>(<a href="../../../Player.html" title="class in it.polimi.ingsw.gc14.Model">Player</a> player)</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 building effect by storing the number of pairs of identical
|
||||
inventors already owned by the player at the moment of purchase.</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-it.polimi.ingsw.gc14.Model.Cards.BuildingCard">Methods inherited from class <a href="../../BuildingCard.html#method-summary" title="class in it.polimi.ingsw.gc14.Model.Cards">BuildingCard</a></h3>
|
||||
<code><a href="../../BuildingCard.html#getEffectId()" title="getEffectId()">getEffectId</a>, <a href="../../BuildingCard.html#getEffectType()" title="getEffectType()">getEffectType</a>, <a href="../../BuildingCard.html#getPrestigeValue()" title="getPrestigeValue()">getPrestigeValue</a>, <a href="../../BuildingCard.html#getPrice()" title="getPrice()">getPrice</a>, <a href="../../BuildingCard.html#toStringBoard()" title="toStringBoard()">toStringBoard</a>, <a href="../../BuildingCard.html#toStringPlayer()" title="toStringPlayer()">toStringPlayer</a></code></div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-it.polimi.ingsw.gc14.Model.PlayableCard">Methods inherited from class <a href="../../../PlayableCard.html#method-summary" title="class in it.polimi.ingsw.gc14.Model">PlayableCard</a></h3>
|
||||
<code><a href="../../../PlayableCard.html#getEra()" title="getEra()">getEra</a>, <a href="../../../PlayableCard.html#getIdIMG()" title="getIdIMG()">getIdIMG</a></code></div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-java.lang.Object">Methods inherited from class <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#method-summary" title="class or interface in java.lang" class="external-link">Object</a></h3>
|
||||
<code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang" class="external-link">equals</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()" title="class or interface in java.lang" class="external-link">finalize</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()" title="class or interface in java.lang" class="external-link">getClass</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()" title="class or interface in java.lang" class="external-link">hashCode</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()" title="class or interface in java.lang" class="external-link">notify</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()" title="class or interface in java.lang" class="external-link">notifyAll</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()" title="class or interface in java.lang" class="external-link">toString</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)" title="class or interface 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>Field Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="FOOD_PER_INVENTOR_PAIR">
|
||||
<h3>FOOD_PER_INVENTOR_PAIR</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">private static final</span> <span class="return-type">int</span> <span class="element-name">FOOD_PER_INVENTOR_PAIR</span></div>
|
||||
<div class="block">Food units granted per newly completed inventor pair.</div>
|
||||
<dl class="notes">
|
||||
<dt>See Also:</dt>
|
||||
<dd>
|
||||
<ul class="tag-list">
|
||||
<li><a href="../../../../../../../../../constant-values.html#it.polimi.ingsw.gc14.Model.Cards.Building.Effects.Building4.FOOD_PER_INVENTOR_PAIR">Constant Field Values</a></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="purchased">
|
||||
<h3>purchased</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">private</span> <span class="return-type">boolean</span> <span class="element-name">purchased</span></div>
|
||||
<div class="block">Indicates whether the building effect has already been initialized
|
||||
after purchase.</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="numPair">
|
||||
<h3>numPair</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">private</span> <span class="return-type">int</span> <span class="element-name">numPair</span></div>
|
||||
<div class="block">Number of inventor pairs already counted by this building effect.</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
||||
<li>
|
||||
<section class="constructor-details" id="constructor-detail">
|
||||
<h2>Constructor Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="<init>(int,int,int)">
|
||||
<h3>Building4</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="element-name">Building4</span><wbr><span class="parameters">(int era,
|
||||
int price,
|
||||
int prestigeValue)</span></div>
|
||||
<div class="block">Creates a building with the specified era, price and prestige value.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>era</code> - The game era of the building.</dd>
|
||||
<dd><code>price</code> - The price (in food) of the building.</dd>
|
||||
<dd><code>prestigeValue</code> - The number of Prestige Points gained from this building at the end of the game.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="<init>(java.lang.String,int,int,int)">
|
||||
<h3>Building4</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="element-name">Building4</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> idIMG,
|
||||
int era,
|
||||
int price,
|
||||
int prestigeValue)</span></div>
|
||||
<div class="block">Creates a building with the specified image identifier, era, price
|
||||
and prestige value.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>idIMG</code> - the image identifier of the building.</dd>
|
||||
<dd><code>era</code> - the game era of the building.</dd>
|
||||
<dd><code>price</code> - the price in food of the building.</dd>
|
||||
<dd><code>prestigeValue</code> - the number of Prestige Points gained from this building at the end of the game.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ============ METHOD DETAIL ========== -->
|
||||
<li>
|
||||
<section class="method-details" id="method-detail">
|
||||
<h2>Method Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="initialize(it.polimi.ingsw.gc14.Model.Player)">
|
||||
<h3>initialize</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">initialize</span><wbr><span class="parameters">(<a href="../../../Player.html" title="class in it.polimi.ingsw.gc14.Model">Player</a> player)</span></div>
|
||||
<div class="block">Initializes the building effect by storing the number of pairs of identical
|
||||
inventors already owned by the player at the moment of purchase.
|
||||
|
||||
<p>The initialization is performed only once.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>player</code> - the player who owns the building.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="buy(it.polimi.ingsw.gc14.Model.Player)">
|
||||
<h3>buy</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type">boolean</span> <span class="element-name">buy</span><wbr><span class="parameters">(<a href="../../../Player.html" title="class in it.polimi.ingsw.gc14.Model">Player</a> player)</span></div>
|
||||
<div class="block">Attempts to purchase the building and initializes its effect if the
|
||||
purchase succeeds.</div>
|
||||
<dl class="notes">
|
||||
<dt>Overrides:</dt>
|
||||
<dd><code><a href="../../BuildingCard.html#buy(it.polimi.ingsw.gc14.Model.Player)">buy</a></code> in class <code><a href="../../BuildingCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">BuildingCard</a></code></dd>
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>player</code> - The player who buys the building.</dd>
|
||||
<dt>Returns:</dt>
|
||||
<dd><code>true</code> if the building is successfully purchased and initialized,
|
||||
<code>false</code> otherwise.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="clone()">
|
||||
<h3>clone</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="../../BuildingCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">BuildingCard</a></span> <span class="element-name">clone</span>()</div>
|
||||
<div class="block">Creates a new building instance with the same configuration values
|
||||
as this card.
|
||||
|
||||
<p>The runtime state of the effect, such as initialization status and
|
||||
counted inventor pairs, is not copied.</div>
|
||||
<dl class="notes">
|
||||
<dt>Overrides:</dt>
|
||||
<dd><code><a href="../../BuildingCard.html#clone()">clone</a></code> in class <code><a href="../../BuildingCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">BuildingCard</a></code></dd>
|
||||
<dt>Returns:</dt>
|
||||
<dd>a new building card with the same base properties.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="applyEffect(it.polimi.ingsw.gc14.Model.Player)">
|
||||
<h3>applyEffect</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">applyEffect</span><wbr><span class="parameters">(<a href="../../../Player.html" title="class in it.polimi.ingsw.gc14.Model">Player</a> player)</span>
|
||||
throws <span class="exceptions"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a></span></div>
|
||||
<div class="block">Applies the building effect to the specified player.
|
||||
|
||||
<p>The method counts the current number of pairs of identical inventors
|
||||
and grants 3 food for each pair obtained since the last stored value.</div>
|
||||
<dl class="notes">
|
||||
<dt>Overrides:</dt>
|
||||
<dd><code><a href="../../BuildingCard.html#applyEffect(it.polimi.ingsw.gc14.Model.Player)">applyEffect</a></code> in class <code><a href="../../BuildingCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">BuildingCard</a></code></dd>
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>player</code> - The player who owns the building.</dd>
|
||||
<dt>Throws:</dt>
|
||||
<dd><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a></code> - Thrown if the specified player does not own this card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<!-- ========= END OF CLASS DATA ========= -->
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
+276
@@ -0,0 +1,276 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="it">
|
||||
<head>
|
||||
<!-- Generated by javadoc (25) on Fri Jun 19 23:05:23 CEST 2026 -->
|
||||
<title>Building8</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="2026-06-19">
|
||||
<meta name="description" content="declaration: module: it.polimi.ingsw.gc14, package: it.polimi.ingsw.gc14.Model.Cards.Building.Effects, class: Building8">
|
||||
<meta name="generator" content="javadoc/ClassWriter">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../../resource-files/jquery-ui.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../../resource-files/stylesheet.css">
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/script.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/jquery-3.7.1.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/jquery-ui.min.js"></script>
|
||||
</head>
|
||||
<body class="class-declaration-page">
|
||||
<script type="text/javascript">const pathtoroot = "../../../../../../../../../";
|
||||
loadScripts(document, 'script');</script>
|
||||
<noscript>
|
||||
<div>JavaScript is disabled on your browser.</div>
|
||||
</noscript>
|
||||
<header role="banner">
|
||||
<nav role="navigation">
|
||||
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||
<div class="top-nav" id="navbar-top">
|
||||
<div class="nav-content">
|
||||
<div class="nav-menu-button"><button id="navbar-toggle-button" aria-controls="navbar-top" aria-expanded="false" aria-label="Toggle navigation links"><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span></button></div>
|
||||
<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="../../../../../../../../module-summary.html">Module</a></li>
|
||||
<li class="nav-bar-cell1-rev">Class</li>
|
||||
<li><a href="package-tree.html">Tree</a></li>
|
||||
<li><a href="../../../../../../../../../index-files/index-1.html">Index</a></li>
|
||||
<li><a href="../../../../../../../../../search.html">Search</a></li>
|
||||
<li><a href="../../../../../../../../../help-doc.html#class">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sub-nav">
|
||||
<div class="nav-content">
|
||||
<ol class="sub-nav-list">
|
||||
<li><a href="../../../../../../../../module-summary.html">it.polimi.ingsw.gc14</a></li>
|
||||
<li><a href="package-summary.html">it.polimi.ingsw.gc14.Model.Cards.Building.Effects</a></li>
|
||||
<li><a href="Building8.html" class="current-selection">Building8</a></li>
|
||||
</ol>
|
||||
<div class="nav-list-search"><input type="text" id="search-input" disabled placeholder="Search documentation (type /)" aria-label="Search in documentation" autocomplete="off" spellcheck="false"><input type="reset" id="reset-search" disabled value="Reset"></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<span class="skip-nav" id="skip-navbar-top"></span></nav>
|
||||
</header>
|
||||
<div class="main-grid">
|
||||
<nav role="navigation" class="toc" aria-label="Table of contents">
|
||||
<div class="toc-header">Contents <input type="text" class="filter-input" disabled placeholder="Filter contents (type .)" aria-label="Filter table of contents" autocomplete="off" spellcheck="false"><input type="reset" class="reset-filter" disabled tabindex="-1" value="Reset"></div>
|
||||
<ol class="toc-list" tabindex="-1">
|
||||
<li><a href="#" tabindex="0">Description</a></li>
|
||||
<li><a href="#field-summary" tabindex="0">Field Summary</a></li>
|
||||
<li><a href="#constructor-summary" tabindex="0">Constructor Summary</a></li>
|
||||
<li><a href="#method-summary" tabindex="0">Method Summary</a></li>
|
||||
<li><a href="#constructor-detail" tabindex="0">Constructor Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#%3Cinit%3E(int,int,int)" tabindex="0">Building8(int, int, int)</a></li>
|
||||
<li><a href="#%3Cinit%3E(java.lang.String,int,int,int)" tabindex="0">Building8(String, int, int, int)</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
<li><a href="#method-detail" tabindex="0">Method Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#clone()" tabindex="0">clone()</a></li>
|
||||
<li><a href="#applyEffect(it.polimi.ingsw.gc14.Model.Player)" tabindex="0">applyEffect(Player)</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
</ol>
|
||||
<button class="hide-sidebar"><span>Hide sidebar </span><img src="../../../../../../../../../resource-files/left.svg" alt="Hide sidebar"></button><button class="show-sidebar"><img src="../../../../../../../../../resource-files/right.svg" alt="Show sidebar"><span> Show sidebar</span></button></nav>
|
||||
<main role="main">
|
||||
<!-- ======== START OF CLASS DATA ======== -->
|
||||
<div class="header">
|
||||
<h1 title="Class Building8" class="title">Class Building8</h1>
|
||||
</div>
|
||||
<div class="inheritance" title="Inheritance Tree"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">java.lang.Object</a>
|
||||
<div class="inheritance"><a href="../../../PlayableCard.html" title="class in it.polimi.ingsw.gc14.Model">it.polimi.ingsw.gc14.Model.PlayableCard</a>
|
||||
<div class="inheritance"><a href="../../BuildingCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">it.polimi.ingsw.gc14.Model.Cards.BuildingCard</a>
|
||||
<div class="inheritance">it.polimi.ingsw.gc14.Model.Cards.Building.Effects.Building8</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<section class="class-description" id="class-description">
|
||||
<dl class="notes">
|
||||
<dt>All Implemented Interfaces:</dt>
|
||||
<dd><code><a href="../BuildingEffect.html" title="interface in it.polimi.ingsw.gc14.Model.Cards.Building">BuildingEffect</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/Serializable.html" title="class or interface in java.io" class="external-link">Serializable</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Cloneable.html" title="class or interface in java.lang" class="external-link">Cloneable</a></code></dd>
|
||||
</dl>
|
||||
<hr>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="type-signature"><span class="modifiers">public class </span><span class="element-name type-name-label">Building8</span>
|
||||
<span class="extends-implements">extends <a href="../../BuildingCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">BuildingCard</a></span></div>
|
||||
<div class="block">At the end of the game, you gain double the Prestige Points indicated on the Builder cards in your tribe.</div>
|
||||
<dl class="notes">
|
||||
<dt>See Also:</dt>
|
||||
<dd>
|
||||
<ul class="tag-list">
|
||||
<li><a href="../../../../../../../../../serialized-form.html#it.polimi.ingsw.gc14.Model.Cards.Building.Effects.Building8">Serialized Form</a></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
<section class="summary">
|
||||
<ul class="summary-list">
|
||||
<!-- =========== FIELD SUMMARY =========== -->
|
||||
<li>
|
||||
<section class="field-summary" id="field-summary">
|
||||
<h2>Field Summary</h2>
|
||||
<div class="inherited-list">
|
||||
<h3 id="fields-inherited-from-class-it.polimi.ingsw.gc14.Model.Cards.BuildingCard">Fields inherited from class <a href="../../BuildingCard.html#field-summary" title="class in it.polimi.ingsw.gc14.Model.Cards">BuildingCard</a></h3>
|
||||
<code><a href="../../BuildingCard.html#effectId">effectId</a>, <a href="../../BuildingCard.html#effectType">effectType</a></code></div>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
||||
<li>
|
||||
<section class="constructor-summary" id="constructor-summary">
|
||||
<h2>Constructor Summary</h2>
|
||||
<div class="caption"><span>Constructors</span></div>
|
||||
<div class="summary-table two-column-summary">
|
||||
<div class="table-header col-first">Constructor</div>
|
||||
<div class="table-header col-last">Description</div>
|
||||
<div class="col-constructor-name even-row-color"><code><a href="#%3Cinit%3E(int,int,int)" class="member-name-link">Building8</a><wbr>(int era,
|
||||
int price,
|
||||
int prestigeValue)</code></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">Constructor of the building</div>
|
||||
</div>
|
||||
<div class="col-constructor-name odd-row-color"><code><a href="#%3Cinit%3E(java.lang.String,int,int,int)" class="member-name-link">Building8</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> idIMG,
|
||||
int era,
|
||||
int price,
|
||||
int prestigeValue)</code></div>
|
||||
<div class="col-last odd-row-color">
|
||||
<div class="block">Constructor of the building.</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ========== METHOD SUMMARY =========== -->
|
||||
<li>
|
||||
<section class="method-summary" id="method-summary">
|
||||
<h2>Method Summary</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">All Methods</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">Instance Methods</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">Concrete Methods</button></div>
|
||||
<div id="method-summary-table.tabpanel" role="tabpanel" aria-labelledby="method-summary-table-tab0">
|
||||
<div class="summary-table three-column-summary">
|
||||
<div class="table-header col-first">Modifier and Type</div>
|
||||
<div class="table-header col-second">Method</div>
|
||||
<div class="table-header col-last">Description</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="#applyEffect(it.polimi.ingsw.gc14.Model.Player)" class="member-name-link">applyEffect</a><wbr>(<a href="../../../Player.html" title="class in it.polimi.ingsw.gc14.Model">Player</a> player)</code></div>
|
||||
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Applies the building effect by granting additional Prestige Points equal to
|
||||
the Prestige Value of each Builder card owned by the player.</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="../../BuildingCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">BuildingCard</a></code></div>
|
||||
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#clone()" class="member-name-link">clone</a>()</code></div>
|
||||
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Method to clone the building: it creates an exact copy.</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-it.polimi.ingsw.gc14.Model.Cards.BuildingCard">Methods inherited from class <a href="../../BuildingCard.html#method-summary" title="class in it.polimi.ingsw.gc14.Model.Cards">BuildingCard</a></h3>
|
||||
<code><a href="../../BuildingCard.html#buy(it.polimi.ingsw.gc14.Model.Player)" title="buy(Player)">buy</a>, <a href="../../BuildingCard.html#getEffectId()" title="getEffectId()">getEffectId</a>, <a href="../../BuildingCard.html#getEffectType()" title="getEffectType()">getEffectType</a>, <a href="../../BuildingCard.html#getPrestigeValue()" title="getPrestigeValue()">getPrestigeValue</a>, <a href="../../BuildingCard.html#getPrice()" title="getPrice()">getPrice</a>, <a href="../../BuildingCard.html#toStringBoard()" title="toStringBoard()">toStringBoard</a>, <a href="../../BuildingCard.html#toStringPlayer()" title="toStringPlayer()">toStringPlayer</a></code></div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-it.polimi.ingsw.gc14.Model.PlayableCard">Methods inherited from class <a href="../../../PlayableCard.html#method-summary" title="class in it.polimi.ingsw.gc14.Model">PlayableCard</a></h3>
|
||||
<code><a href="../../../PlayableCard.html#getEra()" title="getEra()">getEra</a>, <a href="../../../PlayableCard.html#getIdIMG()" title="getIdIMG()">getIdIMG</a></code></div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-java.lang.Object">Methods inherited from class <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#method-summary" title="class or interface in java.lang" class="external-link">Object</a></h3>
|
||||
<code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang" class="external-link">equals</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()" title="class or interface in java.lang" class="external-link">finalize</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()" title="class or interface in java.lang" class="external-link">getClass</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()" title="class or interface in java.lang" class="external-link">hashCode</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()" title="class or interface in java.lang" class="external-link">notify</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()" title="class or interface in java.lang" class="external-link">notifyAll</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()" title="class or interface in java.lang" class="external-link">toString</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)" title="class or interface in java.lang" class="external-link">wait</a></code></div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<section class="details">
|
||||
<ul class="details-list">
|
||||
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
||||
<li>
|
||||
<section class="constructor-details" id="constructor-detail">
|
||||
<h2>Constructor Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="<init>(int,int,int)">
|
||||
<h3>Building8</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="element-name">Building8</span><wbr><span class="parameters">(int era,
|
||||
int price,
|
||||
int prestigeValue)</span></div>
|
||||
<div class="block">Constructor of the building</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>era</code> - The game era of the building.</dd>
|
||||
<dd><code>price</code> - The price (in food) of the building.</dd>
|
||||
<dd><code>prestigeValue</code> - The number of Prestige Points gained from this building at the end of the game.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="<init>(java.lang.String,int,int,int)">
|
||||
<h3>Building8</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="element-name">Building8</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> idIMG,
|
||||
int era,
|
||||
int price,
|
||||
int prestigeValue)</span></div>
|
||||
<div class="block">Constructor of the building.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>idIMG</code> - the image identifier of the building.</dd>
|
||||
<dd><code>era</code> - the game era of the building.</dd>
|
||||
<dd><code>price</code> - the price in food of the building.</dd>
|
||||
<dd><code>prestigeValue</code> - the number of Prestige Points gained from this building at the end of the game.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ============ METHOD DETAIL ========== -->
|
||||
<li>
|
||||
<section class="method-details" id="method-detail">
|
||||
<h2>Method Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="clone()">
|
||||
<h3>clone</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="../../BuildingCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">BuildingCard</a></span> <span class="element-name">clone</span>()</div>
|
||||
<div class="block">Method to clone the building: it creates an exact copy.</div>
|
||||
<dl class="notes">
|
||||
<dt>Overrides:</dt>
|
||||
<dd><code><a href="../../BuildingCard.html#clone()">clone</a></code> in class <code><a href="../../BuildingCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">BuildingCard</a></code></dd>
|
||||
<dt>Returns:</dt>
|
||||
<dd>The new copy of the building.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="applyEffect(it.polimi.ingsw.gc14.Model.Player)">
|
||||
<h3>applyEffect</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">applyEffect</span><wbr><span class="parameters">(<a href="../../../Player.html" title="class in it.polimi.ingsw.gc14.Model">Player</a> player)</span>
|
||||
throws <span class="exceptions"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a></span></div>
|
||||
<div class="block">Applies the building effect by granting additional Prestige Points equal to
|
||||
the Prestige Value of each Builder card owned by the player.
|
||||
|
||||
<p>This effectively doubles the contribution of Builder cards to the final score.</div>
|
||||
<dl class="notes">
|
||||
<dt>Overrides:</dt>
|
||||
<dd><code><a href="../../BuildingCard.html#applyEffect(it.polimi.ingsw.gc14.Model.Player)">applyEffect</a></code> in class <code><a href="../../BuildingCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">BuildingCard</a></code></dd>
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>player</code> - The player who owns the building.</dd>
|
||||
<dt>Throws:</dt>
|
||||
<dd><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a></code> - Thrown if the specified player does not own this building.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<!-- ========= END OF CLASS DATA ========= -->
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
+130
@@ -0,0 +1,130 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="it">
|
||||
<head>
|
||||
<!-- Generated by javadoc (25) on Fri Jun 19 23:05:23 CEST 2026 -->
|
||||
<title>it.polimi.ingsw.gc14.Model.Cards.Building.Effects</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="2026-06-19">
|
||||
<meta name="description" content="declaration: module: it.polimi.ingsw.gc14, package: it.polimi.ingsw.gc14.Model.Cards.Building.Effects">
|
||||
<meta name="generator" content="javadoc/PackageWriter">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../../resource-files/jquery-ui.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../../resource-files/stylesheet.css">
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/script.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/jquery-3.7.1.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/jquery-ui.min.js"></script>
|
||||
</head>
|
||||
<body class="package-declaration-page">
|
||||
<script type="text/javascript">const pathtoroot = "../../../../../../../../../";
|
||||
loadScripts(document, 'script');</script>
|
||||
<noscript>
|
||||
<div>JavaScript is disabled on your browser.</div>
|
||||
</noscript>
|
||||
<header role="banner">
|
||||
<nav role="navigation">
|
||||
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||
<div class="top-nav" id="navbar-top">
|
||||
<div class="nav-content">
|
||||
<div class="nav-menu-button"><button id="navbar-toggle-button" aria-controls="navbar-top" aria-expanded="false" aria-label="Toggle navigation links"><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span></button></div>
|
||||
<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="../../../../../../../../module-summary.html">Module</a></li>
|
||||
<li class="nav-bar-cell1-rev">Package</li>
|
||||
<li><a href="package-tree.html">Tree</a></li>
|
||||
<li><a href="../../../../../../../../../index-files/index-1.html">Index</a></li>
|
||||
<li><a href="../../../../../../../../../search.html">Search</a></li>
|
||||
<li><a href="../../../../../../../../../help-doc.html#package">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sub-nav">
|
||||
<div class="nav-content">
|
||||
<ol class="sub-nav-list">
|
||||
<li><a href="../../../../../../../../module-summary.html">it.polimi.ingsw.gc14</a></li>
|
||||
<li><a href="package-summary.html" class="current-selection">it.polimi.ingsw.gc14.Model.Cards.Building.Effects</a></li>
|
||||
</ol>
|
||||
<div class="nav-list-search"><input type="text" id="search-input" disabled placeholder="Search documentation (type /)" aria-label="Search in documentation" autocomplete="off" spellcheck="false"><input type="reset" id="reset-search" disabled value="Reset"></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<span class="skip-nav" id="skip-navbar-top"></span></nav>
|
||||
</header>
|
||||
<div class="main-grid">
|
||||
<nav role="navigation" class="toc" aria-label="Table of contents">
|
||||
<div class="toc-header">Contents</div>
|
||||
<ol class="toc-list" tabindex="-1">
|
||||
<li><a href="#" tabindex="0">Description</a></li>
|
||||
<li><a href="#related-package-summary" tabindex="0">Related Packages</a></li>
|
||||
<li><a href="#class-summary" tabindex="0">Classes and Interfaces</a></li>
|
||||
</ol>
|
||||
<button class="hide-sidebar"><span>Hide sidebar </span><img src="../../../../../../../../../resource-files/left.svg" alt="Hide sidebar"></button><button class="show-sidebar"><img src="../../../../../../../../../resource-files/right.svg" alt="Show sidebar"><span> Show sidebar</span></button></nav>
|
||||
<main role="main">
|
||||
<div class="header">
|
||||
<h1 title="Package it.polimi.ingsw.gc14.Model.Cards.Building.Effects" class="title">Package it.polimi.ingsw.gc14.Model.Cards.Building.Effects</h1>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="package-signature">package <span class="element-name">it.polimi.ingsw.gc14.Model.Cards.Building.Effects</span></div>
|
||||
</div>
|
||||
<section class="summary">
|
||||
<ul class="summary-list">
|
||||
<li>
|
||||
<div id="related-package-summary">
|
||||
<div class="caption"><span>Related Packages</span></div>
|
||||
<div class="summary-table two-column-summary">
|
||||
<div class="table-header col-first">Package</div>
|
||||
<div class="table-header col-last">Description</div>
|
||||
<div class="col-first even-row-color"><a href="../package-summary.html">it.polimi.ingsw.gc14.Model.Cards.Building</a></div>
|
||||
<div class="col-last even-row-color"> </div>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<div id="class-summary">
|
||||
<div class="caption"><span>Classes</span></div>
|
||||
<div class="summary-table two-column-summary">
|
||||
<div class="table-header col-first">Class</div>
|
||||
<div class="table-header col-last">Description</div>
|
||||
<div class="col-first even-row-color class-summary class-summary-tab2"><a href="Building0.html" title="class in it.polimi.ingsw.gc14.Model.Cards.Building.Effects">Building0</a></div>
|
||||
<div class="col-last even-row-color class-summary class-summary-tab2">
|
||||
<div class="block">Building effect that grants 5 food for each new complete set of
|
||||
6 different character types obtained after purchasing this building.</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color class-summary class-summary-tab2"><a href="Building1.html" title="class in it.polimi.ingsw.gc14.Model.Cards.Building.Effects">Building1</a></div>
|
||||
<div class="col-last odd-row-color class-summary class-summary-tab2">
|
||||
<div class="block">Building effect that grants a discount of 1 food during the Sustenance Event
|
||||
for each character of the indicated type present in the player's tribe.</div>
|
||||
</div>
|
||||
<div class="col-first even-row-color class-summary class-summary-tab2"><a href="Building10.html" title="class in it.polimi.ingsw.gc14.Model.Cards.Building.Effects">Building10</a></div>
|
||||
<div class="col-last even-row-color class-summary class-summary-tab2">
|
||||
<div class="block">At the end of the game, the player gains 6 Prestige Points
|
||||
for each complete set of character types in their tribe.</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color class-summary class-summary-tab2"><a href="Building11.html" title="class in it.polimi.ingsw.gc14.Model.Cards.Building.Effects">Building11</a></div>
|
||||
<div class="col-last odd-row-color class-summary class-summary-tab2">
|
||||
<div class="block">At the end of the game, the player gains Prestige Points based on the number
|
||||
of cards of the indicated character type in their tribe.</div>
|
||||
</div>
|
||||
<div class="col-first even-row-color class-summary class-summary-tab2"><a href="Building13.html" title="class in it.polimi.ingsw.gc14.Model.Cards.Building.Effects">Building13</a></div>
|
||||
<div class="col-last even-row-color class-summary class-summary-tab2">
|
||||
<div class="block">At the end of the game, this building grants 25 Prestige Points
|
||||
to the player who owns it.</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color class-summary class-summary-tab2"><a href="Building4.html" title="class in it.polimi.ingsw.gc14.Model.Cards.Building.Effects">Building4</a></div>
|
||||
<div class="col-last odd-row-color class-summary class-summary-tab2">
|
||||
<div class="block">Building effect that grants 3 food for each new pair of identical inventors
|
||||
obtained after purchasing this building.</div>
|
||||
</div>
|
||||
<div class="col-first even-row-color class-summary class-summary-tab2"><a href="Building8.html" title="class in it.polimi.ingsw.gc14.Model.Cards.Building.Effects">Building8</a></div>
|
||||
<div class="col-last even-row-color class-summary class-summary-tab2">
|
||||
<div class="block">At the end of the game, you gain double the Prestige Points indicated on the Builder cards in your tribe.</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
+88
@@ -0,0 +1,88 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="it">
|
||||
<head>
|
||||
<!-- Generated by javadoc (25) on Fri Jun 19 23:05:23 CEST 2026 -->
|
||||
<title>it.polimi.ingsw.gc14.Model.Cards.Building.Effects Class Hierarchy</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="2026-06-19">
|
||||
<meta name="description" content="tree: module: it.polimi.ingsw.gc14, package: it.polimi.ingsw.gc14.Model.Cards.Building.Effects">
|
||||
<meta name="generator" content="javadoc/PackageTreeWriter">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../../resource-files/jquery-ui.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../../resource-files/stylesheet.css">
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/script.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/jquery-3.7.1.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/jquery-ui.min.js"></script>
|
||||
</head>
|
||||
<body class="package-tree-page">
|
||||
<script type="text/javascript">const pathtoroot = "../../../../../../../../../";
|
||||
loadScripts(document, 'script');</script>
|
||||
<noscript>
|
||||
<div>JavaScript is disabled on your browser.</div>
|
||||
</noscript>
|
||||
<header role="banner">
|
||||
<nav role="navigation">
|
||||
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||
<div class="top-nav" id="navbar-top">
|
||||
<div class="nav-content">
|
||||
<div class="nav-menu-button"><button id="navbar-toggle-button" aria-controls="navbar-top" aria-expanded="false" aria-label="Toggle navigation links"><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span></button></div>
|
||||
<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="../../../../../../../../module-summary.html">Module</a></li>
|
||||
<li><a href="package-summary.html">Package</a></li>
|
||||
<li class="nav-bar-cell1-rev">Tree</li>
|
||||
<li><a href="../../../../../../../../../index-files/index-1.html">Index</a></li>
|
||||
<li><a href="../../../../../../../../../search.html">Search</a></li>
|
||||
<li><a href="../../../../../../../../../help-doc.html#tree">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sub-nav">
|
||||
<div class="nav-content">
|
||||
<ol class="sub-nav-list">
|
||||
<li><a href="../../../../../../../../module-summary.html">it.polimi.ingsw.gc14</a></li>
|
||||
<li><a href="package-summary.html" class="current-selection">it.polimi.ingsw.gc14.Model.Cards.Building.Effects</a></li>
|
||||
</ol>
|
||||
<div class="nav-list-search"><input type="text" id="search-input" disabled placeholder="Search documentation (type /)" aria-label="Search in documentation" autocomplete="off" spellcheck="false"><input type="reset" id="reset-search" disabled value="Reset"></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<span class="skip-nav" id="skip-navbar-top"></span></nav>
|
||||
</header>
|
||||
<div class="main-grid">
|
||||
<main role="main">
|
||||
<div class="header">
|
||||
<h1 class="title">Hierarchy For Package it.polimi.ingsw.gc14.Model.Cards.Building.Effects</h1>
|
||||
</div>
|
||||
<span class="package-hierarchy-label">Package Hierarchies:</span>
|
||||
<ul class="horizontal contents-list">
|
||||
<li><a href="../../../../../../../../../overview-tree.html">All Packages</a></li>
|
||||
</ul>
|
||||
<section class="hierarchy">
|
||||
<h2 title="Class Hierarchy">Class Hierarchy</h2>
|
||||
<ul>
|
||||
<li class="circle">java.lang.<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html" class="type-name-link external-link" title="class or interface in java.lang">Object</a>
|
||||
<ul>
|
||||
<li class="circle">it.polimi.ingsw.gc14.Model.<a href="../../../PlayableCard.html" class="type-name-link" title="class in it.polimi.ingsw.gc14.Model">PlayableCard</a> (implements java.io.<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/Serializable.html" title="class or interface in java.io" class="external-link">Serializable</a>)
|
||||
<ul>
|
||||
<li class="circle">it.polimi.ingsw.gc14.Model.Cards.<a href="../../BuildingCard.html" class="type-name-link" title="class in it.polimi.ingsw.gc14.Model.Cards">BuildingCard</a> (implements it.polimi.ingsw.gc14.Model.Cards.Building.<a href="../BuildingEffect.html" title="interface in it.polimi.ingsw.gc14.Model.Cards.Building">BuildingEffect</a>, java.lang.<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Cloneable.html" title="class or interface in java.lang" class="external-link">Cloneable</a>, java.io.<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/Serializable.html" title="class or interface in java.io" class="external-link">Serializable</a>)
|
||||
<ul>
|
||||
<li class="circle">it.polimi.ingsw.gc14.Model.Cards.Building.Effects.<a href="Building0.html" class="type-name-link" title="class in it.polimi.ingsw.gc14.Model.Cards.Building.Effects">Building0</a></li>
|
||||
<li class="circle">it.polimi.ingsw.gc14.Model.Cards.Building.Effects.<a href="Building1.html" class="type-name-link" title="class in it.polimi.ingsw.gc14.Model.Cards.Building.Effects">Building1</a></li>
|
||||
<li class="circle">it.polimi.ingsw.gc14.Model.Cards.Building.Effects.<a href="Building10.html" class="type-name-link" title="class in it.polimi.ingsw.gc14.Model.Cards.Building.Effects">Building10</a></li>
|
||||
<li class="circle">it.polimi.ingsw.gc14.Model.Cards.Building.Effects.<a href="Building11.html" class="type-name-link" title="class in it.polimi.ingsw.gc14.Model.Cards.Building.Effects">Building11</a></li>
|
||||
<li class="circle">it.polimi.ingsw.gc14.Model.Cards.Building.Effects.<a href="Building13.html" class="type-name-link" title="class in it.polimi.ingsw.gc14.Model.Cards.Building.Effects">Building13</a></li>
|
||||
<li class="circle">it.polimi.ingsw.gc14.Model.Cards.Building.Effects.<a href="Building4.html" class="type-name-link" title="class in it.polimi.ingsw.gc14.Model.Cards.Building.Effects">Building4</a></li>
|
||||
<li class="circle">it.polimi.ingsw.gc14.Model.Cards.Building.Effects.<a href="Building8.html" class="type-name-link" title="class in it.polimi.ingsw.gc14.Model.Cards.Building.Effects">Building8</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
+110
@@ -0,0 +1,110 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="it">
|
||||
<head>
|
||||
<!-- Generated by javadoc (25) on Fri Jun 19 23:05:23 CEST 2026 -->
|
||||
<title>it.polimi.ingsw.gc14.Model.Cards.Building</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="2026-06-19">
|
||||
<meta name="description" content="declaration: module: it.polimi.ingsw.gc14, package: it.polimi.ingsw.gc14.Model.Cards.Building">
|
||||
<meta name="generator" content="javadoc/PackageWriter">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../resource-files/jquery-ui.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../resource-files/stylesheet.css">
|
||||
<script type="text/javascript" src="../../../../../../../../script-files/script.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../script-files/jquery-3.7.1.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../script-files/jquery-ui.min.js"></script>
|
||||
</head>
|
||||
<body class="package-declaration-page">
|
||||
<script type="text/javascript">const pathtoroot = "../../../../../../../../";
|
||||
loadScripts(document, 'script');</script>
|
||||
<noscript>
|
||||
<div>JavaScript is disabled on your browser.</div>
|
||||
</noscript>
|
||||
<header role="banner">
|
||||
<nav role="navigation">
|
||||
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||
<div class="top-nav" id="navbar-top">
|
||||
<div class="nav-content">
|
||||
<div class="nav-menu-button"><button id="navbar-toggle-button" aria-controls="navbar-top" aria-expanded="false" aria-label="Toggle navigation links"><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span></button></div>
|
||||
<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="../../../../../../../module-summary.html">Module</a></li>
|
||||
<li class="nav-bar-cell1-rev">Package</li>
|
||||
<li><a href="package-tree.html">Tree</a></li>
|
||||
<li><a href="../../../../../../../../index-files/index-1.html">Index</a></li>
|
||||
<li><a href="../../../../../../../../search.html">Search</a></li>
|
||||
<li><a href="../../../../../../../../help-doc.html#package">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sub-nav">
|
||||
<div class="nav-content">
|
||||
<ol class="sub-nav-list">
|
||||
<li><a href="../../../../../../../module-summary.html">it.polimi.ingsw.gc14</a></li>
|
||||
<li><a href="package-summary.html" class="current-selection">it.polimi.ingsw.gc14.Model.Cards.Building</a></li>
|
||||
</ol>
|
||||
<div class="nav-list-search"><input type="text" id="search-input" disabled placeholder="Search documentation (type /)" aria-label="Search in documentation" autocomplete="off" spellcheck="false"><input type="reset" id="reset-search" disabled value="Reset"></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<span class="skip-nav" id="skip-navbar-top"></span></nav>
|
||||
</header>
|
||||
<div class="main-grid">
|
||||
<nav role="navigation" class="toc" aria-label="Table of contents">
|
||||
<div class="toc-header">Contents</div>
|
||||
<ol class="toc-list" tabindex="-1">
|
||||
<li><a href="#" tabindex="0">Description</a></li>
|
||||
<li><a href="#related-package-summary" tabindex="0">Related Packages</a></li>
|
||||
<li><a href="#class-summary" tabindex="0">Classes and Interfaces</a></li>
|
||||
</ol>
|
||||
<button class="hide-sidebar"><span>Hide sidebar </span><img src="../../../../../../../../resource-files/left.svg" alt="Hide sidebar"></button><button class="show-sidebar"><img src="../../../../../../../../resource-files/right.svg" alt="Show sidebar"><span> Show sidebar</span></button></nav>
|
||||
<main role="main">
|
||||
<div class="header">
|
||||
<h1 title="Package it.polimi.ingsw.gc14.Model.Cards.Building" class="title">Package it.polimi.ingsw.gc14.Model.Cards.Building</h1>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="package-signature">package <span class="element-name">it.polimi.ingsw.gc14.Model.Cards.Building</span></div>
|
||||
</div>
|
||||
<section class="summary">
|
||||
<ul class="summary-list">
|
||||
<li>
|
||||
<div id="related-package-summary">
|
||||
<div class="caption"><span>Related Packages</span></div>
|
||||
<div class="summary-table two-column-summary">
|
||||
<div class="table-header col-first">Package</div>
|
||||
<div class="table-header col-last">Description</div>
|
||||
<div class="col-first even-row-color"><a href="../package-summary.html">it.polimi.ingsw.gc14.Model.Cards</a></div>
|
||||
<div class="col-last even-row-color"> </div>
|
||||
<div class="col-first odd-row-color"><a href="Effects/package-summary.html">it.polimi.ingsw.gc14.Model.Cards.Building.Effects</a></div>
|
||||
<div class="col-last odd-row-color"> </div>
|
||||
<div class="col-first even-row-color"><a href="../TribeCards/package-summary.html">it.polimi.ingsw.gc14.Model.Cards.TribeCards</a></div>
|
||||
<div class="col-last even-row-color"> </div>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<div id="class-summary">
|
||||
<div class="table-tabs" role="tablist" aria-orientation="horizontal"><button id="class-summary-tab0" role="tab" aria-selected="true" aria-controls="class-summary.tabpanel" tabindex="0" onkeydown="switchTab(event)" onclick="show('class-summary', 'class-summary', 2)" class="active-table-tab">All Classes and Interfaces</button><button id="class-summary-tab1" role="tab" aria-selected="false" aria-controls="class-summary.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('class-summary', 'class-summary-tab1', 2)" class="table-tab">Interfaces</button><button id="class-summary-tab3" role="tab" aria-selected="false" aria-controls="class-summary.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('class-summary', 'class-summary-tab3', 2)" class="table-tab">Enum Classes</button></div>
|
||||
<div id="class-summary.tabpanel" role="tabpanel" aria-labelledby="class-summary-tab0">
|
||||
<div class="summary-table two-column-summary">
|
||||
<div class="table-header col-first">Class</div>
|
||||
<div class="table-header col-last">Description</div>
|
||||
<div class="col-first even-row-color class-summary class-summary-tab1"><a href="BuildingEffect.html" title="interface in it.polimi.ingsw.gc14.Model.Cards.Building">BuildingEffect</a></div>
|
||||
<div class="col-last even-row-color class-summary class-summary-tab1">
|
||||
<div class="block">Defines the effect behavior of a building card.</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color class-summary class-summary-tab3"><a href="EffectType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.Building">EffectType</a></div>
|
||||
<div class="col-last odd-row-color class-summary class-summary-tab3">
|
||||
<div class="block">Represents the possible effect types of building cards.</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
+84
@@ -0,0 +1,84 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="it">
|
||||
<head>
|
||||
<!-- Generated by javadoc (25) on Fri Jun 19 23:05:23 CEST 2026 -->
|
||||
<title>it.polimi.ingsw.gc14.Model.Cards.Building Class Hierarchy</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="2026-06-19">
|
||||
<meta name="description" content="tree: module: it.polimi.ingsw.gc14, package: it.polimi.ingsw.gc14.Model.Cards.Building">
|
||||
<meta name="generator" content="javadoc/PackageTreeWriter">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../resource-files/jquery-ui.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../resource-files/stylesheet.css">
|
||||
<script type="text/javascript" src="../../../../../../../../script-files/script.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../script-files/jquery-3.7.1.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../script-files/jquery-ui.min.js"></script>
|
||||
</head>
|
||||
<body class="package-tree-page">
|
||||
<script type="text/javascript">const pathtoroot = "../../../../../../../../";
|
||||
loadScripts(document, 'script');</script>
|
||||
<noscript>
|
||||
<div>JavaScript is disabled on your browser.</div>
|
||||
</noscript>
|
||||
<header role="banner">
|
||||
<nav role="navigation">
|
||||
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||
<div class="top-nav" id="navbar-top">
|
||||
<div class="nav-content">
|
||||
<div class="nav-menu-button"><button id="navbar-toggle-button" aria-controls="navbar-top" aria-expanded="false" aria-label="Toggle navigation links"><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span></button></div>
|
||||
<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="../../../../../../../module-summary.html">Module</a></li>
|
||||
<li><a href="package-summary.html">Package</a></li>
|
||||
<li class="nav-bar-cell1-rev">Tree</li>
|
||||
<li><a href="../../../../../../../../index-files/index-1.html">Index</a></li>
|
||||
<li><a href="../../../../../../../../search.html">Search</a></li>
|
||||
<li><a href="../../../../../../../../help-doc.html#tree">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sub-nav">
|
||||
<div class="nav-content">
|
||||
<ol class="sub-nav-list">
|
||||
<li><a href="../../../../../../../module-summary.html">it.polimi.ingsw.gc14</a></li>
|
||||
<li><a href="package-summary.html" class="current-selection">it.polimi.ingsw.gc14.Model.Cards.Building</a></li>
|
||||
</ol>
|
||||
<div class="nav-list-search"><input type="text" id="search-input" disabled placeholder="Search documentation (type /)" aria-label="Search in documentation" autocomplete="off" spellcheck="false"><input type="reset" id="reset-search" disabled value="Reset"></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<span class="skip-nav" id="skip-navbar-top"></span></nav>
|
||||
</header>
|
||||
<div class="main-grid">
|
||||
<main role="main">
|
||||
<div class="header">
|
||||
<h1 class="title">Hierarchy For Package it.polimi.ingsw.gc14.Model.Cards.Building</h1>
|
||||
</div>
|
||||
<span class="package-hierarchy-label">Package Hierarchies:</span>
|
||||
<ul class="horizontal contents-list">
|
||||
<li><a href="../../../../../../../../overview-tree.html">All Packages</a></li>
|
||||
</ul>
|
||||
<section class="hierarchy">
|
||||
<h2 title="Interface Hierarchy">Interface Hierarchy</h2>
|
||||
<ul>
|
||||
<li class="circle">it.polimi.ingsw.gc14.Model.Cards.Building.<a href="BuildingEffect.html" class="type-name-link" title="interface in it.polimi.ingsw.gc14.Model.Cards.Building">BuildingEffect</a></li>
|
||||
</ul>
|
||||
</section>
|
||||
<section class="hierarchy">
|
||||
<h2 title="Enum Class Hierarchy">Enum Class Hierarchy</h2>
|
||||
<ul>
|
||||
<li class="circle">java.lang.<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html" class="type-name-link external-link" title="class or interface in java.lang">Object</a>
|
||||
<ul>
|
||||
<li class="circle">java.lang.<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html" class="type-name-link external-link" title="class or interface in java.lang">Enum</a><E> (implements java.lang.<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Comparable.html" title="class or interface in java.lang" class="external-link">Comparable</a><T>, java.lang.constant.<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/constant/Constable.html" title="class or interface in java.lang.constant" class="external-link">Constable</a>, java.io.<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/Serializable.html" title="class or interface in java.io" class="external-link">Serializable</a>)
|
||||
<ul>
|
||||
<li class="circle">it.polimi.ingsw.gc14.Model.Cards.Building.<a href="EffectType.html" class="type-name-link" title="enum class in it.polimi.ingsw.gc14.Model.Cards.Building">EffectType</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
+620
@@ -0,0 +1,620 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="it">
|
||||
<head>
|
||||
<!-- Generated by javadoc (25) on Fri Jun 19 23:05:23 CEST 2026 -->
|
||||
<title>BuildingCard</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="2026-06-19">
|
||||
<meta name="description" content="declaration: module: it.polimi.ingsw.gc14, package: it.polimi.ingsw.gc14.Model.Cards, class: BuildingCard">
|
||||
<meta name="generator" content="javadoc/ClassWriter">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../resource-files/jquery-ui.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../resource-files/stylesheet.css">
|
||||
<script type="text/javascript" src="../../../../../../../script-files/script.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../script-files/jquery-3.7.1.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../script-files/jquery-ui.min.js"></script>
|
||||
</head>
|
||||
<body class="class-declaration-page">
|
||||
<script type="text/javascript">const pathtoroot = "../../../../../../../";
|
||||
loadScripts(document, 'script');</script>
|
||||
<noscript>
|
||||
<div>JavaScript is disabled on your browser.</div>
|
||||
</noscript>
|
||||
<header role="banner">
|
||||
<nav role="navigation">
|
||||
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||
<div class="top-nav" id="navbar-top">
|
||||
<div class="nav-content">
|
||||
<div class="nav-menu-button"><button id="navbar-toggle-button" aria-controls="navbar-top" aria-expanded="false" aria-label="Toggle navigation links"><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span></button></div>
|
||||
<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="../../../../../../module-summary.html">Module</a></li>
|
||||
<li class="nav-bar-cell1-rev">Class</li>
|
||||
<li><a href="package-tree.html">Tree</a></li>
|
||||
<li><a href="../../../../../../../index-files/index-1.html">Index</a></li>
|
||||
<li><a href="../../../../../../../search.html">Search</a></li>
|
||||
<li><a href="../../../../../../../help-doc.html#class">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sub-nav">
|
||||
<div class="nav-content">
|
||||
<ol class="sub-nav-list">
|
||||
<li><a href="../../../../../../module-summary.html">it.polimi.ingsw.gc14</a></li>
|
||||
<li><a href="package-summary.html">it.polimi.ingsw.gc14.Model.Cards</a></li>
|
||||
<li><a href="BuildingCard.html" class="current-selection">BuildingCard</a></li>
|
||||
</ol>
|
||||
<div class="nav-list-search"><input type="text" id="search-input" disabled placeholder="Search documentation (type /)" aria-label="Search in documentation" autocomplete="off" spellcheck="false"><input type="reset" id="reset-search" disabled value="Reset"></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<span class="skip-nav" id="skip-navbar-top"></span></nav>
|
||||
</header>
|
||||
<div class="main-grid">
|
||||
<nav role="navigation" class="toc" aria-label="Table of contents">
|
||||
<div class="toc-header">Contents <input type="text" class="filter-input" disabled placeholder="Filter contents (type .)" aria-label="Filter table of contents" autocomplete="off" spellcheck="false"><input type="reset" class="reset-filter" disabled tabindex="-1" value="Reset"></div>
|
||||
<ol class="toc-list" tabindex="-1">
|
||||
<li><a href="#" tabindex="0">Description</a></li>
|
||||
<li><a href="#field-summary" tabindex="0">Field Summary</a></li>
|
||||
<li><a href="#constructor-summary" tabindex="0">Constructor Summary</a></li>
|
||||
<li><a href="#method-summary" tabindex="0">Method Summary</a></li>
|
||||
<li><a href="#field-detail" tabindex="0">Field Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#price" tabindex="0">price</a></li>
|
||||
<li><a href="#bought" tabindex="0">bought</a></li>
|
||||
<li><a href="#effectType" tabindex="0">effectType</a></li>
|
||||
<li><a href="#effectId" tabindex="0">effectId</a></li>
|
||||
<li><a href="#prestigeValue" tabindex="0">prestigeValue</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
<li><a href="#constructor-detail" tabindex="0">Constructor Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#%3Cinit%3E(int,int,int)" tabindex="0">BuildingCard(int, int, int)</a></li>
|
||||
<li><a href="#%3Cinit%3E(java.lang.String,int,int,int)" tabindex="0">BuildingCard(String, int, int, int)</a></li>
|
||||
<li><a href="#%3Cinit%3E(int,int,int,int)" tabindex="0">BuildingCard(int, int, int, int)</a></li>
|
||||
<li><a href="#%3Cinit%3E(java.lang.String,int,int,int,int)" tabindex="0">BuildingCard(String, int, int, int, int)</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
<li><a href="#method-detail" tabindex="0">Method Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#getPrice()" tabindex="0">getPrice()</a></li>
|
||||
<li><a href="#getPrestigeValue()" tabindex="0">getPrestigeValue()</a></li>
|
||||
<li><a href="#getEffectId()" tabindex="0">getEffectId()</a></li>
|
||||
<li><a href="#getEffectType()" tabindex="0">getEffectType()</a></li>
|
||||
<li><a href="#effectTypeFromId(int)" tabindex="0">effectTypeFromId(int)</a></li>
|
||||
<li><a href="#clone()" tabindex="0">clone()</a></li>
|
||||
<li><a href="#buy(it.polimi.ingsw.gc14.Model.Player)" tabindex="0">buy(Player)</a></li>
|
||||
<li><a href="#applyEffect(it.polimi.ingsw.gc14.Model.Player)" tabindex="0">applyEffect(Player)</a></li>
|
||||
<li><a href="#toStringBoard()" tabindex="0">toStringBoard()</a></li>
|
||||
<li><a href="#toStringPlayer()" tabindex="0">toStringPlayer()</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
</ol>
|
||||
<button class="hide-sidebar"><span>Hide sidebar </span><img src="../../../../../../../resource-files/left.svg" alt="Hide sidebar"></button><button class="show-sidebar"><img src="../../../../../../../resource-files/right.svg" alt="Show sidebar"><span> Show sidebar</span></button></nav>
|
||||
<main role="main">
|
||||
<!-- ======== START OF CLASS DATA ======== -->
|
||||
<div class="header">
|
||||
<h1 title="Class BuildingCard" class="title">Class BuildingCard</h1>
|
||||
</div>
|
||||
<div class="inheritance" title="Inheritance Tree"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">java.lang.Object</a>
|
||||
<div class="inheritance"><a href="../PlayableCard.html" title="class in it.polimi.ingsw.gc14.Model">it.polimi.ingsw.gc14.Model.PlayableCard</a>
|
||||
<div class="inheritance">it.polimi.ingsw.gc14.Model.Cards.BuildingCard</div>
|
||||
</div>
|
||||
</div>
|
||||
<section class="class-description" id="class-description">
|
||||
<dl class="notes">
|
||||
<dt>All Implemented Interfaces:</dt>
|
||||
<dd><code><a href="Building/BuildingEffect.html" title="interface in it.polimi.ingsw.gc14.Model.Cards.Building">BuildingEffect</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/Serializable.html" title="class or interface in java.io" class="external-link">Serializable</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Cloneable.html" title="class or interface in java.lang" class="external-link">Cloneable</a></code></dd>
|
||||
</dl>
|
||||
<dl class="notes">
|
||||
<dt>Direct Known Subclasses:</dt>
|
||||
<dd><code><a href="Building/Effects/Building0.html" title="class in it.polimi.ingsw.gc14.Model.Cards.Building.Effects">Building0</a>, <a href="Building/Effects/Building1.html" title="class in it.polimi.ingsw.gc14.Model.Cards.Building.Effects">Building1</a>, <a href="Building/Effects/Building10.html" title="class in it.polimi.ingsw.gc14.Model.Cards.Building.Effects">Building10</a>, <a href="Building/Effects/Building11.html" title="class in it.polimi.ingsw.gc14.Model.Cards.Building.Effects">Building11</a>, <a href="Building/Effects/Building13.html" title="class in it.polimi.ingsw.gc14.Model.Cards.Building.Effects">Building13</a>, <a href="Building/Effects/Building4.html" title="class in it.polimi.ingsw.gc14.Model.Cards.Building.Effects">Building4</a>, <a href="Building/Effects/Building8.html" title="class in it.polimi.ingsw.gc14.Model.Cards.Building.Effects">Building8</a></code></dd>
|
||||
</dl>
|
||||
<hr>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="type-signature"><span class="modifiers">public class </span><span class="element-name type-name-label">BuildingCard</span>
|
||||
<span class="extends-implements">extends <a href="../PlayableCard.html" title="class in it.polimi.ingsw.gc14.Model">PlayableCard</a>
|
||||
implements <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Cloneable.html" title="class or interface in java.lang" class="external-link">Cloneable</a>, <a href="Building/BuildingEffect.html" title="interface in it.polimi.ingsw.gc14.Model.Cards.Building">BuildingEffect</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/Serializable.html" title="class or interface in java.io" class="external-link">Serializable</a></span></div>
|
||||
<div class="block">Represents a generic building card in the game.
|
||||
|
||||
<p>A building card is a playable card with a price and a specific building
|
||||
effect. Concrete building cards extend this class to define their own
|
||||
behavior.</div>
|
||||
<dl class="notes">
|
||||
<dt>See Also:</dt>
|
||||
<dd>
|
||||
<ul class="tag-list">
|
||||
<li><a href="../../../../../../../serialized-form.html#it.polimi.ingsw.gc14.Model.Cards.BuildingCard">Serialized Form</a></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
<section class="summary">
|
||||
<ul class="summary-list">
|
||||
<!-- =========== FIELD SUMMARY =========== -->
|
||||
<li>
|
||||
<section class="field-summary" id="field-summary">
|
||||
<h2>Field Summary</h2>
|
||||
<div class="caption"><span>Fields</span></div>
|
||||
<div class="summary-table three-column-summary">
|
||||
<div class="table-header col-first">Modifier and Type</div>
|
||||
<div class="table-header col-second">Field</div>
|
||||
<div class="table-header col-last">Description</div>
|
||||
<div class="col-first even-row-color"><code>private boolean</code></div>
|
||||
<div class="col-second even-row-color"><code><a href="#bought" class="member-name-link">bought</a></code></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">Indicates whether this building card has already been bought.</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color"><code>protected int</code></div>
|
||||
<div class="col-second odd-row-color"><code><a href="#effectId" class="member-name-link">effectId</a></code></div>
|
||||
<div class="col-last odd-row-color">
|
||||
<div class="block">The identifier of the effect associated with this building card.</div>
|
||||
</div>
|
||||
<div class="col-first even-row-color"><code>protected <a href="Building/EffectType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.Building">EffectType</a></code></div>
|
||||
<div class="col-second even-row-color"><code><a href="#effectType" class="member-name-link">effectType</a></code></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">The type of effect associated with this building card.</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color"><code>private final int</code></div>
|
||||
<div class="col-second odd-row-color"><code><a href="#prestigeValue" class="member-name-link">prestigeValue</a></code></div>
|
||||
<div class="col-last odd-row-color">
|
||||
<div class="block">The prestige value of this building card.</div>
|
||||
</div>
|
||||
<div class="col-first even-row-color"><code>private final int</code></div>
|
||||
<div class="col-second even-row-color"><code><a href="#price" class="member-name-link">price</a></code></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">The price of this building card.</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
||||
<li>
|
||||
<section class="constructor-summary" id="constructor-summary">
|
||||
<h2>Constructor Summary</h2>
|
||||
<div class="caption"><span>Constructors</span></div>
|
||||
<div class="summary-table three-column-summary">
|
||||
<div class="table-header col-first">Modifier</div>
|
||||
<div class="table-header col-second">Constructor</div>
|
||||
<div class="table-header col-last">Description</div>
|
||||
<div class="col-first even-row-color"><code>protected </code></div>
|
||||
<div class="col-constructor-name even-row-color"><code><a href="#%3Cinit%3E(int,int,int)" class="member-name-link">BuildingCard</a><wbr>(int era,
|
||||
int price,
|
||||
int prestigeValue)</code></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">Creates a building card with the specified era, price, and prestige value.</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color"><code> </code></div>
|
||||
<div class="col-constructor-name odd-row-color"><code><a href="#%3Cinit%3E(int,int,int,int)" class="member-name-link">BuildingCard</a><wbr>(int effectId,
|
||||
int era,
|
||||
int price,
|
||||
int prestigeValue)</code></div>
|
||||
<div class="col-last odd-row-color">
|
||||
<div class="block">Creates a building card with the specified effect identifier, era, price,
|
||||
and prestige value.</div>
|
||||
</div>
|
||||
<div class="col-first even-row-color"><code>protected </code></div>
|
||||
<div class="col-constructor-name even-row-color"><code><a href="#%3Cinit%3E(java.lang.String,int,int,int)" class="member-name-link">BuildingCard</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> idIMG,
|
||||
int era,
|
||||
int price,
|
||||
int prestigeValue)</code></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">Creates a building card with the specified image identifier, era, price,
|
||||
and prestige value.</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color"><code> </code></div>
|
||||
<div class="col-constructor-name odd-row-color"><code><a href="#%3Cinit%3E(java.lang.String,int,int,int,int)" class="member-name-link">BuildingCard</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> idIMG,
|
||||
int effectId,
|
||||
int era,
|
||||
int price,
|
||||
int prestigeValue)</code></div>
|
||||
<div class="col-last odd-row-color">
|
||||
<div class="block">Creates a building card with the specified image id, effect identifier, era,
|
||||
price, and prestige value.</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ========== METHOD SUMMARY =========== -->
|
||||
<li>
|
||||
<section class="method-summary" id="method-summary">
|
||||
<h2>Method Summary</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">All Methods</button><button id="method-summary-table-tab1" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab1', 3)" class="table-tab">Static Methods</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">Instance Methods</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">Concrete Methods</button></div>
|
||||
<div id="method-summary-table.tabpanel" role="tabpanel" aria-labelledby="method-summary-table-tab0">
|
||||
<div class="summary-table three-column-summary">
|
||||
<div class="table-header col-first">Modifier and Type</div>
|
||||
<div class="table-header col-second">Method</div>
|
||||
<div class="table-header col-last">Description</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="#applyEffect(it.polimi.ingsw.gc14.Model.Player)" class="member-name-link">applyEffect</a><wbr>(<a href="../Player.html" title="class in it.polimi.ingsw.gc14.Model">Player</a> player)</code></div>
|
||||
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Default implementation of the building effect.</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>boolean</code></div>
|
||||
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#buy(it.polimi.ingsw.gc14.Model.Player)" class="member-name-link">buy</a><wbr>(<a href="../Player.html" title="class in it.polimi.ingsw.gc14.Model">Player</a> player)</code></div>
|
||||
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Attempts to buy this building card for the specified player.</div>
|
||||
</div>
|
||||
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="BuildingCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">BuildingCard</a></code></div>
|
||||
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#clone()" class="member-name-link">clone</a>()</code></div>
|
||||
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Creates and returns a copy of this building card.</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>private static <a href="Building/EffectType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.Building">EffectType</a></code></div>
|
||||
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#effectTypeFromId(int)" class="member-name-link">effectTypeFromId</a><wbr>(int effectId)</code></div>
|
||||
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||||
<div class="block">Maps a building effect identifier to its corresponding <a href="Building/EffectType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.Building"><code>EffectType</code></a>.</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="#getEffectId()" class="member-name-link">getEffectId</a>()</code></div>
|
||||
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Returns the identifier of the effect associated with this building card.</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="Building/EffectType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.Building">EffectType</a></code></div>
|
||||
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getEffectType()" class="member-name-link">getEffectType</a>()</code></div>
|
||||
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Returns the type of effect associated with this building card.</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="#getPrestigeValue()" class="member-name-link">getPrestigeValue</a>()</code></div>
|
||||
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Returns the prestige value of this building card.</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="#getPrice()" class="member-name-link">getPrice</a>()</code></div>
|
||||
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Returns the price of this building card.</div>
|
||||
</div>
|
||||
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
|
||||
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#toStringBoard()" class="member-name-link">toStringBoard</a>()</code></div>
|
||||
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Returns the representation shown on the board (offer track cards).</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
|
||||
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#toStringPlayer()" class="member-name-link">toStringPlayer</a>()</code></div>
|
||||
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Returns the compact representation shown in the player hand panel.</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-it.polimi.ingsw.gc14.Model.PlayableCard">Methods inherited from class <a href="../PlayableCard.html#method-summary" title="class in it.polimi.ingsw.gc14.Model">PlayableCard</a></h3>
|
||||
<code><a href="../PlayableCard.html#getEra()" title="getEra()">getEra</a>, <a href="../PlayableCard.html#getIdIMG()" title="getIdIMG()">getIdIMG</a></code></div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-java.lang.Object">Methods inherited from class <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#method-summary" title="class or interface in java.lang" class="external-link">Object</a></h3>
|
||||
<code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang" class="external-link">equals</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()" title="class or interface in java.lang" class="external-link">finalize</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()" title="class or interface in java.lang" class="external-link">getClass</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()" title="class or interface in java.lang" class="external-link">hashCode</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()" title="class or interface in java.lang" class="external-link">notify</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()" title="class or interface in java.lang" class="external-link">notifyAll</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()" title="class or interface in java.lang" class="external-link">toString</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)" title="class or interface 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>Field Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="price">
|
||||
<h3>price</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">private final</span> <span class="return-type">int</span> <span class="element-name">price</span></div>
|
||||
<div class="block">The price of this building card.</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="bought">
|
||||
<h3>bought</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">private</span> <span class="return-type">boolean</span> <span class="element-name">bought</span></div>
|
||||
<div class="block">Indicates whether this building card has already been bought.</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="effectType">
|
||||
<h3>effectType</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">protected</span> <span class="return-type"><a href="Building/EffectType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.Building">EffectType</a></span> <span class="element-name">effectType</span></div>
|
||||
<div class="block">The type of effect associated with this building card.</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="effectId">
|
||||
<h3>effectId</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">protected</span> <span class="return-type">int</span> <span class="element-name">effectId</span></div>
|
||||
<div class="block">The identifier of the effect associated with this building card.</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="prestigeValue">
|
||||
<h3>prestigeValue</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">private final</span> <span class="return-type">int</span> <span class="element-name">prestigeValue</span></div>
|
||||
<div class="block">The prestige value of this building card.</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
||||
<li>
|
||||
<section class="constructor-details" id="constructor-detail">
|
||||
<h2>Constructor Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="<init>(int,int,int)">
|
||||
<h3>BuildingCard</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">protected</span> <span class="element-name">BuildingCard</span><wbr><span class="parameters">(int era,
|
||||
int price,
|
||||
int prestigeValue)</span>
|
||||
throws <span class="exceptions"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a></span></div>
|
||||
<div class="block">Creates a building card with the specified era, price, and prestige value.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>era</code> - the era of the building card.</dd>
|
||||
<dd><code>price</code> - the price of the building card.</dd>
|
||||
<dd><code>prestigeValue</code> - the prestige value of the building card.</dd>
|
||||
<dt>Throws:</dt>
|
||||
<dd><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a></code> - if <code>price <= 0</code> or <code>prestigeValue < 0</code></dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="<init>(java.lang.String,int,int,int)">
|
||||
<h3>BuildingCard</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">protected</span> <span class="element-name">BuildingCard</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> idIMG,
|
||||
int era,
|
||||
int price,
|
||||
int prestigeValue)</span>
|
||||
throws <span class="exceptions"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a></span></div>
|
||||
<div class="block">Creates a building card with the specified image identifier, era, price,
|
||||
and prestige value.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>idIMG</code> - the image identifier of the building card.</dd>
|
||||
<dd><code>era</code> - the era of the building card.</dd>
|
||||
<dd><code>price</code> - the price of the building card.</dd>
|
||||
<dd><code>prestigeValue</code> - the prestige value of the building card.</dd>
|
||||
<dt>Throws:</dt>
|
||||
<dd><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a></code> - if <code>price <= 0</code> or <code>prestigeValue < 0</code></dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="<init>(int,int,int,int)">
|
||||
<h3>BuildingCard</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="element-name">BuildingCard</span><wbr><span class="parameters">(int effectId,
|
||||
int era,
|
||||
int price,
|
||||
int prestigeValue)</span>
|
||||
throws <span class="exceptions"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a></span></div>
|
||||
<div class="block">Creates a building card with the specified effect identifier, era, price,
|
||||
and prestige value.
|
||||
The effect type is determined from the given effect identifier.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>effectId</code> - the identifier of the effect associated with the building card.</dd>
|
||||
<dd><code>era</code> - the era of the building card.</dd>
|
||||
<dd><code>price</code> - the price of the building card.</dd>
|
||||
<dd><code>prestigeValue</code> - the prestige value of the building card.</dd>
|
||||
<dt>Throws:</dt>
|
||||
<dd><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a></code> - if the effect identifier is not valid,
|
||||
if <code>price <= 0</code>, or if <code>prestigeValue < 0</code></dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="<init>(java.lang.String,int,int,int,int)">
|
||||
<h3>BuildingCard</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="element-name">BuildingCard</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> idIMG,
|
||||
int effectId,
|
||||
int era,
|
||||
int price,
|
||||
int prestigeValue)</span>
|
||||
throws <span class="exceptions"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a></span></div>
|
||||
<div class="block">Creates a building card with the specified image id, effect identifier, era,
|
||||
price, and prestige value.
|
||||
|
||||
<p>The effect type is determined from the given effect identifier.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>idIMG</code> - the image identifier of the building card.</dd>
|
||||
<dd><code>effectId</code> - the identifier of the effect associated with the building card.</dd>
|
||||
<dd><code>era</code> - the era of the building card.</dd>
|
||||
<dd><code>price</code> - the price of the building card.</dd>
|
||||
<dd><code>prestigeValue</code> - the prestige value of the building card.</dd>
|
||||
<dt>Throws:</dt>
|
||||
<dd><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a></code> - if the effect identifier is not valid,
|
||||
if <code>price <= 0</code>, or if <code>prestigeValue < 0</code>.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ============ METHOD DETAIL ========== -->
|
||||
<li>
|
||||
<section class="method-details" id="method-detail">
|
||||
<h2>Method Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="getPrice()">
|
||||
<h3>getPrice</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type">int</span> <span class="element-name">getPrice</span>()</div>
|
||||
<div class="block">Returns the price of this building card.</div>
|
||||
<dl class="notes">
|
||||
<dt>Returns:</dt>
|
||||
<dd>the price of this building card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="getPrestigeValue()">
|
||||
<h3>getPrestigeValue</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type">int</span> <span class="element-name">getPrestigeValue</span>()</div>
|
||||
<div class="block">Returns the prestige value of this building card.</div>
|
||||
<dl class="notes">
|
||||
<dt>Returns:</dt>
|
||||
<dd>the prestige value of this building card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="getEffectId()">
|
||||
<h3>getEffectId</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type">int</span> <span class="element-name">getEffectId</span>()</div>
|
||||
<div class="block">Returns the identifier of the effect associated with this building card.</div>
|
||||
<dl class="notes">
|
||||
<dt>Returns:</dt>
|
||||
<dd>the effect identifier of this building card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="getEffectType()">
|
||||
<h3>getEffectType</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="Building/EffectType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.Building">EffectType</a></span> <span class="element-name">getEffectType</span>()</div>
|
||||
<div class="block">Returns the type of effect associated with this building card.</div>
|
||||
<dl class="notes">
|
||||
<dt>Returns:</dt>
|
||||
<dd>the effect type of this building card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="effectTypeFromId(int)">
|
||||
<h3>effectTypeFromId</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">private static</span> <span class="return-type"><a href="Building/EffectType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.Building">EffectType</a></span> <span class="element-name">effectTypeFromId</span><wbr><span class="parameters">(int effectId)</span></div>
|
||||
<div class="block">Maps a building effect identifier to its corresponding <a href="Building/EffectType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.Building"><code>EffectType</code></a>.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>effectId</code> - the effect identifier to resolve.</dd>
|
||||
<dt>Returns:</dt>
|
||||
<dd>the <a href="Building/EffectType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.Building"><code>EffectType</code></a> for the given identifier.</dd>
|
||||
<dt>Throws:</dt>
|
||||
<dd><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a></code> - if <code>effectId</code> does not correspond to any known effect type.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="clone()">
|
||||
<h3>clone</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="BuildingCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">BuildingCard</a></span> <span class="element-name">clone</span>()</div>
|
||||
<div class="block">Creates and returns a copy of this building card.</div>
|
||||
<dl class="notes">
|
||||
<dt>Overrides:</dt>
|
||||
<dd><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()" title="class or interface in java.lang" class="external-link">clone</a></code> in class <code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a></code></dd>
|
||||
<dt>Returns:</dt>
|
||||
<dd>a clone of this building card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="buy(it.polimi.ingsw.gc14.Model.Player)">
|
||||
<h3>buy</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type">boolean</span> <span class="element-name">buy</span><wbr><span class="parameters">(<a href="../Player.html" title="class in it.polimi.ingsw.gc14.Model">Player</a> player)</span></div>
|
||||
<div class="block">Attempts to buy this building card for the specified player.
|
||||
|
||||
<p>The effective cost is reduced by the total reduction value provided
|
||||
by the player's Builder cards, without dropping below zero. The purchase
|
||||
succeeds only if the card has not already been bought and the player can
|
||||
pay the resulting amount of Food. If successful, the card is added to
|
||||
the player's building cards and marked as bought.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>player</code> - the player attempting to buy the building card.</dd>
|
||||
<dt>Returns:</dt>
|
||||
<dd><code>true</code> if the building card is successfully bought,
|
||||
<code>false</code> otherwise.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="applyEffect(it.polimi.ingsw.gc14.Model.Player)">
|
||||
<h3>applyEffect</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">applyEffect</span><wbr><span class="parameters">(<a href="../Player.html" title="class in it.polimi.ingsw.gc14.Model">Player</a> player)</span></div>
|
||||
<div class="block">Default implementation of the building effect.
|
||||
|
||||
<p>This method does not perform any operation and can be overridden
|
||||
by specific building cards that define an active effect.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>player</code> - the player to whom the effect may be applied.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="toStringBoard()">
|
||||
<h3>toStringBoard</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span> <span class="element-name">toStringBoard</span>()</div>
|
||||
<div class="block"><span class="description-from-type-label">Description copied from class: <code><a href="../PlayableCard.html#toStringBoard()">PlayableCard</a></code></span></div>
|
||||
<div class="block">Returns the representation shown on the board (offer track cards).</div>
|
||||
<dl class="notes">
|
||||
<dt>Specified by:</dt>
|
||||
<dd><code><a href="../PlayableCard.html#toStringBoard()">toStringBoard</a></code> in class <code><a href="../PlayableCard.html" title="class in it.polimi.ingsw.gc14.Model">PlayableCard</a></code></dd>
|
||||
<dt>Returns:</dt>
|
||||
<dd>the board string representation of this card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="toStringPlayer()">
|
||||
<h3>toStringPlayer</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span> <span class="element-name">toStringPlayer</span>()</div>
|
||||
<div class="block"><span class="description-from-type-label">Description copied from class: <code><a href="../PlayableCard.html#toStringPlayer()">PlayableCard</a></code></span></div>
|
||||
<div class="block">Returns the compact representation shown in the player hand panel.</div>
|
||||
<dl class="notes">
|
||||
<dt>Specified by:</dt>
|
||||
<dd><code><a href="../PlayableCard.html#toStringPlayer()">toStringPlayer</a></code> in class <code><a href="../PlayableCard.html" title="class in it.polimi.ingsw.gc14.Model">PlayableCard</a></code></dd>
|
||||
<dt>Returns:</dt>
|
||||
<dd>the player-hand string representation of this card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<!-- ========= END OF CLASS DATA ========= -->
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
+384
@@ -0,0 +1,384 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="it">
|
||||
<head>
|
||||
<!-- Generated by javadoc (25) on Fri Jun 19 23:05:23 CEST 2026 -->
|
||||
<title>TribeCard</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="2026-06-19">
|
||||
<meta name="description" content="declaration: module: it.polimi.ingsw.gc14, package: it.polimi.ingsw.gc14.Model.Cards, class: TribeCard">
|
||||
<meta name="generator" content="javadoc/ClassWriter">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../resource-files/jquery-ui.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../resource-files/stylesheet.css">
|
||||
<script type="text/javascript" src="../../../../../../../script-files/script.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../script-files/jquery-3.7.1.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../script-files/jquery-ui.min.js"></script>
|
||||
</head>
|
||||
<body class="class-declaration-page">
|
||||
<script type="text/javascript">const pathtoroot = "../../../../../../../";
|
||||
loadScripts(document, 'script');</script>
|
||||
<noscript>
|
||||
<div>JavaScript is disabled on your browser.</div>
|
||||
</noscript>
|
||||
<header role="banner">
|
||||
<nav role="navigation">
|
||||
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||
<div class="top-nav" id="navbar-top">
|
||||
<div class="nav-content">
|
||||
<div class="nav-menu-button"><button id="navbar-toggle-button" aria-controls="navbar-top" aria-expanded="false" aria-label="Toggle navigation links"><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span></button></div>
|
||||
<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="../../../../../../module-summary.html">Module</a></li>
|
||||
<li class="nav-bar-cell1-rev">Class</li>
|
||||
<li><a href="package-tree.html">Tree</a></li>
|
||||
<li><a href="../../../../../../../index-files/index-1.html">Index</a></li>
|
||||
<li><a href="../../../../../../../search.html">Search</a></li>
|
||||
<li><a href="../../../../../../../help-doc.html#class">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sub-nav">
|
||||
<div class="nav-content">
|
||||
<ol class="sub-nav-list">
|
||||
<li><a href="../../../../../../module-summary.html">it.polimi.ingsw.gc14</a></li>
|
||||
<li><a href="package-summary.html">it.polimi.ingsw.gc14.Model.Cards</a></li>
|
||||
<li><a href="TribeCard.html" class="current-selection">TribeCard</a></li>
|
||||
</ol>
|
||||
<div class="nav-list-search"><input type="text" id="search-input" disabled placeholder="Search documentation (type /)" aria-label="Search in documentation" autocomplete="off" spellcheck="false"><input type="reset" id="reset-search" disabled value="Reset"></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<span class="skip-nav" id="skip-navbar-top"></span></nav>
|
||||
</header>
|
||||
<div class="main-grid">
|
||||
<nav role="navigation" class="toc" aria-label="Table of contents">
|
||||
<div class="toc-header">Contents <input type="text" class="filter-input" disabled placeholder="Filter contents (type .)" aria-label="Filter table of contents" autocomplete="off" spellcheck="false"><input type="reset" class="reset-filter" disabled tabindex="-1" value="Reset"></div>
|
||||
<ol class="toc-list" tabindex="-1">
|
||||
<li><a href="#" tabindex="0">Description</a></li>
|
||||
<li><a href="#field-summary" tabindex="0">Field Summary</a></li>
|
||||
<li><a href="#constructor-summary" tabindex="0">Constructor Summary</a></li>
|
||||
<li><a href="#method-summary" tabindex="0">Method Summary</a></li>
|
||||
<li><a href="#field-detail" tabindex="0">Field Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#isEventCard" tabindex="0">isEventCard</a></li>
|
||||
<li><a href="#nMin" tabindex="0">nMin</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
<li><a href="#constructor-detail" tabindex="0">Constructor Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#%3Cinit%3E(int,boolean)" tabindex="0">TribeCard(int, boolean)</a></li>
|
||||
<li><a href="#%3Cinit%3E(java.lang.String,int,boolean)" tabindex="0">TribeCard(String, int, boolean)</a></li>
|
||||
<li><a href="#%3Cinit%3E(int,boolean,int)" tabindex="0">TribeCard(int, boolean, int)</a></li>
|
||||
<li><a href="#%3Cinit%3E(java.lang.String,int,boolean,int)" tabindex="0">TribeCard(String, int, boolean, int)</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
<li><a href="#method-detail" tabindex="0">Method Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#isEventCard()" tabindex="0">isEventCard()</a></li>
|
||||
<li><a href="#getNMin()" tabindex="0">getNMin()</a></li>
|
||||
<li><a href="#clone()" tabindex="0">clone()</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
</ol>
|
||||
<button class="hide-sidebar"><span>Hide sidebar </span><img src="../../../../../../../resource-files/left.svg" alt="Hide sidebar"></button><button class="show-sidebar"><img src="../../../../../../../resource-files/right.svg" alt="Show sidebar"><span> Show sidebar</span></button></nav>
|
||||
<main role="main">
|
||||
<!-- ======== START OF CLASS DATA ======== -->
|
||||
<div class="header">
|
||||
<h1 title="Class TribeCard" class="title">Class TribeCard</h1>
|
||||
</div>
|
||||
<div class="inheritance" title="Inheritance Tree"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">java.lang.Object</a>
|
||||
<div class="inheritance"><a href="../PlayableCard.html" title="class in it.polimi.ingsw.gc14.Model">it.polimi.ingsw.gc14.Model.PlayableCard</a>
|
||||
<div class="inheritance">it.polimi.ingsw.gc14.Model.Cards.TribeCard</div>
|
||||
</div>
|
||||
</div>
|
||||
<section class="class-description" id="class-description">
|
||||
<dl class="notes">
|
||||
<dt>All Implemented Interfaces:</dt>
|
||||
<dd><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/Serializable.html" title="class or interface in java.io" class="external-link">Serializable</a></code></dd>
|
||||
</dl>
|
||||
<dl class="notes">
|
||||
<dt>Direct Known Subclasses:</dt>
|
||||
<dd><code><a href="TribeCards/Character.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">Character</a>, <a href="TribeCards/EventCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">EventCard</a></code></dd>
|
||||
</dl>
|
||||
<hr>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="type-signature"><span class="modifiers">public abstract class </span><span class="element-name type-name-label">TribeCard</span>
|
||||
<span class="extends-implements">extends <a href="../PlayableCard.html" title="class in it.polimi.ingsw.gc14.Model">PlayableCard</a>
|
||||
implements <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/Serializable.html" title="class or interface in java.io" class="external-link">Serializable</a></span></div>
|
||||
<div class="block">Abstract base class for all tribe cards.
|
||||
A TribeCard is a <a href="../PlayableCard.html" title="class in it.polimi.ingsw.gc14.Model"><code>PlayableCard</code></a> that may either be an event card
|
||||
or a non-event card, and may optionally specify a minimum number of players.</div>
|
||||
<dl class="notes">
|
||||
<dt>See Also:</dt>
|
||||
<dd>
|
||||
<ul class="tag-list">
|
||||
<li><a href="../../../../../../../serialized-form.html#it.polimi.ingsw.gc14.Model.Cards.TribeCard">Serialized Form</a></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
<section class="summary">
|
||||
<ul class="summary-list">
|
||||
<!-- =========== FIELD SUMMARY =========== -->
|
||||
<li>
|
||||
<section class="field-summary" id="field-summary">
|
||||
<h2>Field Summary</h2>
|
||||
<div class="caption"><span>Fields</span></div>
|
||||
<div class="summary-table three-column-summary">
|
||||
<div class="table-header col-first">Modifier and Type</div>
|
||||
<div class="table-header col-second">Field</div>
|
||||
<div class="table-header col-last">Description</div>
|
||||
<div class="col-first even-row-color"><code>private final boolean</code></div>
|
||||
<div class="col-second even-row-color"><code><a href="#isEventCard" class="member-name-link">isEventCard</a></code></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">Indicates whether this tribe card is an event card.</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color"><code>private final int</code></div>
|
||||
<div class="col-second odd-row-color"><code><a href="#nMin" class="member-name-link">nMin</a></code></div>
|
||||
<div class="col-last odd-row-color">
|
||||
<div class="block">The minimum number of players required for this tribe card.</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
||||
<li>
|
||||
<section class="constructor-summary" id="constructor-summary">
|
||||
<h2>Constructor Summary</h2>
|
||||
<div class="caption"><span>Constructors</span></div>
|
||||
<div class="summary-table two-column-summary">
|
||||
<div class="table-header col-first">Constructor</div>
|
||||
<div class="table-header col-last">Description</div>
|
||||
<div class="col-constructor-name even-row-color"><code><a href="#%3Cinit%3E(int,boolean)" class="member-name-link">TribeCard</a><wbr>(int Era,
|
||||
boolean isEventCard)</code></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">Creates a tribe card with the specified era and event-card flag.</div>
|
||||
</div>
|
||||
<div class="col-constructor-name odd-row-color"><code><a href="#%3Cinit%3E(int,boolean,int)" class="member-name-link">TribeCard</a><wbr>(int Era,
|
||||
boolean isEventCard,
|
||||
int nMin)</code></div>
|
||||
<div class="col-last odd-row-color">
|
||||
<div class="block">Creates a tribe card with the specified era, event-card flag,
|
||||
and minimum number of players.</div>
|
||||
</div>
|
||||
<div class="col-constructor-name even-row-color"><code><a href="#%3Cinit%3E(java.lang.String,int,boolean)" class="member-name-link">TribeCard</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> idIMG,
|
||||
int Era,
|
||||
boolean isEventCard)</code></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">Creates a tribe card with the specified image id, era and event-card flag.</div>
|
||||
</div>
|
||||
<div class="col-constructor-name odd-row-color"><code><a href="#%3Cinit%3E(java.lang.String,int,boolean,int)" class="member-name-link">TribeCard</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> idIMG,
|
||||
int Era,
|
||||
boolean isEventCard,
|
||||
int nMin)</code></div>
|
||||
<div class="col-last odd-row-color">
|
||||
<div class="block">Creates a tribe card with the specified image id, era, event-card flag,
|
||||
and minimum number of players.</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ========== METHOD SUMMARY =========== -->
|
||||
<li>
|
||||
<section class="method-summary" id="method-summary">
|
||||
<h2>Method Summary</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">All Methods</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">Instance Methods</button><button id="method-summary-table-tab3" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab3', 3)" class="table-tab">Abstract Methods</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">Concrete Methods</button></div>
|
||||
<div id="method-summary-table.tabpanel" role="tabpanel" aria-labelledby="method-summary-table-tab0">
|
||||
<div class="summary-table three-column-summary">
|
||||
<div class="table-header col-first">Modifier and Type</div>
|
||||
<div class="table-header col-second">Method</div>
|
||||
<div class="table-header col-last">Description</div>
|
||||
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>abstract <a href="TribeCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">TribeCard</a></code></div>
|
||||
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#clone()" class="member-name-link">clone</a>()</code></div>
|
||||
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
||||
<div class="block">Creates and returns a copy of this tribe card.</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="#getNMin()" class="member-name-link">getNMin</a>()</code></div>
|
||||
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Returns the minimum number of players required for this tribe card.</div>
|
||||
</div>
|
||||
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>boolean</code></div>
|
||||
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#isEventCard()" class="member-name-link">isEventCard</a>()</code></div>
|
||||
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Returns whether this tribe card is an event card.</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-it.polimi.ingsw.gc14.Model.PlayableCard">Methods inherited from class <a href="../PlayableCard.html#method-summary" title="class in it.polimi.ingsw.gc14.Model">PlayableCard</a></h3>
|
||||
<code><a href="../PlayableCard.html#getEra()" title="getEra()">getEra</a>, <a href="../PlayableCard.html#getIdIMG()" title="getIdIMG()">getIdIMG</a>, <a href="../PlayableCard.html#toStringBoard()" title="toStringBoard()">toStringBoard</a>, <a href="../PlayableCard.html#toStringPlayer()" title="toStringPlayer()">toStringPlayer</a></code></div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-java.lang.Object">Methods inherited from class <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#method-summary" title="class or interface in java.lang" class="external-link">Object</a></h3>
|
||||
<code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang" class="external-link">equals</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()" title="class or interface in java.lang" class="external-link">finalize</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()" title="class or interface in java.lang" class="external-link">getClass</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()" title="class or interface in java.lang" class="external-link">hashCode</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()" title="class or interface in java.lang" class="external-link">notify</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()" title="class or interface in java.lang" class="external-link">notifyAll</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()" title="class or interface in java.lang" class="external-link">toString</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)" title="class or interface 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>Field Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="isEventCard">
|
||||
<h3>isEventCard</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">private final</span> <span class="return-type">boolean</span> <span class="element-name">isEventCard</span></div>
|
||||
<div class="block">Indicates whether this tribe card is an event card.</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="nMin">
|
||||
<h3>nMin</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">private final</span> <span class="return-type">int</span> <span class="element-name">nMin</span></div>
|
||||
<div class="block">The minimum number of players required for this tribe card.</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
||||
<li>
|
||||
<section class="constructor-details" id="constructor-detail">
|
||||
<h2>Constructor Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="<init>(int,boolean)">
|
||||
<h3>TribeCard</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="element-name">TribeCard</span><wbr><span class="parameters">(int Era,
|
||||
boolean isEventCard)</span></div>
|
||||
<div class="block">Creates a tribe card with the specified era and event-card flag.
|
||||
The minimum number of players is set to 0.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>Era</code> - the era of the tribe card.</dd>
|
||||
<dd><code>isEventCard</code> - whether the card is an event card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="<init>(java.lang.String,int,boolean)">
|
||||
<h3>TribeCard</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="element-name">TribeCard</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> idIMG,
|
||||
int Era,
|
||||
boolean isEventCard)</span></div>
|
||||
<div class="block">Creates a tribe card with the specified image id, era and event-card flag.
|
||||
The minimum number of players is set to 0.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>idIMG</code> - the image identifier of the tribe card.</dd>
|
||||
<dd><code>Era</code> - the era of the tribe card.</dd>
|
||||
<dd><code>isEventCard</code> - whether the card is an event card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="<init>(int,boolean,int)">
|
||||
<h3>TribeCard</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="element-name">TribeCard</span><wbr><span class="parameters">(int Era,
|
||||
boolean isEventCard,
|
||||
int nMin)</span></div>
|
||||
<div class="block">Creates a tribe card with the specified era, event-card flag,
|
||||
and minimum number of players.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>Era</code> - the era of the tribe card.</dd>
|
||||
<dd><code>isEventCard</code> - whether the card is an event card.</dd>
|
||||
<dd><code>nMin</code> - the minimum number of players required for the card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="<init>(java.lang.String,int,boolean,int)">
|
||||
<h3>TribeCard</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="element-name">TribeCard</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> idIMG,
|
||||
int Era,
|
||||
boolean isEventCard,
|
||||
int nMin)</span></div>
|
||||
<div class="block">Creates a tribe card with the specified image id, era, event-card flag,
|
||||
and minimum number of players.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>idIMG</code> - the image identifier of the tribe card.</dd>
|
||||
<dd><code>Era</code> - the era of the tribe card.</dd>
|
||||
<dd><code>isEventCard</code> - whether the card is an event card.</dd>
|
||||
<dd><code>nMin</code> - the minimum number of players required for the card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ============ METHOD DETAIL ========== -->
|
||||
<li>
|
||||
<section class="method-details" id="method-detail">
|
||||
<h2>Method Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="isEventCard()">
|
||||
<h3>isEventCard</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type">boolean</span> <span class="element-name">isEventCard</span>()</div>
|
||||
<div class="block">Returns whether this tribe card is an event card.</div>
|
||||
<dl class="notes">
|
||||
<dt>Returns:</dt>
|
||||
<dd><code>true</code> if this card is an event card, <code>false</code> otherwise.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="getNMin()">
|
||||
<h3>getNMin</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type">int</span> <span class="element-name">getNMin</span>()</div>
|
||||
<div class="block">Returns the minimum number of players required for this tribe card.</div>
|
||||
<dl class="notes">
|
||||
<dt>Returns:</dt>
|
||||
<dd>the minimum number of players required for this tribe card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="clone()">
|
||||
<h3>clone</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public abstract</span> <span class="return-type"><a href="TribeCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">TribeCard</a></span> <span class="element-name">clone</span>()</div>
|
||||
<div class="block">Creates and returns a copy of this tribe card.</div>
|
||||
<dl class="notes">
|
||||
<dt>Overrides:</dt>
|
||||
<dd><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#clone()" title="class or interface in java.lang" class="external-link">clone</a></code> in class <code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a></code></dd>
|
||||
<dt>Returns:</dt>
|
||||
<dd>a clone of this tribe card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<!-- ========= END OF CLASS DATA ========= -->
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
+373
@@ -0,0 +1,373 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="it">
|
||||
<head>
|
||||
<!-- Generated by javadoc (25) on Fri Jun 19 23:05:23 CEST 2026 -->
|
||||
<title>Character</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="2026-06-19">
|
||||
<meta name="description" content="declaration: module: it.polimi.ingsw.gc14, package: it.polimi.ingsw.gc14.Model.Cards.TribeCards, class: Character">
|
||||
<meta name="generator" content="javadoc/ClassWriter">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../resource-files/jquery-ui.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../resource-files/stylesheet.css">
|
||||
<script type="text/javascript" src="../../../../../../../../script-files/script.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../script-files/jquery-3.7.1.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../script-files/jquery-ui.min.js"></script>
|
||||
</head>
|
||||
<body class="class-declaration-page">
|
||||
<script type="text/javascript">const pathtoroot = "../../../../../../../../";
|
||||
loadScripts(document, 'script');</script>
|
||||
<noscript>
|
||||
<div>JavaScript is disabled on your browser.</div>
|
||||
</noscript>
|
||||
<header role="banner">
|
||||
<nav role="navigation">
|
||||
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||
<div class="top-nav" id="navbar-top">
|
||||
<div class="nav-content">
|
||||
<div class="nav-menu-button"><button id="navbar-toggle-button" aria-controls="navbar-top" aria-expanded="false" aria-label="Toggle navigation links"><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span></button></div>
|
||||
<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="../../../../../../../module-summary.html">Module</a></li>
|
||||
<li class="nav-bar-cell1-rev">Class</li>
|
||||
<li><a href="package-tree.html">Tree</a></li>
|
||||
<li><a href="../../../../../../../../index-files/index-1.html">Index</a></li>
|
||||
<li><a href="../../../../../../../../search.html">Search</a></li>
|
||||
<li><a href="../../../../../../../../help-doc.html#class">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sub-nav">
|
||||
<div class="nav-content">
|
||||
<ol class="sub-nav-list">
|
||||
<li><a href="../../../../../../../module-summary.html">it.polimi.ingsw.gc14</a></li>
|
||||
<li><a href="package-summary.html">it.polimi.ingsw.gc14.Model.Cards.TribeCards</a></li>
|
||||
<li><a href="Character.html" class="current-selection">Character</a></li>
|
||||
</ol>
|
||||
<div class="nav-list-search"><input type="text" id="search-input" disabled placeholder="Search documentation (type /)" aria-label="Search in documentation" autocomplete="off" spellcheck="false"><input type="reset" id="reset-search" disabled value="Reset"></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<span class="skip-nav" id="skip-navbar-top"></span></nav>
|
||||
</header>
|
||||
<div class="main-grid">
|
||||
<nav role="navigation" class="toc" aria-label="Table of contents">
|
||||
<div class="toc-header">Contents <input type="text" class="filter-input" disabled placeholder="Filter contents (type .)" aria-label="Filter table of contents" autocomplete="off" spellcheck="false"><input type="reset" class="reset-filter" disabled tabindex="-1" value="Reset"></div>
|
||||
<ol class="toc-list" tabindex="-1">
|
||||
<li><a href="#" tabindex="0">Description</a></li>
|
||||
<li><a href="#field-summary" tabindex="0">Field Summary</a></li>
|
||||
<li><a href="#constructor-summary" tabindex="0">Constructor Summary</a></li>
|
||||
<li><a href="#method-summary" tabindex="0">Method Summary</a></li>
|
||||
<li><a href="#field-detail" tabindex="0">Field Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#type" tabindex="0">type</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
<li><a href="#constructor-detail" tabindex="0">Constructor Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#%3Cinit%3E(int,it.polimi.ingsw.gc14.Model.Cards.TribeCards.CharacterType)" tabindex="0">Character(int, CharacterType)</a></li>
|
||||
<li><a href="#%3Cinit%3E(java.lang.String,int,it.polimi.ingsw.gc14.Model.Cards.TribeCards.CharacterType)" tabindex="0">Character(String, int, CharacterType)</a></li>
|
||||
<li><a href="#%3Cinit%3E(int,it.polimi.ingsw.gc14.Model.Cards.TribeCards.CharacterType,int)" tabindex="0">Character(int, CharacterType, int)</a></li>
|
||||
<li><a href="#%3Cinit%3E(java.lang.String,int,it.polimi.ingsw.gc14.Model.Cards.TribeCards.CharacterType,int)" tabindex="0">Character(String, int, CharacterType, int)</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
<li><a href="#method-detail" tabindex="0">Method Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#getType()" tabindex="0">getType()</a></li>
|
||||
<li><a href="#clone()" tabindex="0">clone()</a></li>
|
||||
<li><a href="#insert(it.polimi.ingsw.gc14.Model.Player)" tabindex="0">insert(Player)</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
</ol>
|
||||
<button class="hide-sidebar"><span>Hide sidebar </span><img src="../../../../../../../../resource-files/left.svg" alt="Hide sidebar"></button><button class="show-sidebar"><img src="../../../../../../../../resource-files/right.svg" alt="Show sidebar"><span> Show sidebar</span></button></nav>
|
||||
<main role="main">
|
||||
<!-- ======== START OF CLASS DATA ======== -->
|
||||
<div class="header">
|
||||
<h1 title="Class Character" class="title">Class Character</h1>
|
||||
</div>
|
||||
<div class="inheritance" title="Inheritance Tree"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">java.lang.Object</a>
|
||||
<div class="inheritance"><a href="../../PlayableCard.html" title="class in it.polimi.ingsw.gc14.Model">it.polimi.ingsw.gc14.Model.PlayableCard</a>
|
||||
<div class="inheritance"><a href="../TribeCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">it.polimi.ingsw.gc14.Model.Cards.TribeCard</a>
|
||||
<div class="inheritance">it.polimi.ingsw.gc14.Model.Cards.TribeCards.Character</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<section class="class-description" id="class-description">
|
||||
<dl class="notes">
|
||||
<dt>All Implemented Interfaces:</dt>
|
||||
<dd><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/Serializable.html" title="class or interface in java.io" class="external-link">Serializable</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Cloneable.html" title="class or interface in java.lang" class="external-link">Cloneable</a></code></dd>
|
||||
</dl>
|
||||
<dl class="notes">
|
||||
<dt>Direct Known Subclasses:</dt>
|
||||
<dd><code><a href="Characters/Artist.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters">Artist</a>, <a href="Characters/Builder.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters">Builder</a>, <a href="Characters/Gatherer.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters">Gatherer</a>, <a href="Characters/Hunter.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters">Hunter</a>, <a href="Characters/Inventor.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters">Inventor</a>, <a href="Characters/Shaman.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters">Shaman</a></code></dd>
|
||||
</dl>
|
||||
<hr>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="type-signature"><span class="modifiers">public abstract class </span><span class="element-name type-name-label">Character</span>
|
||||
<span class="extends-implements">extends <a href="../TribeCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">TribeCard</a>
|
||||
implements <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Cloneable.html" title="class or interface in java.lang" class="external-link">Cloneable</a></span></div>
|
||||
<div class="block">Abstract base class for all character cards.
|
||||
|
||||
<p>A Character is a <a href="../TribeCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards"><code>TribeCard</code></a> that is not an event card and is associated
|
||||
with a specific <a href="CharacterType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards"><code>CharacterType</code></a>.</div>
|
||||
<dl class="notes">
|
||||
<dt>See Also:</dt>
|
||||
<dd>
|
||||
<ul class="tag-list">
|
||||
<li><a href="../../../../../../../../serialized-form.html#it.polimi.ingsw.gc14.Model.Cards.TribeCards.Character">Serialized Form</a></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
<section class="summary">
|
||||
<ul class="summary-list">
|
||||
<!-- =========== FIELD SUMMARY =========== -->
|
||||
<li>
|
||||
<section class="field-summary" id="field-summary">
|
||||
<h2>Field Summary</h2>
|
||||
<div class="caption"><span>Fields</span></div>
|
||||
<div class="summary-table three-column-summary">
|
||||
<div class="table-header col-first">Modifier and Type</div>
|
||||
<div class="table-header col-second">Field</div>
|
||||
<div class="table-header col-last">Description</div>
|
||||
<div class="col-first even-row-color"><code>private final <a href="CharacterType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">CharacterType</a></code></div>
|
||||
<div class="col-second even-row-color"><code><a href="#type" class="member-name-link">type</a></code></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">The specific type of this character card.</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
||||
<li>
|
||||
<section class="constructor-summary" id="constructor-summary">
|
||||
<h2>Constructor Summary</h2>
|
||||
<div class="caption"><span>Constructors</span></div>
|
||||
<div class="summary-table two-column-summary">
|
||||
<div class="table-header col-first">Constructor</div>
|
||||
<div class="table-header col-last">Description</div>
|
||||
<div class="col-constructor-name even-row-color"><code><a href="#%3Cinit%3E(int,it.polimi.ingsw.gc14.Model.Cards.TribeCards.CharacterType)" class="member-name-link">Character</a><wbr>(int Era,
|
||||
<a href="CharacterType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">CharacterType</a> type)</code></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">Creates a character card with the specified era and character type.</div>
|
||||
</div>
|
||||
<div class="col-constructor-name odd-row-color"><code><a href="#%3Cinit%3E(int,it.polimi.ingsw.gc14.Model.Cards.TribeCards.CharacterType,int)" class="member-name-link">Character</a><wbr>(int Era,
|
||||
<a href="CharacterType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">CharacterType</a> type,
|
||||
int nMin)</code></div>
|
||||
<div class="col-last odd-row-color">
|
||||
<div class="block">Creates a character card with the specified era, character type,
|
||||
and minimum number of players.</div>
|
||||
</div>
|
||||
<div class="col-constructor-name even-row-color"><code><a href="#%3Cinit%3E(java.lang.String,int,it.polimi.ingsw.gc14.Model.Cards.TribeCards.CharacterType)" class="member-name-link">Character</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> idIMG,
|
||||
int Era,
|
||||
<a href="CharacterType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">CharacterType</a> type)</code></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">Creates a character card with the specified image id, era and character type.</div>
|
||||
</div>
|
||||
<div class="col-constructor-name odd-row-color"><code><a href="#%3Cinit%3E(java.lang.String,int,it.polimi.ingsw.gc14.Model.Cards.TribeCards.CharacterType,int)" class="member-name-link">Character</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> idIMG,
|
||||
int Era,
|
||||
<a href="CharacterType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">CharacterType</a> type,
|
||||
int nMin)</code></div>
|
||||
<div class="col-last odd-row-color">
|
||||
<div class="block">Creates a character card with the specified image id, era, character type,
|
||||
and minimum number of players.</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ========== METHOD SUMMARY =========== -->
|
||||
<li>
|
||||
<section class="method-summary" id="method-summary">
|
||||
<h2>Method Summary</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">All Methods</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">Instance Methods</button><button id="method-summary-table-tab3" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab3', 3)" class="table-tab">Abstract Methods</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">Concrete Methods</button></div>
|
||||
<div id="method-summary-table.tabpanel" role="tabpanel" aria-labelledby="method-summary-table-tab0">
|
||||
<div class="summary-table three-column-summary">
|
||||
<div class="table-header col-first">Modifier and Type</div>
|
||||
<div class="table-header col-second">Method</div>
|
||||
<div class="table-header col-last">Description</div>
|
||||
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>abstract <a href="Character.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">Character</a></code></div>
|
||||
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#clone()" class="member-name-link">clone</a>()</code></div>
|
||||
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
||||
<div class="block">Creates and returns a copy of this character card.</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="CharacterType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">CharacterType</a></code></div>
|
||||
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getType()" class="member-name-link">getType</a>()</code></div>
|
||||
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Returns the type of this character card.</div>
|
||||
</div>
|
||||
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>abstract void</code></div>
|
||||
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#insert(it.polimi.ingsw.gc14.Model.Player)" class="member-name-link">insert</a><wbr>(<a href="../../Player.html" title="class in it.polimi.ingsw.gc14.Model">Player</a> player)</code></div>
|
||||
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
||||
<div class="block">Inserts this character card into the appropriate collection of the specified player.</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-it.polimi.ingsw.gc14.Model.Cards.TribeCard">Methods inherited from class <a href="../TribeCard.html#method-summary" title="class in it.polimi.ingsw.gc14.Model.Cards">TribeCard</a></h3>
|
||||
<code><a href="../TribeCard.html#getNMin()" title="getNMin()">getNMin</a>, <a href="../TribeCard.html#isEventCard()" title="isEventCard()">isEventCard</a></code></div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-it.polimi.ingsw.gc14.Model.PlayableCard">Methods inherited from class <a href="../../PlayableCard.html#method-summary" title="class in it.polimi.ingsw.gc14.Model">PlayableCard</a></h3>
|
||||
<code><a href="../../PlayableCard.html#getEra()" title="getEra()">getEra</a>, <a href="../../PlayableCard.html#getIdIMG()" title="getIdIMG()">getIdIMG</a>, <a href="../../PlayableCard.html#toStringBoard()" title="toStringBoard()">toStringBoard</a>, <a href="../../PlayableCard.html#toStringPlayer()" title="toStringPlayer()">toStringPlayer</a></code></div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-java.lang.Object">Methods inherited from class <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#method-summary" title="class or interface in java.lang" class="external-link">Object</a></h3>
|
||||
<code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang" class="external-link">equals</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()" title="class or interface in java.lang" class="external-link">finalize</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()" title="class or interface in java.lang" class="external-link">getClass</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()" title="class or interface in java.lang" class="external-link">hashCode</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()" title="class or interface in java.lang" class="external-link">notify</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()" title="class or interface in java.lang" class="external-link">notifyAll</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()" title="class or interface in java.lang" class="external-link">toString</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)" title="class or interface 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>Field Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="type">
|
||||
<h3>type</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">private final</span> <span class="return-type"><a href="CharacterType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">CharacterType</a></span> <span class="element-name">type</span></div>
|
||||
<div class="block">The specific type of this character card.</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
||||
<li>
|
||||
<section class="constructor-details" id="constructor-detail">
|
||||
<h2>Constructor Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="<init>(int,it.polimi.ingsw.gc14.Model.Cards.TribeCards.CharacterType)">
|
||||
<h3>Character</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="element-name">Character</span><wbr><span class="parameters">(int Era,
|
||||
<a href="CharacterType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">CharacterType</a> type)</span></div>
|
||||
<div class="block">Creates a character card with the specified era and character type.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>Era</code> - the era of the character card.</dd>
|
||||
<dd><code>type</code> - the type of the character card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="<init>(java.lang.String,int,it.polimi.ingsw.gc14.Model.Cards.TribeCards.CharacterType)">
|
||||
<h3>Character</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="element-name">Character</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> idIMG,
|
||||
int Era,
|
||||
<a href="CharacterType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">CharacterType</a> type)</span></div>
|
||||
<div class="block">Creates a character card with the specified image id, era and character type.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>idIMG</code> - the image identifier of the character card.</dd>
|
||||
<dd><code>Era</code> - the era of the character card.</dd>
|
||||
<dd><code>type</code> - the type of the character card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="<init>(int,it.polimi.ingsw.gc14.Model.Cards.TribeCards.CharacterType,int)">
|
||||
<h3>Character</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="element-name">Character</span><wbr><span class="parameters">(int Era,
|
||||
<a href="CharacterType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">CharacterType</a> type,
|
||||
int nMin)</span></div>
|
||||
<div class="block">Creates a character card with the specified era, character type,
|
||||
and minimum number of players.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>Era</code> - the era of the character card.</dd>
|
||||
<dd><code>type</code> - the type of the character card.</dd>
|
||||
<dd><code>nMin</code> - the minimum number of players required for the card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="<init>(java.lang.String,int,it.polimi.ingsw.gc14.Model.Cards.TribeCards.CharacterType,int)">
|
||||
<h3>Character</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="element-name">Character</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> idIMG,
|
||||
int Era,
|
||||
<a href="CharacterType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">CharacterType</a> type,
|
||||
int nMin)</span></div>
|
||||
<div class="block">Creates a character card with the specified image id, era, character type,
|
||||
and minimum number of players.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>idIMG</code> - the image identifier of the character card.</dd>
|
||||
<dd><code>Era</code> - the era of the character card.</dd>
|
||||
<dd><code>type</code> - the type of the character card.</dd>
|
||||
<dd><code>nMin</code> - the minimum number of players required for the card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ============ METHOD DETAIL ========== -->
|
||||
<li>
|
||||
<section class="method-details" id="method-detail">
|
||||
<h2>Method Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="getType()">
|
||||
<h3>getType</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="CharacterType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">CharacterType</a></span> <span class="element-name">getType</span>()</div>
|
||||
<div class="block">Returns the type of this character card.</div>
|
||||
<dl class="notes">
|
||||
<dt>Returns:</dt>
|
||||
<dd>the type of this character card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="clone()">
|
||||
<h3>clone</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public abstract</span> <span class="return-type"><a href="Character.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">Character</a></span> <span class="element-name">clone</span>()</div>
|
||||
<div class="block">Creates and returns a copy of this character card.</div>
|
||||
<dl class="notes">
|
||||
<dt>Specified by:</dt>
|
||||
<dd><code><a href="../TribeCard.html#clone()">clone</a></code> in class <code><a href="../TribeCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">TribeCard</a></code></dd>
|
||||
<dt>Returns:</dt>
|
||||
<dd>a clone of this character card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="insert(it.polimi.ingsw.gc14.Model.Player)">
|
||||
<h3>insert</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public abstract</span> <span class="return-type">void</span> <span class="element-name">insert</span><wbr><span class="parameters">(<a href="../../Player.html" title="class in it.polimi.ingsw.gc14.Model">Player</a> player)</span></div>
|
||||
<div class="block">Inserts this character card into the appropriate collection of the specified player.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>player</code> - the player who receives the character card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<!-- ========= END OF CLASS DATA ========= -->
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
+332
@@ -0,0 +1,332 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="it">
|
||||
<head>
|
||||
<!-- Generated by javadoc (25) on Fri Jun 19 23:05:23 CEST 2026 -->
|
||||
<title>CharacterType</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="2026-06-19">
|
||||
<meta name="description" content="declaration: module: it.polimi.ingsw.gc14, package: it.polimi.ingsw.gc14.Model.Cards.TribeCards, enum: CharacterType">
|
||||
<meta name="generator" content="javadoc/ClassWriter">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../resource-files/jquery-ui.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../resource-files/stylesheet.css">
|
||||
<script type="text/javascript" src="../../../../../../../../script-files/script.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../script-files/jquery-3.7.1.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../script-files/jquery-ui.min.js"></script>
|
||||
</head>
|
||||
<body class="class-declaration-page">
|
||||
<script type="text/javascript">const pathtoroot = "../../../../../../../../";
|
||||
loadScripts(document, 'script');</script>
|
||||
<noscript>
|
||||
<div>JavaScript is disabled on your browser.</div>
|
||||
</noscript>
|
||||
<header role="banner">
|
||||
<nav role="navigation">
|
||||
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||
<div class="top-nav" id="navbar-top">
|
||||
<div class="nav-content">
|
||||
<div class="nav-menu-button"><button id="navbar-toggle-button" aria-controls="navbar-top" aria-expanded="false" aria-label="Toggle navigation links"><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span></button></div>
|
||||
<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="../../../../../../../module-summary.html">Module</a></li>
|
||||
<li class="nav-bar-cell1-rev">Class</li>
|
||||
<li><a href="package-tree.html">Tree</a></li>
|
||||
<li><a href="../../../../../../../../index-files/index-1.html">Index</a></li>
|
||||
<li><a href="../../../../../../../../search.html">Search</a></li>
|
||||
<li><a href="../../../../../../../../help-doc.html#class">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sub-nav">
|
||||
<div class="nav-content">
|
||||
<ol class="sub-nav-list">
|
||||
<li><a href="../../../../../../../module-summary.html">it.polimi.ingsw.gc14</a></li>
|
||||
<li><a href="package-summary.html">it.polimi.ingsw.gc14.Model.Cards.TribeCards</a></li>
|
||||
<li><a href="CharacterType.html" class="current-selection">CharacterType</a></li>
|
||||
</ol>
|
||||
<div class="nav-list-search"><input type="text" id="search-input" disabled placeholder="Search documentation (type /)" aria-label="Search in documentation" autocomplete="off" spellcheck="false"><input type="reset" id="reset-search" disabled value="Reset"></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<span class="skip-nav" id="skip-navbar-top"></span></nav>
|
||||
</header>
|
||||
<div class="main-grid">
|
||||
<nav role="navigation" class="toc" aria-label="Table of contents">
|
||||
<div class="toc-header">Contents <input type="text" class="filter-input" disabled placeholder="Filter contents (type .)" aria-label="Filter table of contents" autocomplete="off" spellcheck="false"><input type="reset" class="reset-filter" disabled tabindex="-1" value="Reset"></div>
|
||||
<ol class="toc-list" tabindex="-1">
|
||||
<li><a href="#" tabindex="0">Description</a></li>
|
||||
<li><a href="#nested-class-summary" tabindex="0">Nested Class Summary</a></li>
|
||||
<li><a href="#enum-constant-summary" tabindex="0">Enum Constant Summary</a></li>
|
||||
<li><a href="#constructor-summary" tabindex="0">Constructor Summary</a></li>
|
||||
<li><a href="#method-summary" tabindex="0">Method Summary</a></li>
|
||||
<li><a href="#enum-constant-detail" tabindex="0">Enum Constant Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#INVENTOR" tabindex="0">INVENTOR</a></li>
|
||||
<li><a href="#BUILDER" tabindex="0">BUILDER</a></li>
|
||||
<li><a href="#GATHERER" tabindex="0">GATHERER</a></li>
|
||||
<li><a href="#ARTIST" tabindex="0">ARTIST</a></li>
|
||||
<li><a href="#SHAMAN" tabindex="0">SHAMAN</a></li>
|
||||
<li><a href="#HUNTER" tabindex="0">HUNTER</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
<li><a href="#constructor-detail" tabindex="0">Constructor Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#%3Cinit%3E()" tabindex="0">CharacterType()</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
<li><a href="#method-detail" tabindex="0">Method Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#values()" tabindex="0">values()</a></li>
|
||||
<li><a href="#valueOf(java.lang.String)" tabindex="0">valueOf(String)</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
</ol>
|
||||
<button class="hide-sidebar"><span>Hide sidebar </span><img src="../../../../../../../../resource-files/left.svg" alt="Hide sidebar"></button><button class="show-sidebar"><img src="../../../../../../../../resource-files/right.svg" alt="Show sidebar"><span> Show sidebar</span></button></nav>
|
||||
<main role="main">
|
||||
<!-- ======== START OF CLASS DATA ======== -->
|
||||
<div class="header">
|
||||
<h1 title="Enum Class CharacterType" class="title">Enum Class CharacterType</h1>
|
||||
</div>
|
||||
<div class="inheritance" title="Inheritance Tree"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">java.lang.Object</a>
|
||||
<div class="inheritance"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html" title="class or interface in java.lang" class="external-link">java.lang.Enum</a><<a href="CharacterType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">CharacterType</a>>
|
||||
<div class="inheritance">it.polimi.ingsw.gc14.Model.Cards.TribeCards.CharacterType</div>
|
||||
</div>
|
||||
</div>
|
||||
<section class="class-description" id="class-description">
|
||||
<dl class="notes">
|
||||
<dt>All Implemented Interfaces:</dt>
|
||||
<dd><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/Serializable.html" title="class or interface in java.io" class="external-link">Serializable</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Comparable.html" title="class or interface in java.lang" class="external-link">Comparable</a><<a href="CharacterType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">CharacterType</a>>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/constant/Constable.html" title="class or interface in java.lang.constant" class="external-link">Constable</a></code></dd>
|
||||
</dl>
|
||||
<hr>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="type-signature"><span class="modifiers">public enum </span><span class="element-name type-name-label">CharacterType</span>
|
||||
<span class="extends-implements">extends <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html" title="class or interface in java.lang" class="external-link">Enum</a><<a href="CharacterType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">CharacterType</a>></span></div>
|
||||
<div class="block">Represents the different types of character cards available in the game.</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="summary">
|
||||
<ul class="summary-list">
|
||||
<!-- ======== NESTED CLASS SUMMARY ======== -->
|
||||
<li>
|
||||
<section class="nested-class-summary" id="nested-class-summary">
|
||||
<h2>Nested Class Summary</h2>
|
||||
<div class="inherited-list">
|
||||
<h3 id="nested-classes-inherited-from-class-java.lang.Enum">Nested classes/interfaces inherited from class <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#nested-class-summary" title="class or interface in java.lang" class="external-link">Enum</a></h3>
|
||||
<code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.EnumDesc.html" title="class or interface in java.lang" class="external-link">Enum.EnumDesc</a><E></code></div>
|
||||
</section>
|
||||
</li>
|
||||
<!-- =========== ENUM CONSTANT SUMMARY =========== -->
|
||||
<li>
|
||||
<section class="constants-summary" id="enum-constant-summary">
|
||||
<h2>Enum Constant Summary</h2>
|
||||
<div class="caption"><span>Enum Constants</span></div>
|
||||
<div class="summary-table two-column-summary">
|
||||
<div class="table-header col-first">Enum Constant</div>
|
||||
<div class="table-header col-last">Description</div>
|
||||
<div class="col-first even-row-color"><code><a href="#ARTIST" class="member-name-link">ARTIST</a></code></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">Character card representing an Artist.</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color"><code><a href="#BUILDER" class="member-name-link">BUILDER</a></code></div>
|
||||
<div class="col-last odd-row-color">
|
||||
<div class="block">Character card representing a Builder.</div>
|
||||
</div>
|
||||
<div class="col-first even-row-color"><code><a href="#GATHERER" class="member-name-link">GATHERER</a></code></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">Character card representing a Gatherer.</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color"><code><a href="#HUNTER" class="member-name-link">HUNTER</a></code></div>
|
||||
<div class="col-last odd-row-color">
|
||||
<div class="block">Character card representing a Hunter.</div>
|
||||
</div>
|
||||
<div class="col-first even-row-color"><code><a href="#INVENTOR" class="member-name-link">INVENTOR</a></code></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">Character card representing an Inventor.</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color"><code><a href="#SHAMAN" class="member-name-link">SHAMAN</a></code></div>
|
||||
<div class="col-last odd-row-color">
|
||||
<div class="block">Character card representing a Shaman.</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
||||
<li>
|
||||
<section class="constructor-summary" id="constructor-summary">
|
||||
<h2>Constructor Summary</h2>
|
||||
<div class="caption"><span>Constructors</span></div>
|
||||
<div class="summary-table three-column-summary">
|
||||
<div class="table-header col-first">Modifier</div>
|
||||
<div class="table-header col-second">Constructor</div>
|
||||
<div class="table-header col-last">Description</div>
|
||||
<div class="col-first even-row-color"><code>private </code></div>
|
||||
<div class="col-constructor-name even-row-color"><code><a href="#%3Cinit%3E()" class="member-name-link">CharacterType</a>()</code></div>
|
||||
<div class="col-last even-row-color"> </div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ========== METHOD SUMMARY =========== -->
|
||||
<li>
|
||||
<section class="method-summary" id="method-summary">
|
||||
<h2>Method Summary</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">All Methods</button><button id="method-summary-table-tab1" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab1', 3)" class="table-tab">Static Methods</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">Concrete Methods</button></div>
|
||||
<div id="method-summary-table.tabpanel" role="tabpanel" aria-labelledby="method-summary-table-tab0">
|
||||
<div class="summary-table three-column-summary">
|
||||
<div class="table-header col-first">Modifier and Type</div>
|
||||
<div class="table-header col-second">Method</div>
|
||||
<div class="table-header col-last">Description</div>
|
||||
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="CharacterType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">CharacterType</a></code></div>
|
||||
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#valueOf(java.lang.String)" class="member-name-link">valueOf</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> name)</code></div>
|
||||
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||||
<div class="block">Returns the enum constant of this class with the specified name.</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="CharacterType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">CharacterType</a>[]</code></div>
|
||||
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#values()" class="member-name-link">values</a>()</code></div>
|
||||
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||||
<div class="block">Returns an array containing the constants of this enum class, in
|
||||
the order they are declared.</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-java.lang.Enum">Methods inherited from class <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#method-summary" title="class or interface in java.lang" class="external-link">Enum</a></h3>
|
||||
<code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#clone()" title="class or interface in java.lang" class="external-link">clone</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#compareTo(E)" title="class or interface in java.lang" class="external-link">compareTo</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#describeConstable()" title="class or interface in java.lang" class="external-link">describeConstable</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#equals(java.lang.Object)" title="class or interface in java.lang" class="external-link">equals</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#finalize()" title="class or interface in java.lang" class="external-link">finalize</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#getDeclaringClass()" title="class or interface in java.lang" class="external-link">getDeclaringClass</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#hashCode()" title="class or interface in java.lang" class="external-link">hashCode</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#name()" title="class or interface in java.lang" class="external-link">name</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#ordinal()" title="class or interface in java.lang" class="external-link">ordinal</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#toString()" title="class or interface in java.lang" class="external-link">toString</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#valueOf(java.lang.Class,java.lang.String)" title="class or interface in java.lang" class="external-link">valueOf</a></code></div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-java.lang.Object">Methods inherited from class <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#method-summary" title="class or interface in java.lang" class="external-link">Object</a></h3>
|
||||
<code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()" title="class or interface in java.lang" class="external-link">getClass</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()" title="class or interface in java.lang" class="external-link">notify</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()" title="class or interface in java.lang" class="external-link">notifyAll</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)" title="class or interface in java.lang" class="external-link">wait</a></code></div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<section class="details">
|
||||
<ul class="details-list">
|
||||
<!-- ============ ENUM CONSTANT DETAIL =========== -->
|
||||
<li>
|
||||
<section class="constant-details" id="enum-constant-detail">
|
||||
<h2>Enum Constant Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="INVENTOR">
|
||||
<h3>INVENTOR</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type"><a href="CharacterType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">CharacterType</a></span> <span class="element-name">INVENTOR</span></div>
|
||||
<div class="block">Character card representing an Inventor.</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="BUILDER">
|
||||
<h3>BUILDER</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type"><a href="CharacterType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">CharacterType</a></span> <span class="element-name">BUILDER</span></div>
|
||||
<div class="block">Character card representing a Builder.</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="GATHERER">
|
||||
<h3>GATHERER</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type"><a href="CharacterType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">CharacterType</a></span> <span class="element-name">GATHERER</span></div>
|
||||
<div class="block">Character card representing a Gatherer.</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="ARTIST">
|
||||
<h3>ARTIST</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type"><a href="CharacterType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">CharacterType</a></span> <span class="element-name">ARTIST</span></div>
|
||||
<div class="block">Character card representing an Artist.</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="SHAMAN">
|
||||
<h3>SHAMAN</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type"><a href="CharacterType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">CharacterType</a></span> <span class="element-name">SHAMAN</span></div>
|
||||
<div class="block">Character card representing a Shaman.</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="HUNTER">
|
||||
<h3>HUNTER</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type"><a href="CharacterType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">CharacterType</a></span> <span class="element-name">HUNTER</span></div>
|
||||
<div class="block">Character card representing a Hunter.</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
||||
<li>
|
||||
<section class="constructor-details" id="constructor-detail">
|
||||
<h2>Constructor Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="<init>()">
|
||||
<h3>CharacterType</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">private</span> <span class="element-name">CharacterType</span>()</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ============ METHOD DETAIL ========== -->
|
||||
<li>
|
||||
<section class="method-details" id="method-detail">
|
||||
<h2>Method Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="values()">
|
||||
<h3>values</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type"><a href="CharacterType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">CharacterType</a>[]</span> <span class="element-name">values</span>()</div>
|
||||
<div class="block">Returns an array containing the constants of this enum class, in
|
||||
the order they are declared.</div>
|
||||
<dl class="notes">
|
||||
<dt>Returns:</dt>
|
||||
<dd>an array containing the constants of this enum class, in the order they are declared</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="valueOf(java.lang.String)">
|
||||
<h3>valueOf</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type"><a href="CharacterType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">CharacterType</a></span> <span class="element-name">valueOf</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> name)</span></div>
|
||||
<div class="block">Returns the enum constant of this class with the specified name.
|
||||
The string must match <i>exactly</i> an identifier used to declare an
|
||||
enum constant in this class. (Extraneous whitespace characters are
|
||||
not permitted.)</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>name</code> - the name of the enum constant to be returned.</dd>
|
||||
<dt>Returns:</dt>
|
||||
<dd>the enum constant with the specified name</dd>
|
||||
<dt>Throws:</dt>
|
||||
<dd><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a></code> - if this enum class has no constant with the specified name</dd>
|
||||
<dd><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/NullPointerException.html" title="class or interface in java.lang" class="external-link">NullPointerException</a></code> - if the argument is null</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<!-- ========= END OF CLASS DATA ========= -->
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
+348
@@ -0,0 +1,348 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="it">
|
||||
<head>
|
||||
<!-- Generated by javadoc (25) on Fri Jun 19 23:05:23 CEST 2026 -->
|
||||
<title>Artist</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="2026-06-19">
|
||||
<meta name="description" content="declaration: module: it.polimi.ingsw.gc14, package: it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters, class: Artist">
|
||||
<meta name="generator" content="javadoc/ClassWriter">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../../resource-files/jquery-ui.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../../resource-files/stylesheet.css">
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/script.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/jquery-3.7.1.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/jquery-ui.min.js"></script>
|
||||
</head>
|
||||
<body class="class-declaration-page">
|
||||
<script type="text/javascript">const pathtoroot = "../../../../../../../../../";
|
||||
loadScripts(document, 'script');</script>
|
||||
<noscript>
|
||||
<div>JavaScript is disabled on your browser.</div>
|
||||
</noscript>
|
||||
<header role="banner">
|
||||
<nav role="navigation">
|
||||
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||
<div class="top-nav" id="navbar-top">
|
||||
<div class="nav-content">
|
||||
<div class="nav-menu-button"><button id="navbar-toggle-button" aria-controls="navbar-top" aria-expanded="false" aria-label="Toggle navigation links"><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span></button></div>
|
||||
<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="../../../../../../../../module-summary.html">Module</a></li>
|
||||
<li class="nav-bar-cell1-rev">Class</li>
|
||||
<li><a href="package-tree.html">Tree</a></li>
|
||||
<li><a href="../../../../../../../../../index-files/index-1.html">Index</a></li>
|
||||
<li><a href="../../../../../../../../../search.html">Search</a></li>
|
||||
<li><a href="../../../../../../../../../help-doc.html#class">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sub-nav">
|
||||
<div class="nav-content">
|
||||
<ol class="sub-nav-list">
|
||||
<li><a href="../../../../../../../../module-summary.html">it.polimi.ingsw.gc14</a></li>
|
||||
<li><a href="package-summary.html">it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters</a></li>
|
||||
<li><a href="Artist.html" class="current-selection">Artist</a></li>
|
||||
</ol>
|
||||
<div class="nav-list-search"><input type="text" id="search-input" disabled placeholder="Search documentation (type /)" aria-label="Search in documentation" autocomplete="off" spellcheck="false"><input type="reset" id="reset-search" disabled value="Reset"></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<span class="skip-nav" id="skip-navbar-top"></span></nav>
|
||||
</header>
|
||||
<div class="main-grid">
|
||||
<nav role="navigation" class="toc" aria-label="Table of contents">
|
||||
<div class="toc-header">Contents <input type="text" class="filter-input" disabled placeholder="Filter contents (type .)" aria-label="Filter table of contents" autocomplete="off" spellcheck="false"><input type="reset" class="reset-filter" disabled tabindex="-1" value="Reset"></div>
|
||||
<ol class="toc-list" tabindex="-1">
|
||||
<li><a href="#" tabindex="0">Description</a></li>
|
||||
<li><a href="#constructor-summary" tabindex="0">Constructor Summary</a></li>
|
||||
<li><a href="#method-summary" tabindex="0">Method Summary</a></li>
|
||||
<li><a href="#constructor-detail" tabindex="0">Constructor Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#%3Cinit%3E(int)" tabindex="0">Artist(int)</a></li>
|
||||
<li><a href="#%3Cinit%3E(int,int)" tabindex="0">Artist(int, int)</a></li>
|
||||
<li><a href="#%3Cinit%3E(java.lang.String,int)" tabindex="0">Artist(String, int)</a></li>
|
||||
<li><a href="#%3Cinit%3E(java.lang.String,int,int)" tabindex="0">Artist(String, int, int)</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
<li><a href="#method-detail" tabindex="0">Method Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#clone()" tabindex="0">clone()</a></li>
|
||||
<li><a href="#insert(it.polimi.ingsw.gc14.Model.Player)" tabindex="0">insert(Player)</a></li>
|
||||
<li><a href="#toStringPlayer()" tabindex="0">toStringPlayer()</a></li>
|
||||
<li><a href="#toStringBoard()" tabindex="0">toStringBoard()</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
</ol>
|
||||
<button class="hide-sidebar"><span>Hide sidebar </span><img src="../../../../../../../../../resource-files/left.svg" alt="Hide sidebar"></button><button class="show-sidebar"><img src="../../../../../../../../../resource-files/right.svg" alt="Show sidebar"><span> Show sidebar</span></button></nav>
|
||||
<main role="main">
|
||||
<!-- ======== START OF CLASS DATA ======== -->
|
||||
<div class="header">
|
||||
<h1 title="Class Artist" class="title">Class Artist</h1>
|
||||
</div>
|
||||
<div class="inheritance" title="Inheritance Tree"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">java.lang.Object</a>
|
||||
<div class="inheritance"><a href="../../../PlayableCard.html" title="class in it.polimi.ingsw.gc14.Model">it.polimi.ingsw.gc14.Model.PlayableCard</a>
|
||||
<div class="inheritance"><a href="../../TribeCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">it.polimi.ingsw.gc14.Model.Cards.TribeCard</a>
|
||||
<div class="inheritance"><a href="../Character.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">it.polimi.ingsw.gc14.Model.Cards.TribeCards.Character</a>
|
||||
<div class="inheritance">it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters.Artist</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<section class="class-description" id="class-description">
|
||||
<dl class="notes">
|
||||
<dt>All Implemented Interfaces:</dt>
|
||||
<dd><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/Serializable.html" title="class or interface in java.io" class="external-link">Serializable</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Cloneable.html" title="class or interface in java.lang" class="external-link">Cloneable</a></code></dd>
|
||||
</dl>
|
||||
<hr>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="type-signature"><span class="modifiers">public class </span><span class="element-name type-name-label">Artist</span>
|
||||
<span class="extends-implements">extends <a href="../Character.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">Character</a></span></div>
|
||||
<div class="block">Represents an Artist character card.
|
||||
|
||||
<p>An Artist is a specific type of <a href="../Character.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards"><code>Character</code></a> initialized with
|
||||
<a href="../CharacterType.html#ARTIST"><code>CharacterType.ARTIST</code></a>.</div>
|
||||
<dl class="notes">
|
||||
<dt>See Also:</dt>
|
||||
<dd>
|
||||
<ul class="tag-list">
|
||||
<li><a href="../../../../../../../../../serialized-form.html#it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters.Artist">Serialized Form</a></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
<section class="summary">
|
||||
<ul class="summary-list">
|
||||
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
||||
<li>
|
||||
<section class="constructor-summary" id="constructor-summary">
|
||||
<h2>Constructor Summary</h2>
|
||||
<div class="caption"><span>Constructors</span></div>
|
||||
<div class="summary-table two-column-summary">
|
||||
<div class="table-header col-first">Constructor</div>
|
||||
<div class="table-header col-last">Description</div>
|
||||
<div class="col-constructor-name even-row-color"><code><a href="#%3Cinit%3E(int)" class="member-name-link">Artist</a><wbr>(int Era)</code></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">Creates an Artist character card with the specified era.</div>
|
||||
</div>
|
||||
<div class="col-constructor-name odd-row-color"><code><a href="#%3Cinit%3E(int,int)" class="member-name-link">Artist</a><wbr>(int Era,
|
||||
int nMin)</code></div>
|
||||
<div class="col-last odd-row-color">
|
||||
<div class="block">Creates an Artist character card with the specified Era and minimum number of players required to play it.</div>
|
||||
</div>
|
||||
<div class="col-constructor-name even-row-color"><code><a href="#%3Cinit%3E(java.lang.String,int)" class="member-name-link">Artist</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> idIMG,
|
||||
int Era)</code></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">Creates an Artist character card with the specified image id and era.</div>
|
||||
</div>
|
||||
<div class="col-constructor-name odd-row-color"><code><a href="#%3Cinit%3E(java.lang.String,int,int)" class="member-name-link">Artist</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> idIMG,
|
||||
int Era,
|
||||
int nMin)</code></div>
|
||||
<div class="col-last odd-row-color">
|
||||
<div class="block">Creates an Artist character card with the specified image id, era and
|
||||
minimum number of players required to play it.</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ========== METHOD SUMMARY =========== -->
|
||||
<li>
|
||||
<section class="method-summary" id="method-summary">
|
||||
<h2>Method Summary</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">All Methods</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">Instance Methods</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">Concrete Methods</button></div>
|
||||
<div id="method-summary-table.tabpanel" role="tabpanel" aria-labelledby="method-summary-table-tab0">
|
||||
<div class="summary-table three-column-summary">
|
||||
<div class="table-header col-first">Modifier and Type</div>
|
||||
<div class="table-header col-second">Method</div>
|
||||
<div class="table-header col-last">Description</div>
|
||||
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="../Character.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">Character</a></code></div>
|
||||
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#clone()" class="member-name-link">clone</a>()</code></div>
|
||||
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Creates and returns a copy of this Artist card.</div>
|
||||
</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="#insert(it.polimi.ingsw.gc14.Model.Player)" class="member-name-link">insert</a><wbr>(<a href="../../../Player.html" title="class in it.polimi.ingsw.gc14.Model">Player</a> player)</code></div>
|
||||
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Inserts this Artist card into the specified player's Artist collection
|
||||
and applies any building effects triggered by character set completion.</div>
|
||||
</div>
|
||||
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
|
||||
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#toStringBoard()" class="member-name-link">toStringBoard</a>()</code></div>
|
||||
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Returns the representation shown on the board (offer track cards).</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
|
||||
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#toStringPlayer()" class="member-name-link">toStringPlayer</a>()</code></div>
|
||||
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Returns the compact representation shown in the player hand panel.</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-it.polimi.ingsw.gc14.Model.Cards.TribeCards.Character">Methods inherited from class <a href="../Character.html#method-summary" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">Character</a></h3>
|
||||
<code><a href="../Character.html#getType()" title="getType()">getType</a></code></div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-it.polimi.ingsw.gc14.Model.Cards.TribeCard">Methods inherited from class <a href="../../TribeCard.html#method-summary" title="class in it.polimi.ingsw.gc14.Model.Cards">TribeCard</a></h3>
|
||||
<code><a href="../../TribeCard.html#getNMin()" title="getNMin()">getNMin</a>, <a href="../../TribeCard.html#isEventCard()" title="isEventCard()">isEventCard</a></code></div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-it.polimi.ingsw.gc14.Model.PlayableCard">Methods inherited from class <a href="../../../PlayableCard.html#method-summary" title="class in it.polimi.ingsw.gc14.Model">PlayableCard</a></h3>
|
||||
<code><a href="../../../PlayableCard.html#getEra()" title="getEra()">getEra</a>, <a href="../../../PlayableCard.html#getIdIMG()" title="getIdIMG()">getIdIMG</a></code></div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-java.lang.Object">Methods inherited from class <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#method-summary" title="class or interface in java.lang" class="external-link">Object</a></h3>
|
||||
<code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang" class="external-link">equals</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()" title="class or interface in java.lang" class="external-link">finalize</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()" title="class or interface in java.lang" class="external-link">getClass</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()" title="class or interface in java.lang" class="external-link">hashCode</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()" title="class or interface in java.lang" class="external-link">notify</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()" title="class or interface in java.lang" class="external-link">notifyAll</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()" title="class or interface in java.lang" class="external-link">toString</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)" title="class or interface in java.lang" class="external-link">wait</a></code></div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<section class="details">
|
||||
<ul class="details-list">
|
||||
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
||||
<li>
|
||||
<section class="constructor-details" id="constructor-detail">
|
||||
<h2>Constructor Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="<init>(int)">
|
||||
<h3>Artist</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="element-name">Artist</span><wbr><span class="parameters">(int Era)</span></div>
|
||||
<div class="block">Creates an Artist character card with the specified era.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>Era</code> - the era of the Artist card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="<init>(int,int)">
|
||||
<h3>Artist</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="element-name">Artist</span><wbr><span class="parameters">(int Era,
|
||||
int nMin)</span></div>
|
||||
<div class="block">Creates an Artist character card with the specified Era and minimum number of players required to play it.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>Era</code> - the era of the Artist card.</dd>
|
||||
<dd><code>nMin</code> - the minimum number of players required for the card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="<init>(java.lang.String,int)">
|
||||
<h3>Artist</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="element-name">Artist</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> idIMG,
|
||||
int Era)</span></div>
|
||||
<div class="block">Creates an Artist character card with the specified image id and era.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>idIMG</code> - the image identifier of the Artist card.</dd>
|
||||
<dd><code>Era</code> - the era of the Artist card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="<init>(java.lang.String,int,int)">
|
||||
<h3>Artist</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="element-name">Artist</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> idIMG,
|
||||
int Era,
|
||||
int nMin)</span></div>
|
||||
<div class="block">Creates an Artist character card with the specified image id, era and
|
||||
minimum number of players required to play it.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>idIMG</code> - the image identifier of the Artist card.</dd>
|
||||
<dd><code>Era</code> - the era of the Artist card.</dd>
|
||||
<dd><code>nMin</code> - the minimum number of players required for the card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ============ METHOD DETAIL ========== -->
|
||||
<li>
|
||||
<section class="method-details" id="method-detail">
|
||||
<h2>Method Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="clone()">
|
||||
<h3>clone</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="../Character.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">Character</a></span> <span class="element-name">clone</span>()</div>
|
||||
<div class="block">Creates and returns a copy of this Artist card.</div>
|
||||
<dl class="notes">
|
||||
<dt>Specified by:</dt>
|
||||
<dd><code><a href="../Character.html#clone()">clone</a></code> in class <code><a href="../Character.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">Character</a></code></dd>
|
||||
<dt>Returns:</dt>
|
||||
<dd>a clone of this Artist card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="insert(it.polimi.ingsw.gc14.Model.Player)">
|
||||
<h3>insert</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">insert</span><wbr><span class="parameters">(<a href="../../../Player.html" title="class in it.polimi.ingsw.gc14.Model">Player</a> player)</span></div>
|
||||
<div class="block">Inserts this Artist card into the specified player's Artist collection
|
||||
and applies any building effects triggered by character set completion.</div>
|
||||
<dl class="notes">
|
||||
<dt>Specified by:</dt>
|
||||
<dd><code><a href="../Character.html#insert(it.polimi.ingsw.gc14.Model.Player)">insert</a></code> in class <code><a href="../Character.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">Character</a></code></dd>
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>player</code> - the player who receives the card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="toStringPlayer()">
|
||||
<h3>toStringPlayer</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span> <span class="element-name">toStringPlayer</span>()</div>
|
||||
<div class="block"><span class="description-from-type-label">Description copied from class: <code><a href="../../../PlayableCard.html#toStringPlayer()">PlayableCard</a></code></span></div>
|
||||
<div class="block">Returns the compact representation shown in the player hand panel.</div>
|
||||
<dl class="notes">
|
||||
<dt>Specified by:</dt>
|
||||
<dd><code><a href="../../../PlayableCard.html#toStringPlayer()">toStringPlayer</a></code> in class <code><a href="../../../PlayableCard.html" title="class in it.polimi.ingsw.gc14.Model">PlayableCard</a></code></dd>
|
||||
<dt>Returns:</dt>
|
||||
<dd>the player-hand string representation of this card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="toStringBoard()">
|
||||
<h3>toStringBoard</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span> <span class="element-name">toStringBoard</span>()</div>
|
||||
<div class="block"><span class="description-from-type-label">Description copied from class: <code><a href="../../../PlayableCard.html#toStringBoard()">PlayableCard</a></code></span></div>
|
||||
<div class="block">Returns the representation shown on the board (offer track cards).</div>
|
||||
<dl class="notes">
|
||||
<dt>Specified by:</dt>
|
||||
<dd><code><a href="../../../PlayableCard.html#toStringBoard()">toStringBoard</a></code> in class <code><a href="../../../PlayableCard.html" title="class in it.polimi.ingsw.gc14.Model">PlayableCard</a></code></dd>
|
||||
<dt>Returns:</dt>
|
||||
<dd>the board string representation of this card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<!-- ========= END OF CLASS DATA ========= -->
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
+483
@@ -0,0 +1,483 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="it">
|
||||
<head>
|
||||
<!-- Generated by javadoc (25) on Fri Jun 19 23:05:23 CEST 2026 -->
|
||||
<title>Builder</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="2026-06-19">
|
||||
<meta name="description" content="declaration: module: it.polimi.ingsw.gc14, package: it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters, class: Builder">
|
||||
<meta name="generator" content="javadoc/ClassWriter">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../../resource-files/jquery-ui.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../../resource-files/stylesheet.css">
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/script.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/jquery-3.7.1.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/jquery-ui.min.js"></script>
|
||||
</head>
|
||||
<body class="class-declaration-page">
|
||||
<script type="text/javascript">const pathtoroot = "../../../../../../../../../";
|
||||
loadScripts(document, 'script');</script>
|
||||
<noscript>
|
||||
<div>JavaScript is disabled on your browser.</div>
|
||||
</noscript>
|
||||
<header role="banner">
|
||||
<nav role="navigation">
|
||||
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||
<div class="top-nav" id="navbar-top">
|
||||
<div class="nav-content">
|
||||
<div class="nav-menu-button"><button id="navbar-toggle-button" aria-controls="navbar-top" aria-expanded="false" aria-label="Toggle navigation links"><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span></button></div>
|
||||
<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="../../../../../../../../module-summary.html">Module</a></li>
|
||||
<li class="nav-bar-cell1-rev">Class</li>
|
||||
<li><a href="package-tree.html">Tree</a></li>
|
||||
<li><a href="../../../../../../../../../index-files/index-1.html">Index</a></li>
|
||||
<li><a href="../../../../../../../../../search.html">Search</a></li>
|
||||
<li><a href="../../../../../../../../../help-doc.html#class">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sub-nav">
|
||||
<div class="nav-content">
|
||||
<ol class="sub-nav-list">
|
||||
<li><a href="../../../../../../../../module-summary.html">it.polimi.ingsw.gc14</a></li>
|
||||
<li><a href="package-summary.html">it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters</a></li>
|
||||
<li><a href="Builder.html" class="current-selection">Builder</a></li>
|
||||
</ol>
|
||||
<div class="nav-list-search"><input type="text" id="search-input" disabled placeholder="Search documentation (type /)" aria-label="Search in documentation" autocomplete="off" spellcheck="false"><input type="reset" id="reset-search" disabled value="Reset"></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<span class="skip-nav" id="skip-navbar-top"></span></nav>
|
||||
</header>
|
||||
<div class="main-grid">
|
||||
<nav role="navigation" class="toc" aria-label="Table of contents">
|
||||
<div class="toc-header">Contents <input type="text" class="filter-input" disabled placeholder="Filter contents (type .)" aria-label="Filter table of contents" autocomplete="off" spellcheck="false"><input type="reset" class="reset-filter" disabled tabindex="-1" value="Reset"></div>
|
||||
<ol class="toc-list" tabindex="-1">
|
||||
<li><a href="#" tabindex="0">Description</a></li>
|
||||
<li><a href="#field-summary" tabindex="0">Field Summary</a></li>
|
||||
<li><a href="#constructor-summary" tabindex="0">Constructor Summary</a></li>
|
||||
<li><a href="#method-summary" tabindex="0">Method Summary</a></li>
|
||||
<li><a href="#field-detail" tabindex="0">Field Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#reductionValue" tabindex="0">reductionValue</a></li>
|
||||
<li><a href="#prestigeValue" tabindex="0">prestigeValue</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
<li><a href="#constructor-detail" tabindex="0">Constructor Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#%3Cinit%3E(int,int,int)" tabindex="0">Builder(int, int, int)</a></li>
|
||||
<li><a href="#%3Cinit%3E(int,int,int,int)" tabindex="0">Builder(int, int, int, int)</a></li>
|
||||
<li><a href="#%3Cinit%3E(java.lang.String,int,int,int)" tabindex="0">Builder(String, int, int, int)</a></li>
|
||||
<li><a href="#%3Cinit%3E(java.lang.String,int,int,int,int)" tabindex="0">Builder(String, int, int, int, int)</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
<li><a href="#method-detail" tabindex="0">Method Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#getReductionValue()" tabindex="0">getReductionValue()</a></li>
|
||||
<li><a href="#getPrestigeValue()" tabindex="0">getPrestigeValue()</a></li>
|
||||
<li><a href="#toStringPlayer()" tabindex="0">toStringPlayer()</a></li>
|
||||
<li><a href="#toStringBoard()" tabindex="0">toStringBoard()</a></li>
|
||||
<li><a href="#clone()" tabindex="0">clone()</a></li>
|
||||
<li><a href="#insert(it.polimi.ingsw.gc14.Model.Player)" tabindex="0">insert(Player)</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
</ol>
|
||||
<button class="hide-sidebar"><span>Hide sidebar </span><img src="../../../../../../../../../resource-files/left.svg" alt="Hide sidebar"></button><button class="show-sidebar"><img src="../../../../../../../../../resource-files/right.svg" alt="Show sidebar"><span> Show sidebar</span></button></nav>
|
||||
<main role="main">
|
||||
<!-- ======== START OF CLASS DATA ======== -->
|
||||
<div class="header">
|
||||
<h1 title="Class Builder" class="title">Class Builder</h1>
|
||||
</div>
|
||||
<div class="inheritance" title="Inheritance Tree"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">java.lang.Object</a>
|
||||
<div class="inheritance"><a href="../../../PlayableCard.html" title="class in it.polimi.ingsw.gc14.Model">it.polimi.ingsw.gc14.Model.PlayableCard</a>
|
||||
<div class="inheritance"><a href="../../TribeCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">it.polimi.ingsw.gc14.Model.Cards.TribeCard</a>
|
||||
<div class="inheritance"><a href="../Character.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">it.polimi.ingsw.gc14.Model.Cards.TribeCards.Character</a>
|
||||
<div class="inheritance">it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters.Builder</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<section class="class-description" id="class-description">
|
||||
<dl class="notes">
|
||||
<dt>All Implemented Interfaces:</dt>
|
||||
<dd><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/Serializable.html" title="class or interface in java.io" class="external-link">Serializable</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Cloneable.html" title="class or interface in java.lang" class="external-link">Cloneable</a></code></dd>
|
||||
</dl>
|
||||
<hr>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="type-signature"><span class="modifiers">public class </span><span class="element-name type-name-label">Builder</span>
|
||||
<span class="extends-implements">extends <a href="../Character.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">Character</a></span></div>
|
||||
<div class="block">Represents a Builder character card.
|
||||
|
||||
<p>A Builder is a specific type of <a href="../Character.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards"><code>Character</code></a> that provides
|
||||
a reduction value when buying building cards.</div>
|
||||
<dl class="notes">
|
||||
<dt>See Also:</dt>
|
||||
<dd>
|
||||
<ul class="tag-list">
|
||||
<li><a href="../../../../../../../../../serialized-form.html#it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters.Builder">Serialized Form</a></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
<section class="summary">
|
||||
<ul class="summary-list">
|
||||
<!-- =========== FIELD SUMMARY =========== -->
|
||||
<li>
|
||||
<section class="field-summary" id="field-summary">
|
||||
<h2>Field Summary</h2>
|
||||
<div class="caption"><span>Fields</span></div>
|
||||
<div class="summary-table three-column-summary">
|
||||
<div class="table-header col-first">Modifier and Type</div>
|
||||
<div class="table-header col-second">Field</div>
|
||||
<div class="table-header col-last">Description</div>
|
||||
<div class="col-first even-row-color"><code>private final int</code></div>
|
||||
<div class="col-second even-row-color"><code><a href="#prestigeValue" class="member-name-link">prestigeValue</a></code></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">The prestige value provided by this Builder card.</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color"><code>private final int</code></div>
|
||||
<div class="col-second odd-row-color"><code><a href="#reductionValue" class="member-name-link">reductionValue</a></code></div>
|
||||
<div class="col-last odd-row-color">
|
||||
<div class="block">The reduction value provided by this Builder card.</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
||||
<li>
|
||||
<section class="constructor-summary" id="constructor-summary">
|
||||
<h2>Constructor Summary</h2>
|
||||
<div class="caption"><span>Constructors</span></div>
|
||||
<div class="summary-table two-column-summary">
|
||||
<div class="table-header col-first">Constructor</div>
|
||||
<div class="table-header col-last">Description</div>
|
||||
<div class="col-constructor-name even-row-color"><code><a href="#%3Cinit%3E(int,int,int)" class="member-name-link">Builder</a><wbr>(int Era,
|
||||
int reductionValue,
|
||||
int prestigeValue)</code></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">Creates a Builder character card with the specified era, reduction value,
|
||||
and prestige value.</div>
|
||||
</div>
|
||||
<div class="col-constructor-name odd-row-color"><code><a href="#%3Cinit%3E(int,int,int,int)" class="member-name-link">Builder</a><wbr>(int Era,
|
||||
int reductionValue,
|
||||
int prestigeValue,
|
||||
int nMin)</code></div>
|
||||
<div class="col-last odd-row-color">
|
||||
<div class="block">Creates a Builder character card with the specified era, reduction value,
|
||||
prestige value, and minimum number of players.</div>
|
||||
</div>
|
||||
<div class="col-constructor-name even-row-color"><code><a href="#%3Cinit%3E(java.lang.String,int,int,int)" class="member-name-link">Builder</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> idIMG,
|
||||
int Era,
|
||||
int reductionValue,
|
||||
int prestigeValue)</code></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">Creates a Builder character card with the specified era, reduction value,
|
||||
and prestige value.</div>
|
||||
</div>
|
||||
<div class="col-constructor-name odd-row-color"><code><a href="#%3Cinit%3E(java.lang.String,int,int,int,int)" class="member-name-link">Builder</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> idIMG,
|
||||
int Era,
|
||||
int reductionValue,
|
||||
int prestigeValue,
|
||||
int nMin)</code></div>
|
||||
<div class="col-last odd-row-color">
|
||||
<div class="block">Creates a Builder character card with the specified era, reduction value,
|
||||
prestige value, and minimum number of players.</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ========== METHOD SUMMARY =========== -->
|
||||
<li>
|
||||
<section class="method-summary" id="method-summary">
|
||||
<h2>Method Summary</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">All Methods</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">Instance Methods</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">Concrete Methods</button></div>
|
||||
<div id="method-summary-table.tabpanel" role="tabpanel" aria-labelledby="method-summary-table-tab0">
|
||||
<div class="summary-table three-column-summary">
|
||||
<div class="table-header col-first">Modifier and Type</div>
|
||||
<div class="table-header col-second">Method</div>
|
||||
<div class="table-header col-last">Description</div>
|
||||
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="../Character.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">Character</a></code></div>
|
||||
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#clone()" class="member-name-link">clone</a>()</code></div>
|
||||
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Creates and returns a copy of this Builder card.</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="#getPrestigeValue()" class="member-name-link">getPrestigeValue</a>()</code></div>
|
||||
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Returns the prestige value of this Builder card.</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="#getReductionValue()" class="member-name-link">getReductionValue</a>()</code></div>
|
||||
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Returns the reduction value of this Builder card.</div>
|
||||
</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="#insert(it.polimi.ingsw.gc14.Model.Player)" class="member-name-link">insert</a><wbr>(<a href="../../../Player.html" title="class in it.polimi.ingsw.gc14.Model">Player</a> player)</code></div>
|
||||
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Inserts this Builder card into the specified player's Builder collection
|
||||
and applies any building effects triggered by character set completion.</div>
|
||||
</div>
|
||||
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
|
||||
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#toStringBoard()" class="member-name-link">toStringBoard</a>()</code></div>
|
||||
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Returns the representation shown on the board (offer track cards).</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
|
||||
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#toStringPlayer()" class="member-name-link">toStringPlayer</a>()</code></div>
|
||||
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Returns the compact representation shown in the player hand panel.</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-it.polimi.ingsw.gc14.Model.Cards.TribeCards.Character">Methods inherited from class <a href="../Character.html#method-summary" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">Character</a></h3>
|
||||
<code><a href="../Character.html#getType()" title="getType()">getType</a></code></div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-it.polimi.ingsw.gc14.Model.Cards.TribeCard">Methods inherited from class <a href="../../TribeCard.html#method-summary" title="class in it.polimi.ingsw.gc14.Model.Cards">TribeCard</a></h3>
|
||||
<code><a href="../../TribeCard.html#getNMin()" title="getNMin()">getNMin</a>, <a href="../../TribeCard.html#isEventCard()" title="isEventCard()">isEventCard</a></code></div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-it.polimi.ingsw.gc14.Model.PlayableCard">Methods inherited from class <a href="../../../PlayableCard.html#method-summary" title="class in it.polimi.ingsw.gc14.Model">PlayableCard</a></h3>
|
||||
<code><a href="../../../PlayableCard.html#getEra()" title="getEra()">getEra</a>, <a href="../../../PlayableCard.html#getIdIMG()" title="getIdIMG()">getIdIMG</a></code></div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-java.lang.Object">Methods inherited from class <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#method-summary" title="class or interface in java.lang" class="external-link">Object</a></h3>
|
||||
<code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang" class="external-link">equals</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()" title="class or interface in java.lang" class="external-link">finalize</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()" title="class or interface in java.lang" class="external-link">getClass</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()" title="class or interface in java.lang" class="external-link">hashCode</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()" title="class or interface in java.lang" class="external-link">notify</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()" title="class or interface in java.lang" class="external-link">notifyAll</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()" title="class or interface in java.lang" class="external-link">toString</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)" title="class or interface 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>Field Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="reductionValue">
|
||||
<h3>reductionValue</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">private final</span> <span class="return-type">int</span> <span class="element-name">reductionValue</span></div>
|
||||
<div class="block">The reduction value provided by this Builder card.</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="prestigeValue">
|
||||
<h3>prestigeValue</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">private final</span> <span class="return-type">int</span> <span class="element-name">prestigeValue</span></div>
|
||||
<div class="block">The prestige value provided by this Builder card.</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
||||
<li>
|
||||
<section class="constructor-details" id="constructor-detail">
|
||||
<h2>Constructor Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="<init>(int,int,int)">
|
||||
<h3>Builder</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="element-name">Builder</span><wbr><span class="parameters">(int Era,
|
||||
int reductionValue,
|
||||
int prestigeValue)</span>
|
||||
throws <span class="exceptions"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a></span></div>
|
||||
<div class="block">Creates a Builder character card with the specified era, reduction value,
|
||||
and prestige value.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>Era</code> - the era of the Builder card.</dd>
|
||||
<dd><code>reductionValue</code> - the reduction value of the Builder card.</dd>
|
||||
<dd><code>prestigeValue</code> - the prestige value of the Builder card.</dd>
|
||||
<dt>Throws:</dt>
|
||||
<dd><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a></code> - if <code>reductionValue < 0</code> or <code>prestigeValue < 0</code>.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="<init>(int,int,int,int)">
|
||||
<h3>Builder</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="element-name">Builder</span><wbr><span class="parameters">(int Era,
|
||||
int reductionValue,
|
||||
int prestigeValue,
|
||||
int nMin)</span>
|
||||
throws <span class="exceptions"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a></span></div>
|
||||
<div class="block">Creates a Builder character card with the specified era, reduction value,
|
||||
prestige value, and minimum number of players.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>Era</code> - the era of the Builder card.</dd>
|
||||
<dd><code>reductionValue</code> - the reduction value of the Builder card.</dd>
|
||||
<dd><code>prestigeValue</code> - the prestige value of the Builder card.</dd>
|
||||
<dd><code>nMin</code> - the minimum number of players required for the card.</dd>
|
||||
<dt>Throws:</dt>
|
||||
<dd><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a></code> - if <code>reductionValue < 0</code> or <code>prestigeValue < 0</code>.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="<init>(java.lang.String,int,int,int)">
|
||||
<h3>Builder</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="element-name">Builder</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> idIMG,
|
||||
int Era,
|
||||
int reductionValue,
|
||||
int prestigeValue)</span>
|
||||
throws <span class="exceptions"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a></span></div>
|
||||
<div class="block">Creates a Builder character card with the specified era, reduction value,
|
||||
and prestige value.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>idIMG</code> - the image identifier of the Builder card.</dd>
|
||||
<dd><code>Era</code> - the era of the Builder card.</dd>
|
||||
<dd><code>reductionValue</code> - the reduction value of the Builder card.</dd>
|
||||
<dd><code>prestigeValue</code> - the prestige value of the Builder card.</dd>
|
||||
<dt>Throws:</dt>
|
||||
<dd><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a></code> - if <code>reductionValue < 0</code> or <code>prestigeValue < 0</code>.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="<init>(java.lang.String,int,int,int,int)">
|
||||
<h3>Builder</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="element-name">Builder</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> idIMG,
|
||||
int Era,
|
||||
int reductionValue,
|
||||
int prestigeValue,
|
||||
int nMin)</span>
|
||||
throws <span class="exceptions"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a></span></div>
|
||||
<div class="block">Creates a Builder character card with the specified era, reduction value,
|
||||
prestige value, and minimum number of players.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>idIMG</code> - the image identifier of the Builder card.</dd>
|
||||
<dd><code>Era</code> - the era of the Builder card.</dd>
|
||||
<dd><code>reductionValue</code> - the reduction value of the Builder card.</dd>
|
||||
<dd><code>prestigeValue</code> - the prestige value of the Builder card.</dd>
|
||||
<dd><code>nMin</code> - the minimum number of players required for the card.</dd>
|
||||
<dt>Throws:</dt>
|
||||
<dd><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a></code> - if <code>reductionValue < 0</code> or <code>prestigeValue < 0</code>.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ============ METHOD DETAIL ========== -->
|
||||
<li>
|
||||
<section class="method-details" id="method-detail">
|
||||
<h2>Method Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="getReductionValue()">
|
||||
<h3>getReductionValue</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type">int</span> <span class="element-name">getReductionValue</span>()</div>
|
||||
<div class="block">Returns the reduction value of this Builder card.</div>
|
||||
<dl class="notes">
|
||||
<dt>Returns:</dt>
|
||||
<dd>the reduction value of this Builder card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="getPrestigeValue()">
|
||||
<h3>getPrestigeValue</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type">int</span> <span class="element-name">getPrestigeValue</span>()</div>
|
||||
<div class="block">Returns the prestige value of this Builder card.</div>
|
||||
<dl class="notes">
|
||||
<dt>Returns:</dt>
|
||||
<dd>the prestige value of this Builder card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="toStringPlayer()">
|
||||
<h3>toStringPlayer</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span> <span class="element-name">toStringPlayer</span>()</div>
|
||||
<div class="block"><span class="description-from-type-label">Description copied from class: <code><a href="../../../PlayableCard.html#toStringPlayer()">PlayableCard</a></code></span></div>
|
||||
<div class="block">Returns the compact representation shown in the player hand panel.</div>
|
||||
<dl class="notes">
|
||||
<dt>Specified by:</dt>
|
||||
<dd><code><a href="../../../PlayableCard.html#toStringPlayer()">toStringPlayer</a></code> in class <code><a href="../../../PlayableCard.html" title="class in it.polimi.ingsw.gc14.Model">PlayableCard</a></code></dd>
|
||||
<dt>Returns:</dt>
|
||||
<dd>the player-hand string representation of this card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="toStringBoard()">
|
||||
<h3>toStringBoard</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span> <span class="element-name">toStringBoard</span>()</div>
|
||||
<div class="block"><span class="description-from-type-label">Description copied from class: <code><a href="../../../PlayableCard.html#toStringBoard()">PlayableCard</a></code></span></div>
|
||||
<div class="block">Returns the representation shown on the board (offer track cards).</div>
|
||||
<dl class="notes">
|
||||
<dt>Specified by:</dt>
|
||||
<dd><code><a href="../../../PlayableCard.html#toStringBoard()">toStringBoard</a></code> in class <code><a href="../../../PlayableCard.html" title="class in it.polimi.ingsw.gc14.Model">PlayableCard</a></code></dd>
|
||||
<dt>Returns:</dt>
|
||||
<dd>the board string representation of this card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="clone()">
|
||||
<h3>clone</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="../Character.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">Character</a></span> <span class="element-name">clone</span>()</div>
|
||||
<div class="block">Creates and returns a copy of this Builder card.</div>
|
||||
<dl class="notes">
|
||||
<dt>Specified by:</dt>
|
||||
<dd><code><a href="../Character.html#clone()">clone</a></code> in class <code><a href="../Character.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">Character</a></code></dd>
|
||||
<dt>Returns:</dt>
|
||||
<dd>a clone of this Builder card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="insert(it.polimi.ingsw.gc14.Model.Player)">
|
||||
<h3>insert</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">insert</span><wbr><span class="parameters">(<a href="../../../Player.html" title="class in it.polimi.ingsw.gc14.Model">Player</a> player)</span></div>
|
||||
<div class="block">Inserts this Builder card into the specified player's Builder collection
|
||||
and applies any building effects triggered by character set completion.</div>
|
||||
<dl class="notes">
|
||||
<dt>Specified by:</dt>
|
||||
<dd><code><a href="../Character.html#insert(it.polimi.ingsw.gc14.Model.Player)">insert</a></code> in class <code><a href="../Character.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">Character</a></code></dd>
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>player</code> - the player who receives the card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<!-- ========= END OF CLASS DATA ========= -->
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
+348
@@ -0,0 +1,348 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="it">
|
||||
<head>
|
||||
<!-- Generated by javadoc (25) on Fri Jun 19 23:05:23 CEST 2026 -->
|
||||
<title>Gatherer</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="2026-06-19">
|
||||
<meta name="description" content="declaration: module: it.polimi.ingsw.gc14, package: it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters, class: Gatherer">
|
||||
<meta name="generator" content="javadoc/ClassWriter">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../../resource-files/jquery-ui.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../../resource-files/stylesheet.css">
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/script.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/jquery-3.7.1.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/jquery-ui.min.js"></script>
|
||||
</head>
|
||||
<body class="class-declaration-page">
|
||||
<script type="text/javascript">const pathtoroot = "../../../../../../../../../";
|
||||
loadScripts(document, 'script');</script>
|
||||
<noscript>
|
||||
<div>JavaScript is disabled on your browser.</div>
|
||||
</noscript>
|
||||
<header role="banner">
|
||||
<nav role="navigation">
|
||||
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||
<div class="top-nav" id="navbar-top">
|
||||
<div class="nav-content">
|
||||
<div class="nav-menu-button"><button id="navbar-toggle-button" aria-controls="navbar-top" aria-expanded="false" aria-label="Toggle navigation links"><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span></button></div>
|
||||
<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="../../../../../../../../module-summary.html">Module</a></li>
|
||||
<li class="nav-bar-cell1-rev">Class</li>
|
||||
<li><a href="package-tree.html">Tree</a></li>
|
||||
<li><a href="../../../../../../../../../index-files/index-1.html">Index</a></li>
|
||||
<li><a href="../../../../../../../../../search.html">Search</a></li>
|
||||
<li><a href="../../../../../../../../../help-doc.html#class">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sub-nav">
|
||||
<div class="nav-content">
|
||||
<ol class="sub-nav-list">
|
||||
<li><a href="../../../../../../../../module-summary.html">it.polimi.ingsw.gc14</a></li>
|
||||
<li><a href="package-summary.html">it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters</a></li>
|
||||
<li><a href="Gatherer.html" class="current-selection">Gatherer</a></li>
|
||||
</ol>
|
||||
<div class="nav-list-search"><input type="text" id="search-input" disabled placeholder="Search documentation (type /)" aria-label="Search in documentation" autocomplete="off" spellcheck="false"><input type="reset" id="reset-search" disabled value="Reset"></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<span class="skip-nav" id="skip-navbar-top"></span></nav>
|
||||
</header>
|
||||
<div class="main-grid">
|
||||
<nav role="navigation" class="toc" aria-label="Table of contents">
|
||||
<div class="toc-header">Contents <input type="text" class="filter-input" disabled placeholder="Filter contents (type .)" aria-label="Filter table of contents" autocomplete="off" spellcheck="false"><input type="reset" class="reset-filter" disabled tabindex="-1" value="Reset"></div>
|
||||
<ol class="toc-list" tabindex="-1">
|
||||
<li><a href="#" tabindex="0">Description</a></li>
|
||||
<li><a href="#constructor-summary" tabindex="0">Constructor Summary</a></li>
|
||||
<li><a href="#method-summary" tabindex="0">Method Summary</a></li>
|
||||
<li><a href="#constructor-detail" tabindex="0">Constructor Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#%3Cinit%3E(int)" tabindex="0">Gatherer(int)</a></li>
|
||||
<li><a href="#%3Cinit%3E(int,int)" tabindex="0">Gatherer(int, int)</a></li>
|
||||
<li><a href="#%3Cinit%3E(java.lang.String,int)" tabindex="0">Gatherer(String, int)</a></li>
|
||||
<li><a href="#%3Cinit%3E(java.lang.String,int,int)" tabindex="0">Gatherer(String, int, int)</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
<li><a href="#method-detail" tabindex="0">Method Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#clone()" tabindex="0">clone()</a></li>
|
||||
<li><a href="#insert(it.polimi.ingsw.gc14.Model.Player)" tabindex="0">insert(Player)</a></li>
|
||||
<li><a href="#toStringPlayer()" tabindex="0">toStringPlayer()</a></li>
|
||||
<li><a href="#toStringBoard()" tabindex="0">toStringBoard()</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
</ol>
|
||||
<button class="hide-sidebar"><span>Hide sidebar </span><img src="../../../../../../../../../resource-files/left.svg" alt="Hide sidebar"></button><button class="show-sidebar"><img src="../../../../../../../../../resource-files/right.svg" alt="Show sidebar"><span> Show sidebar</span></button></nav>
|
||||
<main role="main">
|
||||
<!-- ======== START OF CLASS DATA ======== -->
|
||||
<div class="header">
|
||||
<h1 title="Class Gatherer" class="title">Class Gatherer</h1>
|
||||
</div>
|
||||
<div class="inheritance" title="Inheritance Tree"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">java.lang.Object</a>
|
||||
<div class="inheritance"><a href="../../../PlayableCard.html" title="class in it.polimi.ingsw.gc14.Model">it.polimi.ingsw.gc14.Model.PlayableCard</a>
|
||||
<div class="inheritance"><a href="../../TribeCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">it.polimi.ingsw.gc14.Model.Cards.TribeCard</a>
|
||||
<div class="inheritance"><a href="../Character.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">it.polimi.ingsw.gc14.Model.Cards.TribeCards.Character</a>
|
||||
<div class="inheritance">it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters.Gatherer</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<section class="class-description" id="class-description">
|
||||
<dl class="notes">
|
||||
<dt>All Implemented Interfaces:</dt>
|
||||
<dd><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/Serializable.html" title="class or interface in java.io" class="external-link">Serializable</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Cloneable.html" title="class or interface in java.lang" class="external-link">Cloneable</a></code></dd>
|
||||
</dl>
|
||||
<hr>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="type-signature"><span class="modifiers">public class </span><span class="element-name type-name-label">Gatherer</span>
|
||||
<span class="extends-implements">extends <a href="../Character.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">Character</a></span></div>
|
||||
<div class="block">Represents a Gatherer character card.
|
||||
|
||||
<p>A Gatherer is a specific type of <a href="../Character.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards"><code>Character</code></a> initialized with
|
||||
<a href="../CharacterType.html#GATHERER"><code>CharacterType.GATHERER</code></a>.</div>
|
||||
<dl class="notes">
|
||||
<dt>See Also:</dt>
|
||||
<dd>
|
||||
<ul class="tag-list">
|
||||
<li><a href="../../../../../../../../../serialized-form.html#it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters.Gatherer">Serialized Form</a></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
<section class="summary">
|
||||
<ul class="summary-list">
|
||||
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
||||
<li>
|
||||
<section class="constructor-summary" id="constructor-summary">
|
||||
<h2>Constructor Summary</h2>
|
||||
<div class="caption"><span>Constructors</span></div>
|
||||
<div class="summary-table two-column-summary">
|
||||
<div class="table-header col-first">Constructor</div>
|
||||
<div class="table-header col-last">Description</div>
|
||||
<div class="col-constructor-name even-row-color"><code><a href="#%3Cinit%3E(int)" class="member-name-link">Gatherer</a><wbr>(int Era)</code></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">Creates a Gatherer character card with the specified era.</div>
|
||||
</div>
|
||||
<div class="col-constructor-name odd-row-color"><code><a href="#%3Cinit%3E(int,int)" class="member-name-link">Gatherer</a><wbr>(int Era,
|
||||
int nMin)</code></div>
|
||||
<div class="col-last odd-row-color">
|
||||
<div class="block">Creates a Gatherer character card with the specified era and minimum number of players.</div>
|
||||
</div>
|
||||
<div class="col-constructor-name even-row-color"><code><a href="#%3Cinit%3E(java.lang.String,int)" class="member-name-link">Gatherer</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> idIMG,
|
||||
int Era)</code></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">Creates a Gatherer character card with the specified image id and era.</div>
|
||||
</div>
|
||||
<div class="col-constructor-name odd-row-color"><code><a href="#%3Cinit%3E(java.lang.String,int,int)" class="member-name-link">Gatherer</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> idIMG,
|
||||
int Era,
|
||||
int nMin)</code></div>
|
||||
<div class="col-last odd-row-color">
|
||||
<div class="block">Creates a Gatherer character card with the specified image id, era and
|
||||
minimum number of players.</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ========== METHOD SUMMARY =========== -->
|
||||
<li>
|
||||
<section class="method-summary" id="method-summary">
|
||||
<h2>Method Summary</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">All Methods</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">Instance Methods</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">Concrete Methods</button></div>
|
||||
<div id="method-summary-table.tabpanel" role="tabpanel" aria-labelledby="method-summary-table-tab0">
|
||||
<div class="summary-table three-column-summary">
|
||||
<div class="table-header col-first">Modifier and Type</div>
|
||||
<div class="table-header col-second">Method</div>
|
||||
<div class="table-header col-last">Description</div>
|
||||
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="../Character.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">Character</a></code></div>
|
||||
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#clone()" class="member-name-link">clone</a>()</code></div>
|
||||
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Creates and returns a copy of this Gatherer card.</div>
|
||||
</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="#insert(it.polimi.ingsw.gc14.Model.Player)" class="member-name-link">insert</a><wbr>(<a href="../../../Player.html" title="class in it.polimi.ingsw.gc14.Model">Player</a> player)</code></div>
|
||||
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Inserts this Gatherer card into the specified player's Gatherer collection
|
||||
and applies any building effects triggered by character set completion.</div>
|
||||
</div>
|
||||
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
|
||||
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#toStringBoard()" class="member-name-link">toStringBoard</a>()</code></div>
|
||||
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Returns the representation shown on the board (offer track cards).</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
|
||||
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#toStringPlayer()" class="member-name-link">toStringPlayer</a>()</code></div>
|
||||
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Returns the compact representation shown in the player hand panel.</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-it.polimi.ingsw.gc14.Model.Cards.TribeCards.Character">Methods inherited from class <a href="../Character.html#method-summary" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">Character</a></h3>
|
||||
<code><a href="../Character.html#getType()" title="getType()">getType</a></code></div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-it.polimi.ingsw.gc14.Model.Cards.TribeCard">Methods inherited from class <a href="../../TribeCard.html#method-summary" title="class in it.polimi.ingsw.gc14.Model.Cards">TribeCard</a></h3>
|
||||
<code><a href="../../TribeCard.html#getNMin()" title="getNMin()">getNMin</a>, <a href="../../TribeCard.html#isEventCard()" title="isEventCard()">isEventCard</a></code></div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-it.polimi.ingsw.gc14.Model.PlayableCard">Methods inherited from class <a href="../../../PlayableCard.html#method-summary" title="class in it.polimi.ingsw.gc14.Model">PlayableCard</a></h3>
|
||||
<code><a href="../../../PlayableCard.html#getEra()" title="getEra()">getEra</a>, <a href="../../../PlayableCard.html#getIdIMG()" title="getIdIMG()">getIdIMG</a></code></div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-java.lang.Object">Methods inherited from class <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#method-summary" title="class or interface in java.lang" class="external-link">Object</a></h3>
|
||||
<code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang" class="external-link">equals</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()" title="class or interface in java.lang" class="external-link">finalize</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()" title="class or interface in java.lang" class="external-link">getClass</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()" title="class or interface in java.lang" class="external-link">hashCode</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()" title="class or interface in java.lang" class="external-link">notify</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()" title="class or interface in java.lang" class="external-link">notifyAll</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()" title="class or interface in java.lang" class="external-link">toString</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)" title="class or interface in java.lang" class="external-link">wait</a></code></div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<section class="details">
|
||||
<ul class="details-list">
|
||||
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
||||
<li>
|
||||
<section class="constructor-details" id="constructor-detail">
|
||||
<h2>Constructor Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="<init>(int)">
|
||||
<h3>Gatherer</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="element-name">Gatherer</span><wbr><span class="parameters">(int Era)</span></div>
|
||||
<div class="block">Creates a Gatherer character card with the specified era.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>Era</code> - the era of the Gatherer card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="<init>(int,int)">
|
||||
<h3>Gatherer</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="element-name">Gatherer</span><wbr><span class="parameters">(int Era,
|
||||
int nMin)</span></div>
|
||||
<div class="block">Creates a Gatherer character card with the specified era and minimum number of players.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>Era</code> - the era of the Gatherer card.</dd>
|
||||
<dd><code>nMin</code> - the minimum number of players required for the card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="<init>(java.lang.String,int)">
|
||||
<h3>Gatherer</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="element-name">Gatherer</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> idIMG,
|
||||
int Era)</span></div>
|
||||
<div class="block">Creates a Gatherer character card with the specified image id and era.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>idIMG</code> - the image identifier of the Gatherer card.</dd>
|
||||
<dd><code>Era</code> - the era of the Gatherer card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="<init>(java.lang.String,int,int)">
|
||||
<h3>Gatherer</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="element-name">Gatherer</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> idIMG,
|
||||
int Era,
|
||||
int nMin)</span></div>
|
||||
<div class="block">Creates a Gatherer character card with the specified image id, era and
|
||||
minimum number of players.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>idIMG</code> - the image identifier of the Gatherer card.</dd>
|
||||
<dd><code>Era</code> - the era of the Gatherer card.</dd>
|
||||
<dd><code>nMin</code> - the minimum number of players required for the card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ============ METHOD DETAIL ========== -->
|
||||
<li>
|
||||
<section class="method-details" id="method-detail">
|
||||
<h2>Method Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="clone()">
|
||||
<h3>clone</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="../Character.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">Character</a></span> <span class="element-name">clone</span>()</div>
|
||||
<div class="block">Creates and returns a copy of this Gatherer card.</div>
|
||||
<dl class="notes">
|
||||
<dt>Specified by:</dt>
|
||||
<dd><code><a href="../Character.html#clone()">clone</a></code> in class <code><a href="../Character.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">Character</a></code></dd>
|
||||
<dt>Returns:</dt>
|
||||
<dd>a clone of this Gatherer card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="insert(it.polimi.ingsw.gc14.Model.Player)">
|
||||
<h3>insert</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">insert</span><wbr><span class="parameters">(<a href="../../../Player.html" title="class in it.polimi.ingsw.gc14.Model">Player</a> player)</span></div>
|
||||
<div class="block">Inserts this Gatherer card into the specified player's Gatherer collection
|
||||
and applies any building effects triggered by character set completion.</div>
|
||||
<dl class="notes">
|
||||
<dt>Specified by:</dt>
|
||||
<dd><code><a href="../Character.html#insert(it.polimi.ingsw.gc14.Model.Player)">insert</a></code> in class <code><a href="../Character.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">Character</a></code></dd>
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>player</code> - the player who receives the card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="toStringPlayer()">
|
||||
<h3>toStringPlayer</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span> <span class="element-name">toStringPlayer</span>()</div>
|
||||
<div class="block"><span class="description-from-type-label">Description copied from class: <code><a href="../../../PlayableCard.html#toStringPlayer()">PlayableCard</a></code></span></div>
|
||||
<div class="block">Returns the compact representation shown in the player hand panel.</div>
|
||||
<dl class="notes">
|
||||
<dt>Specified by:</dt>
|
||||
<dd><code><a href="../../../PlayableCard.html#toStringPlayer()">toStringPlayer</a></code> in class <code><a href="../../../PlayableCard.html" title="class in it.polimi.ingsw.gc14.Model">PlayableCard</a></code></dd>
|
||||
<dt>Returns:</dt>
|
||||
<dd>the player-hand string representation of this card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="toStringBoard()">
|
||||
<h3>toStringBoard</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span> <span class="element-name">toStringBoard</span>()</div>
|
||||
<div class="block"><span class="description-from-type-label">Description copied from class: <code><a href="../../../PlayableCard.html#toStringBoard()">PlayableCard</a></code></span></div>
|
||||
<div class="block">Returns the representation shown on the board (offer track cards).</div>
|
||||
<dl class="notes">
|
||||
<dt>Specified by:</dt>
|
||||
<dd><code><a href="../../../PlayableCard.html#toStringBoard()">toStringBoard</a></code> in class <code><a href="../../../PlayableCard.html" title="class in it.polimi.ingsw.gc14.Model">PlayableCard</a></code></dd>
|
||||
<dt>Returns:</dt>
|
||||
<dd>the board string representation of this card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<!-- ========= END OF CLASS DATA ========= -->
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
+425
@@ -0,0 +1,425 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="it">
|
||||
<head>
|
||||
<!-- Generated by javadoc (25) on Fri Jun 19 23:05:23 CEST 2026 -->
|
||||
<title>Hunter</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="2026-06-19">
|
||||
<meta name="description" content="declaration: module: it.polimi.ingsw.gc14, package: it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters, class: Hunter">
|
||||
<meta name="generator" content="javadoc/ClassWriter">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../../resource-files/jquery-ui.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../../resource-files/stylesheet.css">
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/script.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/jquery-3.7.1.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/jquery-ui.min.js"></script>
|
||||
</head>
|
||||
<body class="class-declaration-page">
|
||||
<script type="text/javascript">const pathtoroot = "../../../../../../../../../";
|
||||
loadScripts(document, 'script');</script>
|
||||
<noscript>
|
||||
<div>JavaScript is disabled on your browser.</div>
|
||||
</noscript>
|
||||
<header role="banner">
|
||||
<nav role="navigation">
|
||||
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||
<div class="top-nav" id="navbar-top">
|
||||
<div class="nav-content">
|
||||
<div class="nav-menu-button"><button id="navbar-toggle-button" aria-controls="navbar-top" aria-expanded="false" aria-label="Toggle navigation links"><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span></button></div>
|
||||
<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="../../../../../../../../module-summary.html">Module</a></li>
|
||||
<li class="nav-bar-cell1-rev">Class</li>
|
||||
<li><a href="package-tree.html">Tree</a></li>
|
||||
<li><a href="../../../../../../../../../index-files/index-1.html">Index</a></li>
|
||||
<li><a href="../../../../../../../../../search.html">Search</a></li>
|
||||
<li><a href="../../../../../../../../../help-doc.html#class">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sub-nav">
|
||||
<div class="nav-content">
|
||||
<ol class="sub-nav-list">
|
||||
<li><a href="../../../../../../../../module-summary.html">it.polimi.ingsw.gc14</a></li>
|
||||
<li><a href="package-summary.html">it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters</a></li>
|
||||
<li><a href="Hunter.html" class="current-selection">Hunter</a></li>
|
||||
</ol>
|
||||
<div class="nav-list-search"><input type="text" id="search-input" disabled placeholder="Search documentation (type /)" aria-label="Search in documentation" autocomplete="off" spellcheck="false"><input type="reset" id="reset-search" disabled value="Reset"></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<span class="skip-nav" id="skip-navbar-top"></span></nav>
|
||||
</header>
|
||||
<div class="main-grid">
|
||||
<nav role="navigation" class="toc" aria-label="Table of contents">
|
||||
<div class="toc-header">Contents <input type="text" class="filter-input" disabled placeholder="Filter contents (type .)" aria-label="Filter table of contents" autocomplete="off" spellcheck="false"><input type="reset" class="reset-filter" disabled tabindex="-1" value="Reset"></div>
|
||||
<ol class="toc-list" tabindex="-1">
|
||||
<li><a href="#" tabindex="0">Description</a></li>
|
||||
<li><a href="#field-summary" tabindex="0">Field Summary</a></li>
|
||||
<li><a href="#constructor-summary" tabindex="0">Constructor Summary</a></li>
|
||||
<li><a href="#method-summary" tabindex="0">Method Summary</a></li>
|
||||
<li><a href="#field-detail" tabindex="0">Field Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#icon" tabindex="0">icon</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
<li><a href="#constructor-detail" tabindex="0">Constructor Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#%3Cinit%3E(int,boolean)" tabindex="0">Hunter(int, boolean)</a></li>
|
||||
<li><a href="#%3Cinit%3E(int,boolean,int)" tabindex="0">Hunter(int, boolean, int)</a></li>
|
||||
<li><a href="#%3Cinit%3E(java.lang.String,int,boolean)" tabindex="0">Hunter(String, int, boolean)</a></li>
|
||||
<li><a href="#%3Cinit%3E(java.lang.String,int,boolean,int)" tabindex="0">Hunter(String, int, boolean, int)</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
<li><a href="#method-detail" tabindex="0">Method Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#getIcon()" tabindex="0">getIcon()</a></li>
|
||||
<li><a href="#toStringPlayer()" tabindex="0">toStringPlayer()</a></li>
|
||||
<li><a href="#toStringBoard()" tabindex="0">toStringBoard()</a></li>
|
||||
<li><a href="#clone()" tabindex="0">clone()</a></li>
|
||||
<li><a href="#insert(it.polimi.ingsw.gc14.Model.Player)" tabindex="0">insert(Player)</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
</ol>
|
||||
<button class="hide-sidebar"><span>Hide sidebar </span><img src="../../../../../../../../../resource-files/left.svg" alt="Hide sidebar"></button><button class="show-sidebar"><img src="../../../../../../../../../resource-files/right.svg" alt="Show sidebar"><span> Show sidebar</span></button></nav>
|
||||
<main role="main">
|
||||
<!-- ======== START OF CLASS DATA ======== -->
|
||||
<div class="header">
|
||||
<h1 title="Class Hunter" class="title">Class Hunter</h1>
|
||||
</div>
|
||||
<div class="inheritance" title="Inheritance Tree"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">java.lang.Object</a>
|
||||
<div class="inheritance"><a href="../../../PlayableCard.html" title="class in it.polimi.ingsw.gc14.Model">it.polimi.ingsw.gc14.Model.PlayableCard</a>
|
||||
<div class="inheritance"><a href="../../TribeCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">it.polimi.ingsw.gc14.Model.Cards.TribeCard</a>
|
||||
<div class="inheritance"><a href="../Character.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">it.polimi.ingsw.gc14.Model.Cards.TribeCards.Character</a>
|
||||
<div class="inheritance">it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters.Hunter</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<section class="class-description" id="class-description">
|
||||
<dl class="notes">
|
||||
<dt>All Implemented Interfaces:</dt>
|
||||
<dd><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/Serializable.html" title="class or interface in java.io" class="external-link">Serializable</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Cloneable.html" title="class or interface in java.lang" class="external-link">Cloneable</a></code></dd>
|
||||
</dl>
|
||||
<hr>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="type-signature"><span class="modifiers">public class </span><span class="element-name type-name-label">Hunter</span>
|
||||
<span class="extends-implements">extends <a href="../Character.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">Character</a></span></div>
|
||||
<div class="block">Represents a Hunter character card.
|
||||
|
||||
<p>A Hunter is a specific type of <a href="../Character.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards"><code>Character</code></a> initialized with
|
||||
<a href="../CharacterType.html#HUNTER"><code>CharacterType.HUNTER</code></a>.</div>
|
||||
<dl class="notes">
|
||||
<dt>See Also:</dt>
|
||||
<dd>
|
||||
<ul class="tag-list">
|
||||
<li><a href="../../../../../../../../../serialized-form.html#it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters.Hunter">Serialized Form</a></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
<section class="summary">
|
||||
<ul class="summary-list">
|
||||
<!-- =========== FIELD SUMMARY =========== -->
|
||||
<li>
|
||||
<section class="field-summary" id="field-summary">
|
||||
<h2>Field Summary</h2>
|
||||
<div class="caption"><span>Fields</span></div>
|
||||
<div class="summary-table three-column-summary">
|
||||
<div class="table-header col-first">Modifier and Type</div>
|
||||
<div class="table-header col-second">Field</div>
|
||||
<div class="table-header col-last">Description</div>
|
||||
<div class="col-first even-row-color"><code>private final boolean</code></div>
|
||||
<div class="col-second even-row-color"><code><a href="#icon" class="member-name-link">icon</a></code></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">Describes whether the <code>Hunter Icon</code> is present or not.</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
||||
<li>
|
||||
<section class="constructor-summary" id="constructor-summary">
|
||||
<h2>Constructor Summary</h2>
|
||||
<div class="caption"><span>Constructors</span></div>
|
||||
<div class="summary-table two-column-summary">
|
||||
<div class="table-header col-first">Constructor</div>
|
||||
<div class="table-header col-last">Description</div>
|
||||
<div class="col-constructor-name even-row-color"><code><a href="#%3Cinit%3E(int,boolean)" class="member-name-link">Hunter</a><wbr>(int Era,
|
||||
boolean icon)</code></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">Creates a Hunter character card with the specified era and icon value.</div>
|
||||
</div>
|
||||
<div class="col-constructor-name odd-row-color"><code><a href="#%3Cinit%3E(int,boolean,int)" class="member-name-link">Hunter</a><wbr>(int Era,
|
||||
boolean icon,
|
||||
int nMin)</code></div>
|
||||
<div class="col-last odd-row-color">
|
||||
<div class="block">Creates a Hunter character card with the specified era, icon value,
|
||||
and minimum number of players.</div>
|
||||
</div>
|
||||
<div class="col-constructor-name even-row-color"><code><a href="#%3Cinit%3E(java.lang.String,int,boolean)" class="member-name-link">Hunter</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> idIMG,
|
||||
int Era,
|
||||
boolean icon)</code></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">Creates a Hunter character card with the specified image id, era and icon value.</div>
|
||||
</div>
|
||||
<div class="col-constructor-name odd-row-color"><code><a href="#%3Cinit%3E(java.lang.String,int,boolean,int)" class="member-name-link">Hunter</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> idIMG,
|
||||
int Era,
|
||||
boolean icon,
|
||||
int nMin)</code></div>
|
||||
<div class="col-last odd-row-color">
|
||||
<div class="block">Creates a Hunter character card with the specified image id, era, icon value,
|
||||
and minimum number of players.</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ========== METHOD SUMMARY =========== -->
|
||||
<li>
|
||||
<section class="method-summary" id="method-summary">
|
||||
<h2>Method Summary</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">All Methods</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">Instance Methods</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">Concrete Methods</button></div>
|
||||
<div id="method-summary-table.tabpanel" role="tabpanel" aria-labelledby="method-summary-table-tab0">
|
||||
<div class="summary-table three-column-summary">
|
||||
<div class="table-header col-first">Modifier and Type</div>
|
||||
<div class="table-header col-second">Method</div>
|
||||
<div class="table-header col-last">Description</div>
|
||||
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="../Character.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">Character</a></code></div>
|
||||
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#clone()" class="member-name-link">clone</a>()</code></div>
|
||||
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Creates and returns a copy of this Hunter card.</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>boolean</code></div>
|
||||
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getIcon()" class="member-name-link">getIcon</a>()</code></div>
|
||||
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Returns whether this Hunter card has the icon.</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="#insert(it.polimi.ingsw.gc14.Model.Player)" class="member-name-link">insert</a><wbr>(<a href="../../../Player.html" title="class in it.polimi.ingsw.gc14.Model">Player</a> player)</code></div>
|
||||
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Inserts this Hunter card into the specified player's Hunter collection.</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
|
||||
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#toStringBoard()" class="member-name-link">toStringBoard</a>()</code></div>
|
||||
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Returns the representation shown on the board (offer track cards).</div>
|
||||
</div>
|
||||
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
|
||||
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#toStringPlayer()" class="member-name-link">toStringPlayer</a>()</code></div>
|
||||
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Returns the compact representation shown in the player hand panel.</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-it.polimi.ingsw.gc14.Model.Cards.TribeCards.Character">Methods inherited from class <a href="../Character.html#method-summary" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">Character</a></h3>
|
||||
<code><a href="../Character.html#getType()" title="getType()">getType</a></code></div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-it.polimi.ingsw.gc14.Model.Cards.TribeCard">Methods inherited from class <a href="../../TribeCard.html#method-summary" title="class in it.polimi.ingsw.gc14.Model.Cards">TribeCard</a></h3>
|
||||
<code><a href="../../TribeCard.html#getNMin()" title="getNMin()">getNMin</a>, <a href="../../TribeCard.html#isEventCard()" title="isEventCard()">isEventCard</a></code></div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-it.polimi.ingsw.gc14.Model.PlayableCard">Methods inherited from class <a href="../../../PlayableCard.html#method-summary" title="class in it.polimi.ingsw.gc14.Model">PlayableCard</a></h3>
|
||||
<code><a href="../../../PlayableCard.html#getEra()" title="getEra()">getEra</a>, <a href="../../../PlayableCard.html#getIdIMG()" title="getIdIMG()">getIdIMG</a></code></div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-java.lang.Object">Methods inherited from class <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#method-summary" title="class or interface in java.lang" class="external-link">Object</a></h3>
|
||||
<code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang" class="external-link">equals</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()" title="class or interface in java.lang" class="external-link">finalize</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()" title="class or interface in java.lang" class="external-link">getClass</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()" title="class or interface in java.lang" class="external-link">hashCode</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()" title="class or interface in java.lang" class="external-link">notify</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()" title="class or interface in java.lang" class="external-link">notifyAll</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()" title="class or interface in java.lang" class="external-link">toString</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)" title="class or interface 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>Field Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="icon">
|
||||
<h3>icon</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">private final</span> <span class="return-type">boolean</span> <span class="element-name">icon</span></div>
|
||||
<div class="block">Describes whether the <code>Hunter Icon</code> is present or not. Whenever an
|
||||
<code>Hunter</code> with an <code>Hunter Icon</code> is added to the tribe, 1 <code>Food token</code> is awarded for each Hunter in the tribe
|
||||
(with or without an icon).</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
||||
<li>
|
||||
<section class="constructor-details" id="constructor-detail">
|
||||
<h2>Constructor Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="<init>(int,boolean)">
|
||||
<h3>Hunter</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="element-name">Hunter</span><wbr><span class="parameters">(int Era,
|
||||
boolean icon)</span></div>
|
||||
<div class="block">Creates a Hunter character card with the specified era and icon value.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>Era</code> - the era of the Hunter card.</dd>
|
||||
<dd><code>icon</code> - the icon value of the Hunter card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="<init>(int,boolean,int)">
|
||||
<h3>Hunter</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="element-name">Hunter</span><wbr><span class="parameters">(int Era,
|
||||
boolean icon,
|
||||
int nMin)</span></div>
|
||||
<div class="block">Creates a Hunter character card with the specified era, icon value,
|
||||
and minimum number of players.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>Era</code> - the era of the Hunter card.</dd>
|
||||
<dd><code>icon</code> - the icon value of the Hunter card.</dd>
|
||||
<dd><code>nMin</code> - the minimum number of players required for the card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="<init>(java.lang.String,int,boolean)">
|
||||
<h3>Hunter</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="element-name">Hunter</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> idIMG,
|
||||
int Era,
|
||||
boolean icon)</span></div>
|
||||
<div class="block">Creates a Hunter character card with the specified image id, era and icon value.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>idIMG</code> - the image identifier of the Hunter card.</dd>
|
||||
<dd><code>Era</code> - the era of the Hunter card.</dd>
|
||||
<dd><code>icon</code> - the icon value of the Hunter card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="<init>(java.lang.String,int,boolean,int)">
|
||||
<h3>Hunter</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="element-name">Hunter</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> idIMG,
|
||||
int Era,
|
||||
boolean icon,
|
||||
int nMin)</span></div>
|
||||
<div class="block">Creates a Hunter character card with the specified image id, era, icon value,
|
||||
and minimum number of players.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>idIMG</code> - the image identifier of the Hunter card.</dd>
|
||||
<dd><code>Era</code> - the era of the Hunter card.</dd>
|
||||
<dd><code>icon</code> - the icon value of the Hunter card.</dd>
|
||||
<dd><code>nMin</code> - the minimum number of players required for the card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ============ METHOD DETAIL ========== -->
|
||||
<li>
|
||||
<section class="method-details" id="method-detail">
|
||||
<h2>Method Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="getIcon()">
|
||||
<h3>getIcon</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type">boolean</span> <span class="element-name">getIcon</span>()</div>
|
||||
<div class="block">Returns whether this Hunter card has the icon.</div>
|
||||
<dl class="notes">
|
||||
<dt>Returns:</dt>
|
||||
<dd><code>true</code> if this Hunter card has the icon, <code>false</code> otherwise.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="toStringPlayer()">
|
||||
<h3>toStringPlayer</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span> <span class="element-name">toStringPlayer</span>()</div>
|
||||
<div class="block"><span class="description-from-type-label">Description copied from class: <code><a href="../../../PlayableCard.html#toStringPlayer()">PlayableCard</a></code></span></div>
|
||||
<div class="block">Returns the compact representation shown in the player hand panel.</div>
|
||||
<dl class="notes">
|
||||
<dt>Specified by:</dt>
|
||||
<dd><code><a href="../../../PlayableCard.html#toStringPlayer()">toStringPlayer</a></code> in class <code><a href="../../../PlayableCard.html" title="class in it.polimi.ingsw.gc14.Model">PlayableCard</a></code></dd>
|
||||
<dt>Returns:</dt>
|
||||
<dd>the player-hand string representation of this card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="toStringBoard()">
|
||||
<h3>toStringBoard</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span> <span class="element-name">toStringBoard</span>()</div>
|
||||
<div class="block"><span class="description-from-type-label">Description copied from class: <code><a href="../../../PlayableCard.html#toStringBoard()">PlayableCard</a></code></span></div>
|
||||
<div class="block">Returns the representation shown on the board (offer track cards).</div>
|
||||
<dl class="notes">
|
||||
<dt>Specified by:</dt>
|
||||
<dd><code><a href="../../../PlayableCard.html#toStringBoard()">toStringBoard</a></code> in class <code><a href="../../../PlayableCard.html" title="class in it.polimi.ingsw.gc14.Model">PlayableCard</a></code></dd>
|
||||
<dt>Returns:</dt>
|
||||
<dd>the board string representation of this card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="clone()">
|
||||
<h3>clone</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="../Character.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">Character</a></span> <span class="element-name">clone</span>()</div>
|
||||
<div class="block">Creates and returns a copy of this Hunter card.</div>
|
||||
<dl class="notes">
|
||||
<dt>Specified by:</dt>
|
||||
<dd><code><a href="../Character.html#clone()">clone</a></code> in class <code><a href="../Character.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">Character</a></code></dd>
|
||||
<dt>Returns:</dt>
|
||||
<dd>a clone of this Hunter card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="insert(it.polimi.ingsw.gc14.Model.Player)">
|
||||
<h3>insert</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">insert</span><wbr><span class="parameters">(<a href="../../../Player.html" title="class in it.polimi.ingsw.gc14.Model">Player</a> player)</span></div>
|
||||
<div class="block">Inserts this Hunter card into the specified player's Hunter collection.
|
||||
|
||||
<p>If this card has the Hunter icon, the player gains 1 food for each
|
||||
Hunter currently in their tribe. The method also applies any building
|
||||
effects triggered by character set completion.</div>
|
||||
<dl class="notes">
|
||||
<dt>Specified by:</dt>
|
||||
<dd><code><a href="../Character.html#insert(it.polimi.ingsw.gc14.Model.Player)">insert</a></code> in class <code><a href="../Character.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">Character</a></code></dd>
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>player</code> - the player who receives the card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<!-- ========= END OF CLASS DATA ========= -->
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
+434
@@ -0,0 +1,434 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="it">
|
||||
<head>
|
||||
<!-- Generated by javadoc (25) on Fri Jun 19 23:05:23 CEST 2026 -->
|
||||
<title>Inventor</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="2026-06-19">
|
||||
<meta name="description" content="declaration: module: it.polimi.ingsw.gc14, package: it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters, class: Inventor">
|
||||
<meta name="generator" content="javadoc/ClassWriter">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../../resource-files/jquery-ui.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../../resource-files/stylesheet.css">
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/script.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/jquery-3.7.1.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/jquery-ui.min.js"></script>
|
||||
</head>
|
||||
<body class="class-declaration-page">
|
||||
<script type="text/javascript">const pathtoroot = "../../../../../../../../../";
|
||||
loadScripts(document, 'script');</script>
|
||||
<noscript>
|
||||
<div>JavaScript is disabled on your browser.</div>
|
||||
</noscript>
|
||||
<header role="banner">
|
||||
<nav role="navigation">
|
||||
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||
<div class="top-nav" id="navbar-top">
|
||||
<div class="nav-content">
|
||||
<div class="nav-menu-button"><button id="navbar-toggle-button" aria-controls="navbar-top" aria-expanded="false" aria-label="Toggle navigation links"><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span></button></div>
|
||||
<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="../../../../../../../../module-summary.html">Module</a></li>
|
||||
<li class="nav-bar-cell1-rev">Class</li>
|
||||
<li><a href="package-tree.html">Tree</a></li>
|
||||
<li><a href="../../../../../../../../../index-files/index-1.html">Index</a></li>
|
||||
<li><a href="../../../../../../../../../search.html">Search</a></li>
|
||||
<li><a href="../../../../../../../../../help-doc.html#class">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sub-nav">
|
||||
<div class="nav-content">
|
||||
<ol class="sub-nav-list">
|
||||
<li><a href="../../../../../../../../module-summary.html">it.polimi.ingsw.gc14</a></li>
|
||||
<li><a href="package-summary.html">it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters</a></li>
|
||||
<li><a href="Inventor.html" class="current-selection">Inventor</a></li>
|
||||
</ol>
|
||||
<div class="nav-list-search"><input type="text" id="search-input" disabled placeholder="Search documentation (type /)" aria-label="Search in documentation" autocomplete="off" spellcheck="false"><input type="reset" id="reset-search" disabled value="Reset"></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<span class="skip-nav" id="skip-navbar-top"></span></nav>
|
||||
</header>
|
||||
<div class="main-grid">
|
||||
<nav role="navigation" class="toc" aria-label="Table of contents">
|
||||
<div class="toc-header">Contents <input type="text" class="filter-input" disabled placeholder="Filter contents (type .)" aria-label="Filter table of contents" autocomplete="off" spellcheck="false"><input type="reset" class="reset-filter" disabled tabindex="-1" value="Reset"></div>
|
||||
<ol class="toc-list" tabindex="-1">
|
||||
<li><a href="#" tabindex="0">Description</a></li>
|
||||
<li><a href="#field-summary" tabindex="0">Field Summary</a></li>
|
||||
<li><a href="#constructor-summary" tabindex="0">Constructor Summary</a></li>
|
||||
<li><a href="#method-summary" tabindex="0">Method Summary</a></li>
|
||||
<li><a href="#field-detail" tabindex="0">Field Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#icon" tabindex="0">icon</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
<li><a href="#constructor-detail" tabindex="0">Constructor Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#%3Cinit%3E(int,int)" tabindex="0">Inventor(int, int)</a></li>
|
||||
<li><a href="#%3Cinit%3E(int,int,int)" tabindex="0">Inventor(int, int, int)</a></li>
|
||||
<li><a href="#%3Cinit%3E(java.lang.String,int,int)" tabindex="0">Inventor(String, int, int)</a></li>
|
||||
<li><a href="#%3Cinit%3E(java.lang.String,int,int,int)" tabindex="0">Inventor(String, int, int, int)</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
<li><a href="#method-detail" tabindex="0">Method Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#getIcon()" tabindex="0">getIcon()</a></li>
|
||||
<li><a href="#toStringPlayer()" tabindex="0">toStringPlayer()</a></li>
|
||||
<li><a href="#toStringBoard()" tabindex="0">toStringBoard()</a></li>
|
||||
<li><a href="#clone()" tabindex="0">clone()</a></li>
|
||||
<li><a href="#insert(it.polimi.ingsw.gc14.Model.Player)" tabindex="0">insert(Player)</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
</ol>
|
||||
<button class="hide-sidebar"><span>Hide sidebar </span><img src="../../../../../../../../../resource-files/left.svg" alt="Hide sidebar"></button><button class="show-sidebar"><img src="../../../../../../../../../resource-files/right.svg" alt="Show sidebar"><span> Show sidebar</span></button></nav>
|
||||
<main role="main">
|
||||
<!-- ======== START OF CLASS DATA ======== -->
|
||||
<div class="header">
|
||||
<h1 title="Class Inventor" class="title">Class Inventor</h1>
|
||||
</div>
|
||||
<div class="inheritance" title="Inheritance Tree"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">java.lang.Object</a>
|
||||
<div class="inheritance"><a href="../../../PlayableCard.html" title="class in it.polimi.ingsw.gc14.Model">it.polimi.ingsw.gc14.Model.PlayableCard</a>
|
||||
<div class="inheritance"><a href="../../TribeCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">it.polimi.ingsw.gc14.Model.Cards.TribeCard</a>
|
||||
<div class="inheritance"><a href="../Character.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">it.polimi.ingsw.gc14.Model.Cards.TribeCards.Character</a>
|
||||
<div class="inheritance">it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters.Inventor</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<section class="class-description" id="class-description">
|
||||
<dl class="notes">
|
||||
<dt>All Implemented Interfaces:</dt>
|
||||
<dd><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/Serializable.html" title="class or interface in java.io" class="external-link">Serializable</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Cloneable.html" title="class or interface in java.lang" class="external-link">Cloneable</a></code></dd>
|
||||
</dl>
|
||||
<hr>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="type-signature"><span class="modifiers">public class </span><span class="element-name type-name-label">Inventor</span>
|
||||
<span class="extends-implements">extends <a href="../Character.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">Character</a></span></div>
|
||||
<div class="block">Represents an Inventor character card.
|
||||
|
||||
<p>An Inventor is a specific type of <a href="../Character.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards"><code>Character</code></a> initialized with
|
||||
<a href="../CharacterType.html#INVENTOR"><code>CharacterType.INVENTOR</code></a>.</div>
|
||||
<dl class="notes">
|
||||
<dt>See Also:</dt>
|
||||
<dd>
|
||||
<ul class="tag-list">
|
||||
<li><a href="../../../../../../../../../serialized-form.html#it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters.Inventor">Serialized Form</a></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
<section class="summary">
|
||||
<ul class="summary-list">
|
||||
<!-- =========== FIELD SUMMARY =========== -->
|
||||
<li>
|
||||
<section class="field-summary" id="field-summary">
|
||||
<h2>Field Summary</h2>
|
||||
<div class="caption"><span>Fields</span></div>
|
||||
<div class="summary-table three-column-summary">
|
||||
<div class="table-header col-first">Modifier and Type</div>
|
||||
<div class="table-header col-second">Field</div>
|
||||
<div class="table-header col-last">Description</div>
|
||||
<div class="col-first even-row-color"><code>private final int</code></div>
|
||||
<div class="col-second even-row-color"><code><a href="#icon" class="member-name-link">icon</a></code></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">The <code>Icons</code>'s ID.</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
||||
<li>
|
||||
<section class="constructor-summary" id="constructor-summary">
|
||||
<h2>Constructor Summary</h2>
|
||||
<div class="caption"><span>Constructors</span></div>
|
||||
<div class="summary-table two-column-summary">
|
||||
<div class="table-header col-first">Constructor</div>
|
||||
<div class="table-header col-last">Description</div>
|
||||
<div class="col-constructor-name even-row-color"><code><a href="#%3Cinit%3E(int,int)" class="member-name-link">Inventor</a><wbr>(int Era,
|
||||
int icon)</code></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">Creates an Inventor character card with the specified era and icon value.</div>
|
||||
</div>
|
||||
<div class="col-constructor-name odd-row-color"><code><a href="#%3Cinit%3E(int,int,int)" class="member-name-link">Inventor</a><wbr>(int Era,
|
||||
int icon,
|
||||
int nMin)</code></div>
|
||||
<div class="col-last odd-row-color">
|
||||
<div class="block">Creates an Inventor character card with the specified era, icon value,
|
||||
and minimum number of players.</div>
|
||||
</div>
|
||||
<div class="col-constructor-name even-row-color"><code><a href="#%3Cinit%3E(java.lang.String,int,int)" class="member-name-link">Inventor</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> idIMG,
|
||||
int Era,
|
||||
int icon)</code></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">Creates an Inventor character card with the specified image id, era and icon value.</div>
|
||||
</div>
|
||||
<div class="col-constructor-name odd-row-color"><code><a href="#%3Cinit%3E(java.lang.String,int,int,int)" class="member-name-link">Inventor</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> idIMG,
|
||||
int Era,
|
||||
int icon,
|
||||
int nMin)</code></div>
|
||||
<div class="col-last odd-row-color">
|
||||
<div class="block">Creates an Inventor character card with the specified image id, era, icon value,
|
||||
and minimum number of players.</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ========== METHOD SUMMARY =========== -->
|
||||
<li>
|
||||
<section class="method-summary" id="method-summary">
|
||||
<h2>Method Summary</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">All Methods</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">Instance Methods</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">Concrete Methods</button></div>
|
||||
<div id="method-summary-table.tabpanel" role="tabpanel" aria-labelledby="method-summary-table-tab0">
|
||||
<div class="summary-table three-column-summary">
|
||||
<div class="table-header col-first">Modifier and Type</div>
|
||||
<div class="table-header col-second">Method</div>
|
||||
<div class="table-header col-last">Description</div>
|
||||
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="../Character.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">Character</a></code></div>
|
||||
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#clone()" class="member-name-link">clone</a>()</code></div>
|
||||
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Creates and returns a copy of this Inventor card.</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="#getIcon()" class="member-name-link">getIcon</a>()</code></div>
|
||||
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Returns the icon value of this Inventor card.</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="#insert(it.polimi.ingsw.gc14.Model.Player)" class="member-name-link">insert</a><wbr>(<a href="../../../Player.html" title="class in it.polimi.ingsw.gc14.Model">Player</a> player)</code></div>
|
||||
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Inserts this Inventor card into the specified player's Inventor collection.</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
|
||||
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#toStringBoard()" class="member-name-link">toStringBoard</a>()</code></div>
|
||||
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Returns the representation shown on the board (offer track cards).</div>
|
||||
</div>
|
||||
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
|
||||
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#toStringPlayer()" class="member-name-link">toStringPlayer</a>()</code></div>
|
||||
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Returns the compact representation shown in the player hand panel.</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-it.polimi.ingsw.gc14.Model.Cards.TribeCards.Character">Methods inherited from class <a href="../Character.html#method-summary" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">Character</a></h3>
|
||||
<code><a href="../Character.html#getType()" title="getType()">getType</a></code></div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-it.polimi.ingsw.gc14.Model.Cards.TribeCard">Methods inherited from class <a href="../../TribeCard.html#method-summary" title="class in it.polimi.ingsw.gc14.Model.Cards">TribeCard</a></h3>
|
||||
<code><a href="../../TribeCard.html#getNMin()" title="getNMin()">getNMin</a>, <a href="../../TribeCard.html#isEventCard()" title="isEventCard()">isEventCard</a></code></div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-it.polimi.ingsw.gc14.Model.PlayableCard">Methods inherited from class <a href="../../../PlayableCard.html#method-summary" title="class in it.polimi.ingsw.gc14.Model">PlayableCard</a></h3>
|
||||
<code><a href="../../../PlayableCard.html#getEra()" title="getEra()">getEra</a>, <a href="../../../PlayableCard.html#getIdIMG()" title="getIdIMG()">getIdIMG</a></code></div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-java.lang.Object">Methods inherited from class <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#method-summary" title="class or interface in java.lang" class="external-link">Object</a></h3>
|
||||
<code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang" class="external-link">equals</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()" title="class or interface in java.lang" class="external-link">finalize</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()" title="class or interface in java.lang" class="external-link">getClass</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()" title="class or interface in java.lang" class="external-link">hashCode</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()" title="class or interface in java.lang" class="external-link">notify</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()" title="class or interface in java.lang" class="external-link">notifyAll</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()" title="class or interface in java.lang" class="external-link">toString</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)" title="class or interface 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>Field Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="icon">
|
||||
<h3>icon</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">private final</span> <span class="return-type">int</span> <span class="element-name">icon</span></div>
|
||||
<div class="block">The <code>Icons</code>'s ID. There are a total of 10 different Icons.</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
||||
<li>
|
||||
<section class="constructor-details" id="constructor-detail">
|
||||
<h2>Constructor Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="<init>(int,int)">
|
||||
<h3>Inventor</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="element-name">Inventor</span><wbr><span class="parameters">(int Era,
|
||||
int icon)</span>
|
||||
throws <span class="exceptions"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a></span></div>
|
||||
<div class="block">Creates an Inventor character card with the specified era and icon value.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>Era</code> - the era of the Inventor card.</dd>
|
||||
<dd><code>icon</code> - the icon value of the Inventor card.</dd>
|
||||
<dt>Throws:</dt>
|
||||
<dd><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a></code> - if <code>icon < 0</code> or <code>icon > 9</code>.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="<init>(int,int,int)">
|
||||
<h3>Inventor</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="element-name">Inventor</span><wbr><span class="parameters">(int Era,
|
||||
int icon,
|
||||
int nMin)</span>
|
||||
throws <span class="exceptions"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a></span></div>
|
||||
<div class="block">Creates an Inventor character card with the specified era, icon value,
|
||||
and minimum number of players.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>Era</code> - the era of the Inventor card.</dd>
|
||||
<dd><code>icon</code> - the icon value of the Inventor card.</dd>
|
||||
<dd><code>nMin</code> - the minimum number of players required for the card.</dd>
|
||||
<dt>Throws:</dt>
|
||||
<dd><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a></code> - if <code>icon < 0</code> or <code>icon > 9</code>.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="<init>(java.lang.String,int,int)">
|
||||
<h3>Inventor</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="element-name">Inventor</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> idIMG,
|
||||
int Era,
|
||||
int icon)</span>
|
||||
throws <span class="exceptions"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a></span></div>
|
||||
<div class="block">Creates an Inventor character card with the specified image id, era and icon value.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>idIMG</code> - the image identifier of the Inventor card.</dd>
|
||||
<dd><code>Era</code> - the era of the Inventor card.</dd>
|
||||
<dd><code>icon</code> - the icon value of the Inventor card.</dd>
|
||||
<dt>Throws:</dt>
|
||||
<dd><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a></code> - if <code>icon < 0</code> or <code>icon > 9</code>.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="<init>(java.lang.String,int,int,int)">
|
||||
<h3>Inventor</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="element-name">Inventor</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> idIMG,
|
||||
int Era,
|
||||
int icon,
|
||||
int nMin)</span>
|
||||
throws <span class="exceptions"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a></span></div>
|
||||
<div class="block">Creates an Inventor character card with the specified image id, era, icon value,
|
||||
and minimum number of players.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>idIMG</code> - the image identifier of the Inventor card.</dd>
|
||||
<dd><code>Era</code> - the era of the Inventor card.</dd>
|
||||
<dd><code>icon</code> - the icon value of the Inventor card.</dd>
|
||||
<dd><code>nMin</code> - the minimum number of players required for the card.</dd>
|
||||
<dt>Throws:</dt>
|
||||
<dd><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a></code> - if <code>icon < 0</code> or <code>icon > 9</code>.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ============ METHOD DETAIL ========== -->
|
||||
<li>
|
||||
<section class="method-details" id="method-detail">
|
||||
<h2>Method Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="getIcon()">
|
||||
<h3>getIcon</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type">int</span> <span class="element-name">getIcon</span>()</div>
|
||||
<div class="block">Returns the icon value of this Inventor card.</div>
|
||||
<dl class="notes">
|
||||
<dt>Returns:</dt>
|
||||
<dd>the icon value of this Inventor card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="toStringPlayer()">
|
||||
<h3>toStringPlayer</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span> <span class="element-name">toStringPlayer</span>()</div>
|
||||
<div class="block"><span class="description-from-type-label">Description copied from class: <code><a href="../../../PlayableCard.html#toStringPlayer()">PlayableCard</a></code></span></div>
|
||||
<div class="block">Returns the compact representation shown in the player hand panel.</div>
|
||||
<dl class="notes">
|
||||
<dt>Specified by:</dt>
|
||||
<dd><code><a href="../../../PlayableCard.html#toStringPlayer()">toStringPlayer</a></code> in class <code><a href="../../../PlayableCard.html" title="class in it.polimi.ingsw.gc14.Model">PlayableCard</a></code></dd>
|
||||
<dt>Returns:</dt>
|
||||
<dd>the player-hand string representation of this card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="toStringBoard()">
|
||||
<h3>toStringBoard</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span> <span class="element-name">toStringBoard</span>()</div>
|
||||
<div class="block"><span class="description-from-type-label">Description copied from class: <code><a href="../../../PlayableCard.html#toStringBoard()">PlayableCard</a></code></span></div>
|
||||
<div class="block">Returns the representation shown on the board (offer track cards).</div>
|
||||
<dl class="notes">
|
||||
<dt>Specified by:</dt>
|
||||
<dd><code><a href="../../../PlayableCard.html#toStringBoard()">toStringBoard</a></code> in class <code><a href="../../../PlayableCard.html" title="class in it.polimi.ingsw.gc14.Model">PlayableCard</a></code></dd>
|
||||
<dt>Returns:</dt>
|
||||
<dd>the board string representation of this card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="clone()">
|
||||
<h3>clone</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="../Character.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">Character</a></span> <span class="element-name">clone</span>()</div>
|
||||
<div class="block">Creates and returns a copy of this Inventor card.</div>
|
||||
<dl class="notes">
|
||||
<dt>Specified by:</dt>
|
||||
<dd><code><a href="../Character.html#clone()">clone</a></code> in class <code><a href="../Character.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">Character</a></code></dd>
|
||||
<dt>Returns:</dt>
|
||||
<dd>a clone of this Inventor card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="insert(it.polimi.ingsw.gc14.Model.Player)">
|
||||
<h3>insert</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">insert</span><wbr><span class="parameters">(<a href="../../../Player.html" title="class in it.polimi.ingsw.gc14.Model">Player</a> player)</span></div>
|
||||
<div class="block">Inserts this Inventor card into the specified player's Inventor collection.
|
||||
|
||||
<p>The method also applies the building effects related to inventor pairs
|
||||
and any building effects triggered by character set completion.</div>
|
||||
<dl class="notes">
|
||||
<dt>Specified by:</dt>
|
||||
<dd><code><a href="../Character.html#insert(it.polimi.ingsw.gc14.Model.Player)">insert</a></code> in class <code><a href="../Character.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">Character</a></code></dd>
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>player</code> - the player who receives the card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<!-- ========= END OF CLASS DATA ========= -->
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
+425
@@ -0,0 +1,425 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="it">
|
||||
<head>
|
||||
<!-- Generated by javadoc (25) on Fri Jun 19 23:05:23 CEST 2026 -->
|
||||
<title>Shaman</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="2026-06-19">
|
||||
<meta name="description" content="declaration: module: it.polimi.ingsw.gc14, package: it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters, class: Shaman">
|
||||
<meta name="generator" content="javadoc/ClassWriter">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../../resource-files/jquery-ui.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../../resource-files/stylesheet.css">
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/script.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/jquery-3.7.1.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/jquery-ui.min.js"></script>
|
||||
</head>
|
||||
<body class="class-declaration-page">
|
||||
<script type="text/javascript">const pathtoroot = "../../../../../../../../../";
|
||||
loadScripts(document, 'script');</script>
|
||||
<noscript>
|
||||
<div>JavaScript is disabled on your browser.</div>
|
||||
</noscript>
|
||||
<header role="banner">
|
||||
<nav role="navigation">
|
||||
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||
<div class="top-nav" id="navbar-top">
|
||||
<div class="nav-content">
|
||||
<div class="nav-menu-button"><button id="navbar-toggle-button" aria-controls="navbar-top" aria-expanded="false" aria-label="Toggle navigation links"><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span></button></div>
|
||||
<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="../../../../../../../../module-summary.html">Module</a></li>
|
||||
<li class="nav-bar-cell1-rev">Class</li>
|
||||
<li><a href="package-tree.html">Tree</a></li>
|
||||
<li><a href="../../../../../../../../../index-files/index-1.html">Index</a></li>
|
||||
<li><a href="../../../../../../../../../search.html">Search</a></li>
|
||||
<li><a href="../../../../../../../../../help-doc.html#class">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sub-nav">
|
||||
<div class="nav-content">
|
||||
<ol class="sub-nav-list">
|
||||
<li><a href="../../../../../../../../module-summary.html">it.polimi.ingsw.gc14</a></li>
|
||||
<li><a href="package-summary.html">it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters</a></li>
|
||||
<li><a href="Shaman.html" class="current-selection">Shaman</a></li>
|
||||
</ol>
|
||||
<div class="nav-list-search"><input type="text" id="search-input" disabled placeholder="Search documentation (type /)" aria-label="Search in documentation" autocomplete="off" spellcheck="false"><input type="reset" id="reset-search" disabled value="Reset"></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<span class="skip-nav" id="skip-navbar-top"></span></nav>
|
||||
</header>
|
||||
<div class="main-grid">
|
||||
<nav role="navigation" class="toc" aria-label="Table of contents">
|
||||
<div class="toc-header">Contents <input type="text" class="filter-input" disabled placeholder="Filter contents (type .)" aria-label="Filter table of contents" autocomplete="off" spellcheck="false"><input type="reset" class="reset-filter" disabled tabindex="-1" value="Reset"></div>
|
||||
<ol class="toc-list" tabindex="-1">
|
||||
<li><a href="#" tabindex="0">Description</a></li>
|
||||
<li><a href="#field-summary" tabindex="0">Field Summary</a></li>
|
||||
<li><a href="#constructor-summary" tabindex="0">Constructor Summary</a></li>
|
||||
<li><a href="#method-summary" tabindex="0">Method Summary</a></li>
|
||||
<li><a href="#field-detail" tabindex="0">Field Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#icon" tabindex="0">icon</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
<li><a href="#constructor-detail" tabindex="0">Constructor Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#%3Cinit%3E(int,int)" tabindex="0">Shaman(int, int)</a></li>
|
||||
<li><a href="#%3Cinit%3E(int,int,int)" tabindex="0">Shaman(int, int, int)</a></li>
|
||||
<li><a href="#%3Cinit%3E(java.lang.String,int,int)" tabindex="0">Shaman(String, int, int)</a></li>
|
||||
<li><a href="#%3Cinit%3E(java.lang.String,int,int,int)" tabindex="0">Shaman(String, int, int, int)</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
<li><a href="#method-detail" tabindex="0">Method Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#getIcon()" tabindex="0">getIcon()</a></li>
|
||||
<li><a href="#toStringPlayer()" tabindex="0">toStringPlayer()</a></li>
|
||||
<li><a href="#toStringBoard()" tabindex="0">toStringBoard()</a></li>
|
||||
<li><a href="#clone()" tabindex="0">clone()</a></li>
|
||||
<li><a href="#insert(it.polimi.ingsw.gc14.Model.Player)" tabindex="0">insert(Player)</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
</ol>
|
||||
<button class="hide-sidebar"><span>Hide sidebar </span><img src="../../../../../../../../../resource-files/left.svg" alt="Hide sidebar"></button><button class="show-sidebar"><img src="../../../../../../../../../resource-files/right.svg" alt="Show sidebar"><span> Show sidebar</span></button></nav>
|
||||
<main role="main">
|
||||
<!-- ======== START OF CLASS DATA ======== -->
|
||||
<div class="header">
|
||||
<h1 title="Class Shaman" class="title">Class Shaman</h1>
|
||||
</div>
|
||||
<div class="inheritance" title="Inheritance Tree"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">java.lang.Object</a>
|
||||
<div class="inheritance"><a href="../../../PlayableCard.html" title="class in it.polimi.ingsw.gc14.Model">it.polimi.ingsw.gc14.Model.PlayableCard</a>
|
||||
<div class="inheritance"><a href="../../TribeCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">it.polimi.ingsw.gc14.Model.Cards.TribeCard</a>
|
||||
<div class="inheritance"><a href="../Character.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">it.polimi.ingsw.gc14.Model.Cards.TribeCards.Character</a>
|
||||
<div class="inheritance">it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters.Shaman</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<section class="class-description" id="class-description">
|
||||
<dl class="notes">
|
||||
<dt>All Implemented Interfaces:</dt>
|
||||
<dd><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/Serializable.html" title="class or interface in java.io" class="external-link">Serializable</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Cloneable.html" title="class or interface in java.lang" class="external-link">Cloneable</a></code></dd>
|
||||
</dl>
|
||||
<hr>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="type-signature"><span class="modifiers">public class </span><span class="element-name type-name-label">Shaman</span>
|
||||
<span class="extends-implements">extends <a href="../Character.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">Character</a></span></div>
|
||||
<div class="block">Represents a Shaman character card.
|
||||
|
||||
<p>A Shaman is a specific type of <a href="../Character.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards"><code>Character</code></a> initialized with
|
||||
<a href="../CharacterType.html#SHAMAN"><code>CharacterType.SHAMAN</code></a>.</div>
|
||||
<dl class="notes">
|
||||
<dt>See Also:</dt>
|
||||
<dd>
|
||||
<ul class="tag-list">
|
||||
<li><a href="../../../../../../../../../serialized-form.html#it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters.Shaman">Serialized Form</a></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
<section class="summary">
|
||||
<ul class="summary-list">
|
||||
<!-- =========== FIELD SUMMARY =========== -->
|
||||
<li>
|
||||
<section class="field-summary" id="field-summary">
|
||||
<h2>Field Summary</h2>
|
||||
<div class="caption"><span>Fields</span></div>
|
||||
<div class="summary-table three-column-summary">
|
||||
<div class="table-header col-first">Modifier and Type</div>
|
||||
<div class="table-header col-second">Field</div>
|
||||
<div class="table-header col-last">Description</div>
|
||||
<div class="col-first even-row-color"><code>private final int</code></div>
|
||||
<div class="col-second even-row-color"><code><a href="#icon" class="member-name-link">icon</a></code></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">The number of star <code>Icons</code> the card possesses.</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
||||
<li>
|
||||
<section class="constructor-summary" id="constructor-summary">
|
||||
<h2>Constructor Summary</h2>
|
||||
<div class="caption"><span>Constructors</span></div>
|
||||
<div class="summary-table two-column-summary">
|
||||
<div class="table-header col-first">Constructor</div>
|
||||
<div class="table-header col-last">Description</div>
|
||||
<div class="col-constructor-name even-row-color"><code><a href="#%3Cinit%3E(int,int)" class="member-name-link">Shaman</a><wbr>(int Era,
|
||||
int icon)</code></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">Creates a Shaman character card with the specified era and icon value.</div>
|
||||
</div>
|
||||
<div class="col-constructor-name odd-row-color"><code><a href="#%3Cinit%3E(int,int,int)" class="member-name-link">Shaman</a><wbr>(int Era,
|
||||
int icon,
|
||||
int nMin)</code></div>
|
||||
<div class="col-last odd-row-color">
|
||||
<div class="block">Creates a Shaman character card with the specified era, icon value,
|
||||
and minimum number of players.</div>
|
||||
</div>
|
||||
<div class="col-constructor-name even-row-color"><code><a href="#%3Cinit%3E(java.lang.String,int,int)" class="member-name-link">Shaman</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> idIMG,
|
||||
int Era,
|
||||
int icon)</code></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">Creates a Shaman character card with the specified image id, era and icon value.</div>
|
||||
</div>
|
||||
<div class="col-constructor-name odd-row-color"><code><a href="#%3Cinit%3E(java.lang.String,int,int,int)" class="member-name-link">Shaman</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> idIMG,
|
||||
int Era,
|
||||
int icon,
|
||||
int nMin)</code></div>
|
||||
<div class="col-last odd-row-color">
|
||||
<div class="block">Creates a Shaman character card with the specified image id, era, icon value,
|
||||
and minimum number of players.</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ========== METHOD SUMMARY =========== -->
|
||||
<li>
|
||||
<section class="method-summary" id="method-summary">
|
||||
<h2>Method Summary</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">All Methods</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">Instance Methods</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">Concrete Methods</button></div>
|
||||
<div id="method-summary-table.tabpanel" role="tabpanel" aria-labelledby="method-summary-table-tab0">
|
||||
<div class="summary-table three-column-summary">
|
||||
<div class="table-header col-first">Modifier and Type</div>
|
||||
<div class="table-header col-second">Method</div>
|
||||
<div class="table-header col-last">Description</div>
|
||||
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="../Character.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">Character</a></code></div>
|
||||
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#clone()" class="member-name-link">clone</a>()</code></div>
|
||||
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Creates and returns a copy of this Shaman card.</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="#getIcon()" class="member-name-link">getIcon</a>()</code></div>
|
||||
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Returns the icon value of this Shaman card.</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="#insert(it.polimi.ingsw.gc14.Model.Player)" class="member-name-link">insert</a><wbr>(<a href="../../../Player.html" title="class in it.polimi.ingsw.gc14.Model">Player</a> player)</code></div>
|
||||
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Inserts this Shaman card into the specified player's Shaman collection
|
||||
and applies any building effects triggered by character set completion.</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
|
||||
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#toStringBoard()" class="member-name-link">toStringBoard</a>()</code></div>
|
||||
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Returns the representation shown on the board (offer track cards).</div>
|
||||
</div>
|
||||
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
|
||||
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#toStringPlayer()" class="member-name-link">toStringPlayer</a>()</code></div>
|
||||
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Returns the compact representation shown in the player hand panel.</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-it.polimi.ingsw.gc14.Model.Cards.TribeCards.Character">Methods inherited from class <a href="../Character.html#method-summary" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">Character</a></h3>
|
||||
<code><a href="../Character.html#getType()" title="getType()">getType</a></code></div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-it.polimi.ingsw.gc14.Model.Cards.TribeCard">Methods inherited from class <a href="../../TribeCard.html#method-summary" title="class in it.polimi.ingsw.gc14.Model.Cards">TribeCard</a></h3>
|
||||
<code><a href="../../TribeCard.html#getNMin()" title="getNMin()">getNMin</a>, <a href="../../TribeCard.html#isEventCard()" title="isEventCard()">isEventCard</a></code></div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-it.polimi.ingsw.gc14.Model.PlayableCard">Methods inherited from class <a href="../../../PlayableCard.html#method-summary" title="class in it.polimi.ingsw.gc14.Model">PlayableCard</a></h3>
|
||||
<code><a href="../../../PlayableCard.html#getEra()" title="getEra()">getEra</a>, <a href="../../../PlayableCard.html#getIdIMG()" title="getIdIMG()">getIdIMG</a></code></div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-java.lang.Object">Methods inherited from class <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#method-summary" title="class or interface in java.lang" class="external-link">Object</a></h3>
|
||||
<code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang" class="external-link">equals</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()" title="class or interface in java.lang" class="external-link">finalize</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()" title="class or interface in java.lang" class="external-link">getClass</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()" title="class or interface in java.lang" class="external-link">hashCode</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()" title="class or interface in java.lang" class="external-link">notify</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()" title="class or interface in java.lang" class="external-link">notifyAll</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()" title="class or interface in java.lang" class="external-link">toString</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)" title="class or interface 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>Field Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="icon">
|
||||
<h3>icon</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">private final</span> <span class="return-type">int</span> <span class="element-name">icon</span></div>
|
||||
<div class="block">The number of star <code>Icons</code> the card possesses.
|
||||
During the <a href="../Events/ShamanicRitual.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards.Events"><code>Shamanic Ritual Event</code></a>, having the
|
||||
majority of these icons provides Prestige Points;
|
||||
having the minority, on the other hand, results in
|
||||
losing Prestige Points.</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
||||
<li>
|
||||
<section class="constructor-details" id="constructor-detail">
|
||||
<h2>Constructor Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="<init>(int,int)">
|
||||
<h3>Shaman</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="element-name">Shaman</span><wbr><span class="parameters">(int Era,
|
||||
int icon)</span></div>
|
||||
<div class="block">Creates a Shaman character card with the specified era and icon value.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>Era</code> - the era of the Shaman card.</dd>
|
||||
<dd><code>icon</code> - the icon value of the Shaman card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="<init>(int,int,int)">
|
||||
<h3>Shaman</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="element-name">Shaman</span><wbr><span class="parameters">(int Era,
|
||||
int icon,
|
||||
int nMin)</span></div>
|
||||
<div class="block">Creates a Shaman character card with the specified era, icon value,
|
||||
and minimum number of players.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>Era</code> - the era of the Shaman card.</dd>
|
||||
<dd><code>icon</code> - the icon value of the Shaman card.</dd>
|
||||
<dd><code>nMin</code> - the minimum number of players required for the card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="<init>(java.lang.String,int,int)">
|
||||
<h3>Shaman</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="element-name">Shaman</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> idIMG,
|
||||
int Era,
|
||||
int icon)</span></div>
|
||||
<div class="block">Creates a Shaman character card with the specified image id, era and icon value.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>idIMG</code> - the image identifier of the Shaman card.</dd>
|
||||
<dd><code>Era</code> - the era of the Shaman card.</dd>
|
||||
<dd><code>icon</code> - the icon value of the Shaman card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="<init>(java.lang.String,int,int,int)">
|
||||
<h3>Shaman</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="element-name">Shaman</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> idIMG,
|
||||
int Era,
|
||||
int icon,
|
||||
int nMin)</span></div>
|
||||
<div class="block">Creates a Shaman character card with the specified image id, era, icon value,
|
||||
and minimum number of players.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>idIMG</code> - the image identifier of the Shaman card.</dd>
|
||||
<dd><code>Era</code> - the era of the Shaman card.</dd>
|
||||
<dd><code>icon</code> - the icon value of the Shaman card.</dd>
|
||||
<dd><code>nMin</code> - the minimum number of players required for the card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ============ METHOD DETAIL ========== -->
|
||||
<li>
|
||||
<section class="method-details" id="method-detail">
|
||||
<h2>Method Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="getIcon()">
|
||||
<h3>getIcon</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type">int</span> <span class="element-name">getIcon</span>()</div>
|
||||
<div class="block">Returns the icon value of this Shaman card.</div>
|
||||
<dl class="notes">
|
||||
<dt>Returns:</dt>
|
||||
<dd>the icon value of this Shaman card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="toStringPlayer()">
|
||||
<h3>toStringPlayer</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span> <span class="element-name">toStringPlayer</span>()</div>
|
||||
<div class="block"><span class="description-from-type-label">Description copied from class: <code><a href="../../../PlayableCard.html#toStringPlayer()">PlayableCard</a></code></span></div>
|
||||
<div class="block">Returns the compact representation shown in the player hand panel.</div>
|
||||
<dl class="notes">
|
||||
<dt>Specified by:</dt>
|
||||
<dd><code><a href="../../../PlayableCard.html#toStringPlayer()">toStringPlayer</a></code> in class <code><a href="../../../PlayableCard.html" title="class in it.polimi.ingsw.gc14.Model">PlayableCard</a></code></dd>
|
||||
<dt>Returns:</dt>
|
||||
<dd>the player-hand string representation of this card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="toStringBoard()">
|
||||
<h3>toStringBoard</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span> <span class="element-name">toStringBoard</span>()</div>
|
||||
<div class="block"><span class="description-from-type-label">Description copied from class: <code><a href="../../../PlayableCard.html#toStringBoard()">PlayableCard</a></code></span></div>
|
||||
<div class="block">Returns the representation shown on the board (offer track cards).</div>
|
||||
<dl class="notes">
|
||||
<dt>Specified by:</dt>
|
||||
<dd><code><a href="../../../PlayableCard.html#toStringBoard()">toStringBoard</a></code> in class <code><a href="../../../PlayableCard.html" title="class in it.polimi.ingsw.gc14.Model">PlayableCard</a></code></dd>
|
||||
<dt>Returns:</dt>
|
||||
<dd>the board string representation of this card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="clone()">
|
||||
<h3>clone</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="../Character.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">Character</a></span> <span class="element-name">clone</span>()</div>
|
||||
<div class="block">Creates and returns a copy of this Shaman card.</div>
|
||||
<dl class="notes">
|
||||
<dt>Specified by:</dt>
|
||||
<dd><code><a href="../Character.html#clone()">clone</a></code> in class <code><a href="../Character.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">Character</a></code></dd>
|
||||
<dt>Returns:</dt>
|
||||
<dd>a clone of this Shaman card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="insert(it.polimi.ingsw.gc14.Model.Player)">
|
||||
<h3>insert</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">insert</span><wbr><span class="parameters">(<a href="../../../Player.html" title="class in it.polimi.ingsw.gc14.Model">Player</a> player)</span></div>
|
||||
<div class="block">Inserts this Shaman card into the specified player's Shaman collection
|
||||
and applies any building effects triggered by character set completion.</div>
|
||||
<dl class="notes">
|
||||
<dt>Specified by:</dt>
|
||||
<dd><code><a href="../Character.html#insert(it.polimi.ingsw.gc14.Model.Player)">insert</a></code> in class <code><a href="../Character.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">Character</a></code></dd>
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>player</code> - the player who receives the card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<!-- ========= END OF CLASS DATA ========= -->
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
+122
@@ -0,0 +1,122 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="it">
|
||||
<head>
|
||||
<!-- Generated by javadoc (25) on Fri Jun 19 23:05:23 CEST 2026 -->
|
||||
<title>it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters</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="2026-06-19">
|
||||
<meta name="description" content="declaration: module: it.polimi.ingsw.gc14, package: it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters">
|
||||
<meta name="generator" content="javadoc/PackageWriter">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../../resource-files/jquery-ui.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../../resource-files/stylesheet.css">
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/script.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/jquery-3.7.1.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/jquery-ui.min.js"></script>
|
||||
</head>
|
||||
<body class="package-declaration-page">
|
||||
<script type="text/javascript">const pathtoroot = "../../../../../../../../../";
|
||||
loadScripts(document, 'script');</script>
|
||||
<noscript>
|
||||
<div>JavaScript is disabled on your browser.</div>
|
||||
</noscript>
|
||||
<header role="banner">
|
||||
<nav role="navigation">
|
||||
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||
<div class="top-nav" id="navbar-top">
|
||||
<div class="nav-content">
|
||||
<div class="nav-menu-button"><button id="navbar-toggle-button" aria-controls="navbar-top" aria-expanded="false" aria-label="Toggle navigation links"><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span></button></div>
|
||||
<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="../../../../../../../../module-summary.html">Module</a></li>
|
||||
<li class="nav-bar-cell1-rev">Package</li>
|
||||
<li><a href="package-tree.html">Tree</a></li>
|
||||
<li><a href="../../../../../../../../../index-files/index-1.html">Index</a></li>
|
||||
<li><a href="../../../../../../../../../search.html">Search</a></li>
|
||||
<li><a href="../../../../../../../../../help-doc.html#package">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sub-nav">
|
||||
<div class="nav-content">
|
||||
<ol class="sub-nav-list">
|
||||
<li><a href="../../../../../../../../module-summary.html">it.polimi.ingsw.gc14</a></li>
|
||||
<li><a href="package-summary.html" class="current-selection">it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters</a></li>
|
||||
</ol>
|
||||
<div class="nav-list-search"><input type="text" id="search-input" disabled placeholder="Search documentation (type /)" aria-label="Search in documentation" autocomplete="off" spellcheck="false"><input type="reset" id="reset-search" disabled value="Reset"></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<span class="skip-nav" id="skip-navbar-top"></span></nav>
|
||||
</header>
|
||||
<div class="main-grid">
|
||||
<nav role="navigation" class="toc" aria-label="Table of contents">
|
||||
<div class="toc-header">Contents</div>
|
||||
<ol class="toc-list" tabindex="-1">
|
||||
<li><a href="#" tabindex="0">Description</a></li>
|
||||
<li><a href="#related-package-summary" tabindex="0">Related Packages</a></li>
|
||||
<li><a href="#class-summary" tabindex="0">Classes and Interfaces</a></li>
|
||||
</ol>
|
||||
<button class="hide-sidebar"><span>Hide sidebar </span><img src="../../../../../../../../../resource-files/left.svg" alt="Hide sidebar"></button><button class="show-sidebar"><img src="../../../../../../../../../resource-files/right.svg" alt="Show sidebar"><span> Show sidebar</span></button></nav>
|
||||
<main role="main">
|
||||
<div class="header">
|
||||
<h1 title="Package it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters" class="title">Package it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters</h1>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="package-signature">package <span class="element-name">it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters</span></div>
|
||||
</div>
|
||||
<section class="summary">
|
||||
<ul class="summary-list">
|
||||
<li>
|
||||
<div id="related-package-summary">
|
||||
<div class="caption"><span>Related Packages</span></div>
|
||||
<div class="summary-table two-column-summary">
|
||||
<div class="table-header col-first">Package</div>
|
||||
<div class="table-header col-last">Description</div>
|
||||
<div class="col-first even-row-color"><a href="../package-summary.html">it.polimi.ingsw.gc14.Model.Cards.TribeCards</a></div>
|
||||
<div class="col-last even-row-color"> </div>
|
||||
<div class="col-first odd-row-color"><a href="../Events/package-summary.html">it.polimi.ingsw.gc14.Model.Cards.TribeCards.Events</a></div>
|
||||
<div class="col-last odd-row-color"> </div>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<div id="class-summary">
|
||||
<div class="caption"><span>Classes</span></div>
|
||||
<div class="summary-table two-column-summary">
|
||||
<div class="table-header col-first">Class</div>
|
||||
<div class="table-header col-last">Description</div>
|
||||
<div class="col-first even-row-color class-summary class-summary-tab2"><a href="Artist.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters">Artist</a></div>
|
||||
<div class="col-last even-row-color class-summary class-summary-tab2">
|
||||
<div class="block">Represents an Artist character card.</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color class-summary class-summary-tab2"><a href="Builder.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters">Builder</a></div>
|
||||
<div class="col-last odd-row-color class-summary class-summary-tab2">
|
||||
<div class="block">Represents a Builder character card.</div>
|
||||
</div>
|
||||
<div class="col-first even-row-color class-summary class-summary-tab2"><a href="Gatherer.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters">Gatherer</a></div>
|
||||
<div class="col-last even-row-color class-summary class-summary-tab2">
|
||||
<div class="block">Represents a Gatherer character card.</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color class-summary class-summary-tab2"><a href="Hunter.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters">Hunter</a></div>
|
||||
<div class="col-last odd-row-color class-summary class-summary-tab2">
|
||||
<div class="block">Represents a Hunter character card.</div>
|
||||
</div>
|
||||
<div class="col-first even-row-color class-summary class-summary-tab2"><a href="Inventor.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters">Inventor</a></div>
|
||||
<div class="col-last even-row-color class-summary class-summary-tab2">
|
||||
<div class="block">Represents an Inventor character card.</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color class-summary class-summary-tab2"><a href="Shaman.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters">Shaman</a></div>
|
||||
<div class="col-last odd-row-color class-summary class-summary-tab2">
|
||||
<div class="block">Represents a Shaman character card.</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
+91
@@ -0,0 +1,91 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="it">
|
||||
<head>
|
||||
<!-- Generated by javadoc (25) on Fri Jun 19 23:05:23 CEST 2026 -->
|
||||
<title>it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters Class Hierarchy</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="2026-06-19">
|
||||
<meta name="description" content="tree: module: it.polimi.ingsw.gc14, package: it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters">
|
||||
<meta name="generator" content="javadoc/PackageTreeWriter">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../../resource-files/jquery-ui.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../../resource-files/stylesheet.css">
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/script.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/jquery-3.7.1.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/jquery-ui.min.js"></script>
|
||||
</head>
|
||||
<body class="package-tree-page">
|
||||
<script type="text/javascript">const pathtoroot = "../../../../../../../../../";
|
||||
loadScripts(document, 'script');</script>
|
||||
<noscript>
|
||||
<div>JavaScript is disabled on your browser.</div>
|
||||
</noscript>
|
||||
<header role="banner">
|
||||
<nav role="navigation">
|
||||
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||
<div class="top-nav" id="navbar-top">
|
||||
<div class="nav-content">
|
||||
<div class="nav-menu-button"><button id="navbar-toggle-button" aria-controls="navbar-top" aria-expanded="false" aria-label="Toggle navigation links"><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span></button></div>
|
||||
<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="../../../../../../../../module-summary.html">Module</a></li>
|
||||
<li><a href="package-summary.html">Package</a></li>
|
||||
<li class="nav-bar-cell1-rev">Tree</li>
|
||||
<li><a href="../../../../../../../../../index-files/index-1.html">Index</a></li>
|
||||
<li><a href="../../../../../../../../../search.html">Search</a></li>
|
||||
<li><a href="../../../../../../../../../help-doc.html#tree">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sub-nav">
|
||||
<div class="nav-content">
|
||||
<ol class="sub-nav-list">
|
||||
<li><a href="../../../../../../../../module-summary.html">it.polimi.ingsw.gc14</a></li>
|
||||
<li><a href="package-summary.html" class="current-selection">it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters</a></li>
|
||||
</ol>
|
||||
<div class="nav-list-search"><input type="text" id="search-input" disabled placeholder="Search documentation (type /)" aria-label="Search in documentation" autocomplete="off" spellcheck="false"><input type="reset" id="reset-search" disabled value="Reset"></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<span class="skip-nav" id="skip-navbar-top"></span></nav>
|
||||
</header>
|
||||
<div class="main-grid">
|
||||
<main role="main">
|
||||
<div class="header">
|
||||
<h1 class="title">Hierarchy For Package it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters</h1>
|
||||
</div>
|
||||
<span class="package-hierarchy-label">Package Hierarchies:</span>
|
||||
<ul class="horizontal contents-list">
|
||||
<li><a href="../../../../../../../../../overview-tree.html">All Packages</a></li>
|
||||
</ul>
|
||||
<section class="hierarchy">
|
||||
<h2 title="Class Hierarchy">Class Hierarchy</h2>
|
||||
<ul>
|
||||
<li class="circle">java.lang.<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html" class="type-name-link external-link" title="class or interface in java.lang">Object</a>
|
||||
<ul>
|
||||
<li class="circle">it.polimi.ingsw.gc14.Model.<a href="../../../PlayableCard.html" class="type-name-link" title="class in it.polimi.ingsw.gc14.Model">PlayableCard</a> (implements java.io.<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/Serializable.html" title="class or interface in java.io" class="external-link">Serializable</a>)
|
||||
<ul>
|
||||
<li class="circle">it.polimi.ingsw.gc14.Model.Cards.<a href="../../TribeCard.html" class="type-name-link" title="class in it.polimi.ingsw.gc14.Model.Cards">TribeCard</a> (implements java.io.<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/Serializable.html" title="class or interface in java.io" class="external-link">Serializable</a>)
|
||||
<ul>
|
||||
<li class="circle">it.polimi.ingsw.gc14.Model.Cards.TribeCards.<a href="../Character.html" class="type-name-link" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">Character</a> (implements java.lang.<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Cloneable.html" title="class or interface in java.lang" class="external-link">Cloneable</a>)
|
||||
<ul>
|
||||
<li class="circle">it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters.<a href="Artist.html" class="type-name-link" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters">Artist</a></li>
|
||||
<li class="circle">it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters.<a href="Builder.html" class="type-name-link" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters">Builder</a></li>
|
||||
<li class="circle">it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters.<a href="Gatherer.html" class="type-name-link" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters">Gatherer</a></li>
|
||||
<li class="circle">it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters.<a href="Hunter.html" class="type-name-link" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters">Hunter</a></li>
|
||||
<li class="circle">it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters.<a href="Inventor.html" class="type-name-link" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters">Inventor</a></li>
|
||||
<li class="circle">it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters.<a href="Shaman.html" class="type-name-link" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters">Shaman</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
+316
@@ -0,0 +1,316 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="it">
|
||||
<head>
|
||||
<!-- Generated by javadoc (25) on Fri Jun 19 23:05:23 CEST 2026 -->
|
||||
<title>EventCard</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="2026-06-19">
|
||||
<meta name="description" content="declaration: module: it.polimi.ingsw.gc14, package: it.polimi.ingsw.gc14.Model.Cards.TribeCards, class: EventCard">
|
||||
<meta name="generator" content="javadoc/ClassWriter">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../resource-files/jquery-ui.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../resource-files/stylesheet.css">
|
||||
<script type="text/javascript" src="../../../../../../../../script-files/script.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../script-files/jquery-3.7.1.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../script-files/jquery-ui.min.js"></script>
|
||||
</head>
|
||||
<body class="class-declaration-page">
|
||||
<script type="text/javascript">const pathtoroot = "../../../../../../../../";
|
||||
loadScripts(document, 'script');</script>
|
||||
<noscript>
|
||||
<div>JavaScript is disabled on your browser.</div>
|
||||
</noscript>
|
||||
<header role="banner">
|
||||
<nav role="navigation">
|
||||
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||
<div class="top-nav" id="navbar-top">
|
||||
<div class="nav-content">
|
||||
<div class="nav-menu-button"><button id="navbar-toggle-button" aria-controls="navbar-top" aria-expanded="false" aria-label="Toggle navigation links"><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span></button></div>
|
||||
<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="../../../../../../../module-summary.html">Module</a></li>
|
||||
<li class="nav-bar-cell1-rev">Class</li>
|
||||
<li><a href="package-tree.html">Tree</a></li>
|
||||
<li><a href="../../../../../../../../index-files/index-1.html">Index</a></li>
|
||||
<li><a href="../../../../../../../../search.html">Search</a></li>
|
||||
<li><a href="../../../../../../../../help-doc.html#class">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sub-nav">
|
||||
<div class="nav-content">
|
||||
<ol class="sub-nav-list">
|
||||
<li><a href="../../../../../../../module-summary.html">it.polimi.ingsw.gc14</a></li>
|
||||
<li><a href="package-summary.html">it.polimi.ingsw.gc14.Model.Cards.TribeCards</a></li>
|
||||
<li><a href="EventCard.html" class="current-selection">EventCard</a></li>
|
||||
</ol>
|
||||
<div class="nav-list-search"><input type="text" id="search-input" disabled placeholder="Search documentation (type /)" aria-label="Search in documentation" autocomplete="off" spellcheck="false"><input type="reset" id="reset-search" disabled value="Reset"></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<span class="skip-nav" id="skip-navbar-top"></span></nav>
|
||||
</header>
|
||||
<div class="main-grid">
|
||||
<nav role="navigation" class="toc" aria-label="Table of contents">
|
||||
<div class="toc-header">Contents <input type="text" class="filter-input" disabled placeholder="Filter contents (type .)" aria-label="Filter table of contents" autocomplete="off" spellcheck="false"><input type="reset" class="reset-filter" disabled tabindex="-1" value="Reset"></div>
|
||||
<ol class="toc-list" tabindex="-1">
|
||||
<li><a href="#" tabindex="0">Description</a></li>
|
||||
<li><a href="#field-summary" tabindex="0">Field Summary</a></li>
|
||||
<li><a href="#constructor-summary" tabindex="0">Constructor Summary</a></li>
|
||||
<li><a href="#method-summary" tabindex="0">Method Summary</a></li>
|
||||
<li><a href="#field-detail" tabindex="0">Field Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#type" tabindex="0">type</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
<li><a href="#constructor-detail" tabindex="0">Constructor Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#%3Cinit%3E(int,it.polimi.ingsw.gc14.Model.Cards.TribeCards.EventType)" tabindex="0">EventCard(int, EventType)</a></li>
|
||||
<li><a href="#%3Cinit%3E(java.lang.String,int,it.polimi.ingsw.gc14.Model.Cards.TribeCards.EventType)" tabindex="0">EventCard(String, int, EventType)</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
<li><a href="#method-detail" tabindex="0">Method Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#getType()" tabindex="0">getType()</a></li>
|
||||
<li><a href="#clone()" tabindex="0">clone()</a></li>
|
||||
<li><a href="#activateEvent(java.util.ArrayList)" tabindex="0">activateEvent(ArrayList)</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
</ol>
|
||||
<button class="hide-sidebar"><span>Hide sidebar </span><img src="../../../../../../../../resource-files/left.svg" alt="Hide sidebar"></button><button class="show-sidebar"><img src="../../../../../../../../resource-files/right.svg" alt="Show sidebar"><span> Show sidebar</span></button></nav>
|
||||
<main role="main">
|
||||
<!-- ======== START OF CLASS DATA ======== -->
|
||||
<div class="header">
|
||||
<h1 title="Class EventCard" class="title">Class EventCard</h1>
|
||||
</div>
|
||||
<div class="inheritance" title="Inheritance Tree"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">java.lang.Object</a>
|
||||
<div class="inheritance"><a href="../../PlayableCard.html" title="class in it.polimi.ingsw.gc14.Model">it.polimi.ingsw.gc14.Model.PlayableCard</a>
|
||||
<div class="inheritance"><a href="../TribeCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">it.polimi.ingsw.gc14.Model.Cards.TribeCard</a>
|
||||
<div class="inheritance">it.polimi.ingsw.gc14.Model.Cards.TribeCards.EventCard</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<section class="class-description" id="class-description">
|
||||
<dl class="notes">
|
||||
<dt>All Implemented Interfaces:</dt>
|
||||
<dd><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/Serializable.html" title="class or interface in java.io" class="external-link">Serializable</a></code></dd>
|
||||
</dl>
|
||||
<dl class="notes">
|
||||
<dt>Direct Known Subclasses:</dt>
|
||||
<dd><code><a href="Events/CavePaintings.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards.Events">CavePaintings</a>, <a href="Events/Hunt.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards.Events">Hunt</a>, <a href="Events/ShamanicRitual.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards.Events">ShamanicRitual</a>, <a href="Events/Sustenance.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards.Events">Sustenance</a></code></dd>
|
||||
</dl>
|
||||
<hr>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="type-signature"><span class="modifiers">public abstract class </span><span class="element-name type-name-label">EventCard</span>
|
||||
<span class="extends-implements">extends <a href="../TribeCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">TribeCard</a></span></div>
|
||||
<div class="block">Abstract base class for all event cards.
|
||||
An EventCard is a <a href="../TribeCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards"><code>TribeCard</code></a> marked as an event card and associated
|
||||
with a specific <a href="EventType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards"><code>EventType</code></a>.</div>
|
||||
<dl class="notes">
|
||||
<dt>See Also:</dt>
|
||||
<dd>
|
||||
<ul class="tag-list">
|
||||
<li><a href="../../../../../../../../serialized-form.html#it.polimi.ingsw.gc14.Model.Cards.TribeCards.EventCard">Serialized Form</a></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
<section class="summary">
|
||||
<ul class="summary-list">
|
||||
<!-- =========== FIELD SUMMARY =========== -->
|
||||
<li>
|
||||
<section class="field-summary" id="field-summary">
|
||||
<h2>Field Summary</h2>
|
||||
<div class="caption"><span>Fields</span></div>
|
||||
<div class="summary-table three-column-summary">
|
||||
<div class="table-header col-first">Modifier and Type</div>
|
||||
<div class="table-header col-second">Field</div>
|
||||
<div class="table-header col-last">Description</div>
|
||||
<div class="col-first even-row-color"><code>private final <a href="EventType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">EventType</a></code></div>
|
||||
<div class="col-second even-row-color"><code><a href="#type" class="member-name-link">type</a></code></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">The specific type of this event card.</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
||||
<li>
|
||||
<section class="constructor-summary" id="constructor-summary">
|
||||
<h2>Constructor Summary</h2>
|
||||
<div class="caption"><span>Constructors</span></div>
|
||||
<div class="summary-table two-column-summary">
|
||||
<div class="table-header col-first">Constructor</div>
|
||||
<div class="table-header col-last">Description</div>
|
||||
<div class="col-constructor-name even-row-color"><code><a href="#%3Cinit%3E(int,it.polimi.ingsw.gc14.Model.Cards.TribeCards.EventType)" class="member-name-link">EventCard</a><wbr>(int era,
|
||||
<a href="EventType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">EventType</a> type)</code></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">Creates an event card with the specified era and event type.</div>
|
||||
</div>
|
||||
<div class="col-constructor-name odd-row-color"><code><a href="#%3Cinit%3E(java.lang.String,int,it.polimi.ingsw.gc14.Model.Cards.TribeCards.EventType)" class="member-name-link">EventCard</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> idIMG,
|
||||
int era,
|
||||
<a href="EventType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">EventType</a> type)</code></div>
|
||||
<div class="col-last odd-row-color">
|
||||
<div class="block">Creates an event card with the specified image id, era and event type.</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ========== METHOD SUMMARY =========== -->
|
||||
<li>
|
||||
<section class="method-summary" id="method-summary">
|
||||
<h2>Method Summary</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">All Methods</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">Instance Methods</button><button id="method-summary-table-tab3" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab3', 3)" class="table-tab">Abstract Methods</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">Concrete Methods</button></div>
|
||||
<div id="method-summary-table.tabpanel" role="tabpanel" aria-labelledby="method-summary-table-tab0">
|
||||
<div class="summary-table three-column-summary">
|
||||
<div class="table-header col-first">Modifier and Type</div>
|
||||
<div class="table-header col-second">Method</div>
|
||||
<div class="table-header col-last">Description</div>
|
||||
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>abstract void</code></div>
|
||||
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#activateEvent(java.util.ArrayList)" class="member-name-link">activateEvent</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/ArrayList.html" title="class or interface in java.util" class="external-link">ArrayList</a><<a href="../../Player.html" title="class in it.polimi.ingsw.gc14.Model">Player</a>> playerList)</code></div>
|
||||
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
||||
<div class="block">Activates the effect of this event card on the specified list of players.</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>abstract <a href="../TribeCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">TribeCard</a></code></div>
|
||||
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#clone()" class="member-name-link">clone</a>()</code></div>
|
||||
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
|
||||
<div class="block">Creates and returns a copy of this event card.</div>
|
||||
</div>
|
||||
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="EventType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">EventType</a></code></div>
|
||||
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getType()" class="member-name-link">getType</a>()</code></div>
|
||||
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Returns the type of this event card.</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-it.polimi.ingsw.gc14.Model.Cards.TribeCard">Methods inherited from class <a href="../TribeCard.html#method-summary" title="class in it.polimi.ingsw.gc14.Model.Cards">TribeCard</a></h3>
|
||||
<code><a href="../TribeCard.html#getNMin()" title="getNMin()">getNMin</a>, <a href="../TribeCard.html#isEventCard()" title="isEventCard()">isEventCard</a></code></div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-it.polimi.ingsw.gc14.Model.PlayableCard">Methods inherited from class <a href="../../PlayableCard.html#method-summary" title="class in it.polimi.ingsw.gc14.Model">PlayableCard</a></h3>
|
||||
<code><a href="../../PlayableCard.html#getEra()" title="getEra()">getEra</a>, <a href="../../PlayableCard.html#getIdIMG()" title="getIdIMG()">getIdIMG</a>, <a href="../../PlayableCard.html#toStringBoard()" title="toStringBoard()">toStringBoard</a>, <a href="../../PlayableCard.html#toStringPlayer()" title="toStringPlayer()">toStringPlayer</a></code></div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-java.lang.Object">Methods inherited from class <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#method-summary" title="class or interface in java.lang" class="external-link">Object</a></h3>
|
||||
<code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang" class="external-link">equals</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()" title="class or interface in java.lang" class="external-link">finalize</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()" title="class or interface in java.lang" class="external-link">getClass</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()" title="class or interface in java.lang" class="external-link">hashCode</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()" title="class or interface in java.lang" class="external-link">notify</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()" title="class or interface in java.lang" class="external-link">notifyAll</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()" title="class or interface in java.lang" class="external-link">toString</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)" title="class or interface 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>Field Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="type">
|
||||
<h3>type</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">private final</span> <span class="return-type"><a href="EventType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">EventType</a></span> <span class="element-name">type</span></div>
|
||||
<div class="block">The specific type of this event card.</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
||||
<li>
|
||||
<section class="constructor-details" id="constructor-detail">
|
||||
<h2>Constructor Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="<init>(int,it.polimi.ingsw.gc14.Model.Cards.TribeCards.EventType)">
|
||||
<h3>EventCard</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="element-name">EventCard</span><wbr><span class="parameters">(int era,
|
||||
<a href="EventType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">EventType</a> type)</span></div>
|
||||
<div class="block">Creates an event card with the specified era and event type.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>era</code> - the era of the event card.</dd>
|
||||
<dd><code>type</code> - the type of the event card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="<init>(java.lang.String,int,it.polimi.ingsw.gc14.Model.Cards.TribeCards.EventType)">
|
||||
<h3>EventCard</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="element-name">EventCard</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> idIMG,
|
||||
int era,
|
||||
<a href="EventType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">EventType</a> type)</span></div>
|
||||
<div class="block">Creates an event card with the specified image id, era and event type.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>idIMG</code> - the image identifier of the event card.</dd>
|
||||
<dd><code>era</code> - the era of the event card.</dd>
|
||||
<dd><code>type</code> - the type of the event card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ============ METHOD DETAIL ========== -->
|
||||
<li>
|
||||
<section class="method-details" id="method-detail">
|
||||
<h2>Method Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="getType()">
|
||||
<h3>getType</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="EventType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">EventType</a></span> <span class="element-name">getType</span>()</div>
|
||||
<div class="block">Returns the type of this event card.</div>
|
||||
<dl class="notes">
|
||||
<dt>Returns:</dt>
|
||||
<dd>the type of this event card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="clone()">
|
||||
<h3>clone</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public abstract</span> <span class="return-type"><a href="../TribeCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">TribeCard</a></span> <span class="element-name">clone</span>()</div>
|
||||
<div class="block">Creates and returns a copy of this event card.</div>
|
||||
<dl class="notes">
|
||||
<dt>Specified by:</dt>
|
||||
<dd><code><a href="../TribeCard.html#clone()">clone</a></code> in class <code><a href="../TribeCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">TribeCard</a></code></dd>
|
||||
<dt>Returns:</dt>
|
||||
<dd>a clone of this event card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="activateEvent(java.util.ArrayList)">
|
||||
<h3>activateEvent</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public abstract</span> <span class="return-type">void</span> <span class="element-name">activateEvent</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/ArrayList.html" title="class or interface in java.util" class="external-link">ArrayList</a><<a href="../../Player.html" title="class in it.polimi.ingsw.gc14.Model">Player</a>> playerList)</span></div>
|
||||
<div class="block">Activates the effect of this event card on the specified list of players.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>playerList</code> - the list of players affected by the event.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<!-- ========= END OF CLASS DATA ========= -->
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
+304
@@ -0,0 +1,304 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="it">
|
||||
<head>
|
||||
<!-- Generated by javadoc (25) on Fri Jun 19 23:05:23 CEST 2026 -->
|
||||
<title>EventType</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="2026-06-19">
|
||||
<meta name="description" content="declaration: module: it.polimi.ingsw.gc14, package: it.polimi.ingsw.gc14.Model.Cards.TribeCards, enum: EventType">
|
||||
<meta name="generator" content="javadoc/ClassWriter">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../resource-files/jquery-ui.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../resource-files/stylesheet.css">
|
||||
<script type="text/javascript" src="../../../../../../../../script-files/script.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../script-files/jquery-3.7.1.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../script-files/jquery-ui.min.js"></script>
|
||||
</head>
|
||||
<body class="class-declaration-page">
|
||||
<script type="text/javascript">const pathtoroot = "../../../../../../../../";
|
||||
loadScripts(document, 'script');</script>
|
||||
<noscript>
|
||||
<div>JavaScript is disabled on your browser.</div>
|
||||
</noscript>
|
||||
<header role="banner">
|
||||
<nav role="navigation">
|
||||
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||
<div class="top-nav" id="navbar-top">
|
||||
<div class="nav-content">
|
||||
<div class="nav-menu-button"><button id="navbar-toggle-button" aria-controls="navbar-top" aria-expanded="false" aria-label="Toggle navigation links"><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span></button></div>
|
||||
<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="../../../../../../../module-summary.html">Module</a></li>
|
||||
<li class="nav-bar-cell1-rev">Class</li>
|
||||
<li><a href="package-tree.html">Tree</a></li>
|
||||
<li><a href="../../../../../../../../index-files/index-1.html">Index</a></li>
|
||||
<li><a href="../../../../../../../../search.html">Search</a></li>
|
||||
<li><a href="../../../../../../../../help-doc.html#class">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sub-nav">
|
||||
<div class="nav-content">
|
||||
<ol class="sub-nav-list">
|
||||
<li><a href="../../../../../../../module-summary.html">it.polimi.ingsw.gc14</a></li>
|
||||
<li><a href="package-summary.html">it.polimi.ingsw.gc14.Model.Cards.TribeCards</a></li>
|
||||
<li><a href="EventType.html" class="current-selection">EventType</a></li>
|
||||
</ol>
|
||||
<div class="nav-list-search"><input type="text" id="search-input" disabled placeholder="Search documentation (type /)" aria-label="Search in documentation" autocomplete="off" spellcheck="false"><input type="reset" id="reset-search" disabled value="Reset"></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<span class="skip-nav" id="skip-navbar-top"></span></nav>
|
||||
</header>
|
||||
<div class="main-grid">
|
||||
<nav role="navigation" class="toc" aria-label="Table of contents">
|
||||
<div class="toc-header">Contents <input type="text" class="filter-input" disabled placeholder="Filter contents (type .)" aria-label="Filter table of contents" autocomplete="off" spellcheck="false"><input type="reset" class="reset-filter" disabled tabindex="-1" value="Reset"></div>
|
||||
<ol class="toc-list" tabindex="-1">
|
||||
<li><a href="#" tabindex="0">Description</a></li>
|
||||
<li><a href="#nested-class-summary" tabindex="0">Nested Class Summary</a></li>
|
||||
<li><a href="#enum-constant-summary" tabindex="0">Enum Constant Summary</a></li>
|
||||
<li><a href="#constructor-summary" tabindex="0">Constructor Summary</a></li>
|
||||
<li><a href="#method-summary" tabindex="0">Method Summary</a></li>
|
||||
<li><a href="#enum-constant-detail" tabindex="0">Enum Constant Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#SUSTENANCE" tabindex="0">SUSTENANCE</a></li>
|
||||
<li><a href="#SHAMANIC_RITUAL" tabindex="0">SHAMANIC_RITUAL</a></li>
|
||||
<li><a href="#CAVE_PAINTINGS" tabindex="0">CAVE_PAINTINGS</a></li>
|
||||
<li><a href="#HUNT" tabindex="0">HUNT</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
<li><a href="#constructor-detail" tabindex="0">Constructor Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#%3Cinit%3E()" tabindex="0">EventType()</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
<li><a href="#method-detail" tabindex="0">Method Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#values()" tabindex="0">values()</a></li>
|
||||
<li><a href="#valueOf(java.lang.String)" tabindex="0">valueOf(String)</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
</ol>
|
||||
<button class="hide-sidebar"><span>Hide sidebar </span><img src="../../../../../../../../resource-files/left.svg" alt="Hide sidebar"></button><button class="show-sidebar"><img src="../../../../../../../../resource-files/right.svg" alt="Show sidebar"><span> Show sidebar</span></button></nav>
|
||||
<main role="main">
|
||||
<!-- ======== START OF CLASS DATA ======== -->
|
||||
<div class="header">
|
||||
<h1 title="Enum Class EventType" class="title">Enum Class EventType</h1>
|
||||
</div>
|
||||
<div class="inheritance" title="Inheritance Tree"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">java.lang.Object</a>
|
||||
<div class="inheritance"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html" title="class or interface in java.lang" class="external-link">java.lang.Enum</a><<a href="EventType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">EventType</a>>
|
||||
<div class="inheritance">it.polimi.ingsw.gc14.Model.Cards.TribeCards.EventType</div>
|
||||
</div>
|
||||
</div>
|
||||
<section class="class-description" id="class-description">
|
||||
<dl class="notes">
|
||||
<dt>All Implemented Interfaces:</dt>
|
||||
<dd><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/Serializable.html" title="class or interface in java.io" class="external-link">Serializable</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Comparable.html" title="class or interface in java.lang" class="external-link">Comparable</a><<a href="EventType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">EventType</a>>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/constant/Constable.html" title="class or interface in java.lang.constant" class="external-link">Constable</a></code></dd>
|
||||
</dl>
|
||||
<hr>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="type-signature"><span class="modifiers">public enum </span><span class="element-name type-name-label">EventType</span>
|
||||
<span class="extends-implements">extends <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html" title="class or interface in java.lang" class="external-link">Enum</a><<a href="EventType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">EventType</a>></span></div>
|
||||
<div class="block">Represents the different types of event cards available in the game.</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="summary">
|
||||
<ul class="summary-list">
|
||||
<!-- ======== NESTED CLASS SUMMARY ======== -->
|
||||
<li>
|
||||
<section class="nested-class-summary" id="nested-class-summary">
|
||||
<h2>Nested Class Summary</h2>
|
||||
<div class="inherited-list">
|
||||
<h3 id="nested-classes-inherited-from-class-java.lang.Enum">Nested classes/interfaces inherited from class <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#nested-class-summary" title="class or interface in java.lang" class="external-link">Enum</a></h3>
|
||||
<code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.EnumDesc.html" title="class or interface in java.lang" class="external-link">Enum.EnumDesc</a><E></code></div>
|
||||
</section>
|
||||
</li>
|
||||
<!-- =========== ENUM CONSTANT SUMMARY =========== -->
|
||||
<li>
|
||||
<section class="constants-summary" id="enum-constant-summary">
|
||||
<h2>Enum Constant Summary</h2>
|
||||
<div class="caption"><span>Enum Constants</span></div>
|
||||
<div class="summary-table two-column-summary">
|
||||
<div class="table-header col-first">Enum Constant</div>
|
||||
<div class="table-header col-last">Description</div>
|
||||
<div class="col-first even-row-color"><code><a href="#CAVE_PAINTINGS" class="member-name-link">CAVE_PAINTINGS</a></code></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">Event card representing Cave Paintings.</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color"><code><a href="#HUNT" class="member-name-link">HUNT</a></code></div>
|
||||
<div class="col-last odd-row-color">
|
||||
<div class="block">Event card representing the Hunt.</div>
|
||||
</div>
|
||||
<div class="col-first even-row-color"><code><a href="#SHAMANIC_RITUAL" class="member-name-link">SHAMANIC_RITUAL</a></code></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">Event card representing the Shamanic Ritual.</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color"><code><a href="#SUSTENANCE" class="member-name-link">SUSTENANCE</a></code></div>
|
||||
<div class="col-last odd-row-color">
|
||||
<div class="block">Event card representing Sustenance.</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
||||
<li>
|
||||
<section class="constructor-summary" id="constructor-summary">
|
||||
<h2>Constructor Summary</h2>
|
||||
<div class="caption"><span>Constructors</span></div>
|
||||
<div class="summary-table three-column-summary">
|
||||
<div class="table-header col-first">Modifier</div>
|
||||
<div class="table-header col-second">Constructor</div>
|
||||
<div class="table-header col-last">Description</div>
|
||||
<div class="col-first even-row-color"><code>private </code></div>
|
||||
<div class="col-constructor-name even-row-color"><code><a href="#%3Cinit%3E()" class="member-name-link">EventType</a>()</code></div>
|
||||
<div class="col-last even-row-color"> </div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ========== METHOD SUMMARY =========== -->
|
||||
<li>
|
||||
<section class="method-summary" id="method-summary">
|
||||
<h2>Method Summary</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">All Methods</button><button id="method-summary-table-tab1" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab1', 3)" class="table-tab">Static Methods</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">Concrete Methods</button></div>
|
||||
<div id="method-summary-table.tabpanel" role="tabpanel" aria-labelledby="method-summary-table-tab0">
|
||||
<div class="summary-table three-column-summary">
|
||||
<div class="table-header col-first">Modifier and Type</div>
|
||||
<div class="table-header col-second">Method</div>
|
||||
<div class="table-header col-last">Description</div>
|
||||
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="EventType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">EventType</a></code></div>
|
||||
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#valueOf(java.lang.String)" class="member-name-link">valueOf</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> name)</code></div>
|
||||
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||||
<div class="block">Returns the enum constant of this class with the specified name.</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="EventType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">EventType</a>[]</code></div>
|
||||
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#values()" class="member-name-link">values</a>()</code></div>
|
||||
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
|
||||
<div class="block">Returns an array containing the constants of this enum class, in
|
||||
the order they are declared.</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-java.lang.Enum">Methods inherited from class <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#method-summary" title="class or interface in java.lang" class="external-link">Enum</a></h3>
|
||||
<code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#clone()" title="class or interface in java.lang" class="external-link">clone</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#compareTo(E)" title="class or interface in java.lang" class="external-link">compareTo</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#describeConstable()" title="class or interface in java.lang" class="external-link">describeConstable</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#equals(java.lang.Object)" title="class or interface in java.lang" class="external-link">equals</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#finalize()" title="class or interface in java.lang" class="external-link">finalize</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#getDeclaringClass()" title="class or interface in java.lang" class="external-link">getDeclaringClass</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#hashCode()" title="class or interface in java.lang" class="external-link">hashCode</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#name()" title="class or interface in java.lang" class="external-link">name</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#ordinal()" title="class or interface in java.lang" class="external-link">ordinal</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#toString()" title="class or interface in java.lang" class="external-link">toString</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html#valueOf(java.lang.Class,java.lang.String)" title="class or interface in java.lang" class="external-link">valueOf</a></code></div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-java.lang.Object">Methods inherited from class <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#method-summary" title="class or interface in java.lang" class="external-link">Object</a></h3>
|
||||
<code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()" title="class or interface in java.lang" class="external-link">getClass</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()" title="class or interface in java.lang" class="external-link">notify</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()" title="class or interface in java.lang" class="external-link">notifyAll</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)" title="class or interface in java.lang" class="external-link">wait</a></code></div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<section class="details">
|
||||
<ul class="details-list">
|
||||
<!-- ============ ENUM CONSTANT DETAIL =========== -->
|
||||
<li>
|
||||
<section class="constant-details" id="enum-constant-detail">
|
||||
<h2>Enum Constant Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="SUSTENANCE">
|
||||
<h3>SUSTENANCE</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type"><a href="EventType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">EventType</a></span> <span class="element-name">SUSTENANCE</span></div>
|
||||
<div class="block">Event card representing Sustenance.</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="SHAMANIC_RITUAL">
|
||||
<h3>SHAMANIC_RITUAL</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type"><a href="EventType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">EventType</a></span> <span class="element-name">SHAMANIC_RITUAL</span></div>
|
||||
<div class="block">Event card representing the Shamanic Ritual.</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="CAVE_PAINTINGS">
|
||||
<h3>CAVE_PAINTINGS</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type"><a href="EventType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">EventType</a></span> <span class="element-name">CAVE_PAINTINGS</span></div>
|
||||
<div class="block">Event card representing Cave Paintings.</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="HUNT">
|
||||
<h3>HUNT</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public static final</span> <span class="return-type"><a href="EventType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">EventType</a></span> <span class="element-name">HUNT</span></div>
|
||||
<div class="block">Event card representing the Hunt.</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
||||
<li>
|
||||
<section class="constructor-details" id="constructor-detail">
|
||||
<h2>Constructor Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="<init>()">
|
||||
<h3>EventType</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">private</span> <span class="element-name">EventType</span>()</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ============ METHOD DETAIL ========== -->
|
||||
<li>
|
||||
<section class="method-details" id="method-detail">
|
||||
<h2>Method Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="values()">
|
||||
<h3>values</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type"><a href="EventType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">EventType</a>[]</span> <span class="element-name">values</span>()</div>
|
||||
<div class="block">Returns an array containing the constants of this enum class, in
|
||||
the order they are declared.</div>
|
||||
<dl class="notes">
|
||||
<dt>Returns:</dt>
|
||||
<dd>an array containing the constants of this enum class, in the order they are declared</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="valueOf(java.lang.String)">
|
||||
<h3>valueOf</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public static</span> <span class="return-type"><a href="EventType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">EventType</a></span> <span class="element-name">valueOf</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> name)</span></div>
|
||||
<div class="block">Returns the enum constant of this class with the specified name.
|
||||
The string must match <i>exactly</i> an identifier used to declare an
|
||||
enum constant in this class. (Extraneous whitespace characters are
|
||||
not permitted.)</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>name</code> - the name of the enum constant to be returned.</dd>
|
||||
<dt>Returns:</dt>
|
||||
<dd>the enum constant with the specified name</dd>
|
||||
<dt>Throws:</dt>
|
||||
<dd><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang" class="external-link">IllegalArgumentException</a></code> - if this enum class has no constant with the specified name</dd>
|
||||
<dd><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/NullPointerException.html" title="class or interface in java.lang" class="external-link">NullPointerException</a></code> - if the argument is null</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<!-- ========= END OF CLASS DATA ========= -->
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
+410
@@ -0,0 +1,410 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="it">
|
||||
<head>
|
||||
<!-- Generated by javadoc (25) on Fri Jun 19 23:05:23 CEST 2026 -->
|
||||
<title>CavePaintings</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="2026-06-19">
|
||||
<meta name="description" content="declaration: module: it.polimi.ingsw.gc14, package: it.polimi.ingsw.gc14.Model.Cards.TribeCards.Events, class: CavePaintings">
|
||||
<meta name="generator" content="javadoc/ClassWriter">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../../resource-files/jquery-ui.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../../resource-files/stylesheet.css">
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/script.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/jquery-3.7.1.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/jquery-ui.min.js"></script>
|
||||
</head>
|
||||
<body class="class-declaration-page">
|
||||
<script type="text/javascript">const pathtoroot = "../../../../../../../../../";
|
||||
loadScripts(document, 'script');</script>
|
||||
<noscript>
|
||||
<div>JavaScript is disabled on your browser.</div>
|
||||
</noscript>
|
||||
<header role="banner">
|
||||
<nav role="navigation">
|
||||
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||
<div class="top-nav" id="navbar-top">
|
||||
<div class="nav-content">
|
||||
<div class="nav-menu-button"><button id="navbar-toggle-button" aria-controls="navbar-top" aria-expanded="false" aria-label="Toggle navigation links"><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span></button></div>
|
||||
<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="../../../../../../../../module-summary.html">Module</a></li>
|
||||
<li class="nav-bar-cell1-rev">Class</li>
|
||||
<li><a href="package-tree.html">Tree</a></li>
|
||||
<li><a href="../../../../../../../../../index-files/index-1.html">Index</a></li>
|
||||
<li><a href="../../../../../../../../../search.html">Search</a></li>
|
||||
<li><a href="../../../../../../../../../help-doc.html#class">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sub-nav">
|
||||
<div class="nav-content">
|
||||
<ol class="sub-nav-list">
|
||||
<li><a href="../../../../../../../../module-summary.html">it.polimi.ingsw.gc14</a></li>
|
||||
<li><a href="package-summary.html">it.polimi.ingsw.gc14.Model.Cards.TribeCards.Events</a></li>
|
||||
<li><a href="CavePaintings.html" class="current-selection">CavePaintings</a></li>
|
||||
</ol>
|
||||
<div class="nav-list-search"><input type="text" id="search-input" disabled placeholder="Search documentation (type /)" aria-label="Search in documentation" autocomplete="off" spellcheck="false"><input type="reset" id="reset-search" disabled value="Reset"></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<span class="skip-nav" id="skip-navbar-top"></span></nav>
|
||||
</header>
|
||||
<div class="main-grid">
|
||||
<nav role="navigation" class="toc" aria-label="Table of contents">
|
||||
<div class="toc-header">Contents <input type="text" class="filter-input" disabled placeholder="Filter contents (type .)" aria-label="Filter table of contents" autocomplete="off" spellcheck="false"><input type="reset" class="reset-filter" disabled tabindex="-1" value="Reset"></div>
|
||||
<ol class="toc-list" tabindex="-1">
|
||||
<li><a href="#" tabindex="0">Description</a></li>
|
||||
<li><a href="#field-summary" tabindex="0">Field Summary</a></li>
|
||||
<li><a href="#constructor-summary" tabindex="0">Constructor Summary</a></li>
|
||||
<li><a href="#method-summary" tabindex="0">Method Summary</a></li>
|
||||
<li><a href="#field-detail" tabindex="0">Field Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#nLower" tabindex="0">nLower</a></li>
|
||||
<li><a href="#nPrestigeRem" tabindex="0">nPrestigeRem</a></li>
|
||||
<li><a href="#nPrestigeMul" tabindex="0">nPrestigeMul</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
<li><a href="#constructor-detail" tabindex="0">Constructor Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#%3Cinit%3E(int,int,int,int)" tabindex="0">CavePaintings(int, int, int, int)</a></li>
|
||||
<li><a href="#%3Cinit%3E(java.lang.String,int,int,int,int)" tabindex="0">CavePaintings(String, int, int, int, int)</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
<li><a href="#method-detail" tabindex="0">Method Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#activateEvent(java.util.ArrayList)" tabindex="0">activateEvent(ArrayList)</a></li>
|
||||
<li><a href="#clone()" tabindex="0">clone()</a></li>
|
||||
<li><a href="#toStringPlayer()" tabindex="0">toStringPlayer()</a></li>
|
||||
<li><a href="#toStringBoard()" tabindex="0">toStringBoard()</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
</ol>
|
||||
<button class="hide-sidebar"><span>Hide sidebar </span><img src="../../../../../../../../../resource-files/left.svg" alt="Hide sidebar"></button><button class="show-sidebar"><img src="../../../../../../../../../resource-files/right.svg" alt="Show sidebar"><span> Show sidebar</span></button></nav>
|
||||
<main role="main">
|
||||
<!-- ======== START OF CLASS DATA ======== -->
|
||||
<div class="header">
|
||||
<h1 title="Class CavePaintings" class="title">Class CavePaintings</h1>
|
||||
</div>
|
||||
<div class="inheritance" title="Inheritance Tree"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">java.lang.Object</a>
|
||||
<div class="inheritance"><a href="../../../PlayableCard.html" title="class in it.polimi.ingsw.gc14.Model">it.polimi.ingsw.gc14.Model.PlayableCard</a>
|
||||
<div class="inheritance"><a href="../../TribeCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">it.polimi.ingsw.gc14.Model.Cards.TribeCard</a>
|
||||
<div class="inheritance"><a href="../EventCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">it.polimi.ingsw.gc14.Model.Cards.TribeCards.EventCard</a>
|
||||
<div class="inheritance">it.polimi.ingsw.gc14.Model.Cards.TribeCards.Events.CavePaintings</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<section class="class-description" id="class-description">
|
||||
<dl class="notes">
|
||||
<dt>All Implemented Interfaces:</dt>
|
||||
<dd><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/Serializable.html" title="class or interface in java.io" class="external-link">Serializable</a></code></dd>
|
||||
</dl>
|
||||
<hr>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="type-signature"><span class="modifiers">public class </span><span class="element-name type-name-label">CavePaintings</span>
|
||||
<span class="extends-implements">extends <a href="../EventCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">EventCard</a></span></div>
|
||||
<div class="block">Represents a Cave Paintings event card.
|
||||
|
||||
<p>This class defines the specific behavior of the Cave Paintings event.</div>
|
||||
<dl class="notes">
|
||||
<dt>See Also:</dt>
|
||||
<dd>
|
||||
<ul class="tag-list">
|
||||
<li><a href="../../../../../../../../../serialized-form.html#it.polimi.ingsw.gc14.Model.Cards.TribeCards.Events.CavePaintings">Serialized Form</a></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
<section class="summary">
|
||||
<ul class="summary-list">
|
||||
<!-- =========== FIELD SUMMARY =========== -->
|
||||
<li>
|
||||
<section class="field-summary" id="field-summary">
|
||||
<h2>Field Summary</h2>
|
||||
<div class="caption"><span>Fields</span></div>
|
||||
<div class="summary-table three-column-summary">
|
||||
<div class="table-header col-first">Modifier and Type</div>
|
||||
<div class="table-header col-second">Field</div>
|
||||
<div class="table-header col-last">Description</div>
|
||||
<div class="col-first even-row-color"><code>private final int</code></div>
|
||||
<div class="col-second even-row-color"><code><a href="#nLower" class="member-name-link">nLower</a></code></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">The minimum number of Artist cards required to avoid the prestige penalty.</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color"><code>private final int</code></div>
|
||||
<div class="col-second odd-row-color"><code><a href="#nPrestigeMul" class="member-name-link">nPrestigeMul</a></code></div>
|
||||
<div class="col-last odd-row-color">
|
||||
<div class="block">The Prestige multiplier applied if the player has at least <code>nLower</code> Artist cards.</div>
|
||||
</div>
|
||||
<div class="col-first even-row-color"><code>private final int</code></div>
|
||||
<div class="col-second even-row-color"><code><a href="#nPrestigeRem" class="member-name-link">nPrestigeRem</a></code></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">The amount of Prestige removed if the player has fewer Artist cards than <code>nLower</code>.</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
||||
<li>
|
||||
<section class="constructor-summary" id="constructor-summary">
|
||||
<h2>Constructor Summary</h2>
|
||||
<div class="caption"><span>Constructors</span></div>
|
||||
<div class="summary-table two-column-summary">
|
||||
<div class="table-header col-first">Constructor</div>
|
||||
<div class="table-header col-last">Description</div>
|
||||
<div class="col-constructor-name even-row-color"><code><a href="#%3Cinit%3E(int,int,int,int)" class="member-name-link">CavePaintings</a><wbr>(int Era,
|
||||
int nLower,
|
||||
int nPrestigeRem,
|
||||
int nPrestigeMul)</code></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">Creates a CavePaintings event card with the specified era and effect parameters.</div>
|
||||
</div>
|
||||
<div class="col-constructor-name odd-row-color"><code><a href="#%3Cinit%3E(java.lang.String,int,int,int,int)" class="member-name-link">CavePaintings</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> idIMG,
|
||||
int Era,
|
||||
int nLower,
|
||||
int nPrestigeRem,
|
||||
int nPrestigeMul)</code></div>
|
||||
<div class="col-last odd-row-color">
|
||||
<div class="block">Creates a CavePaintings event card with the specified image id, era and effect parameters.</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ========== METHOD SUMMARY =========== -->
|
||||
<li>
|
||||
<section class="method-summary" id="method-summary">
|
||||
<h2>Method Summary</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">All Methods</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">Instance Methods</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">Concrete Methods</button></div>
|
||||
<div id="method-summary-table.tabpanel" role="tabpanel" aria-labelledby="method-summary-table-tab0">
|
||||
<div class="summary-table three-column-summary">
|
||||
<div class="table-header col-first">Modifier and Type</div>
|
||||
<div class="table-header col-second">Method</div>
|
||||
<div class="table-header col-last">Description</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="#activateEvent(java.util.ArrayList)" class="member-name-link">activateEvent</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/ArrayList.html" title="class or interface in java.util" class="external-link">ArrayList</a><<a href="../../../Player.html" title="class in it.polimi.ingsw.gc14.Model">Player</a>> playerList)</code></div>
|
||||
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Activates the CavePaintings event for the specified list of players.</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="../EventCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">EventCard</a></code></div>
|
||||
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#clone()" class="member-name-link">clone</a>()</code></div>
|
||||
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Creates and returns a copy of this CavePaintings event card.</div>
|
||||
</div>
|
||||
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
|
||||
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#toStringBoard()" class="member-name-link">toStringBoard</a>()</code></div>
|
||||
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Returns the representation shown on the board (offer track cards).</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
|
||||
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#toStringPlayer()" class="member-name-link">toStringPlayer</a>()</code></div>
|
||||
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Prints a string representation of this <code>TribeCard</code>.</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-it.polimi.ingsw.gc14.Model.Cards.TribeCards.EventCard">Methods inherited from class <a href="../EventCard.html#method-summary" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">EventCard</a></h3>
|
||||
<code><a href="../EventCard.html#getType()" title="getType()">getType</a></code></div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-it.polimi.ingsw.gc14.Model.Cards.TribeCard">Methods inherited from class <a href="../../TribeCard.html#method-summary" title="class in it.polimi.ingsw.gc14.Model.Cards">TribeCard</a></h3>
|
||||
<code><a href="../../TribeCard.html#getNMin()" title="getNMin()">getNMin</a>, <a href="../../TribeCard.html#isEventCard()" title="isEventCard()">isEventCard</a></code></div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-it.polimi.ingsw.gc14.Model.PlayableCard">Methods inherited from class <a href="../../../PlayableCard.html#method-summary" title="class in it.polimi.ingsw.gc14.Model">PlayableCard</a></h3>
|
||||
<code><a href="../../../PlayableCard.html#getEra()" title="getEra()">getEra</a>, <a href="../../../PlayableCard.html#getIdIMG()" title="getIdIMG()">getIdIMG</a></code></div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-java.lang.Object">Methods inherited from class <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#method-summary" title="class or interface in java.lang" class="external-link">Object</a></h3>
|
||||
<code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang" class="external-link">equals</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()" title="class or interface in java.lang" class="external-link">finalize</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()" title="class or interface in java.lang" class="external-link">getClass</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()" title="class or interface in java.lang" class="external-link">hashCode</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()" title="class or interface in java.lang" class="external-link">notify</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()" title="class or interface in java.lang" class="external-link">notifyAll</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()" title="class or interface in java.lang" class="external-link">toString</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)" title="class or interface 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>Field Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="nLower">
|
||||
<h3>nLower</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">private final</span> <span class="return-type">int</span> <span class="element-name">nLower</span></div>
|
||||
<div class="block">The minimum number of Artist cards required to avoid the prestige penalty.
|
||||
Also, the bottom number on the card.</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="nPrestigeRem">
|
||||
<h3>nPrestigeRem</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">private final</span> <span class="return-type">int</span> <span class="element-name">nPrestigeRem</span></div>
|
||||
<div class="block">The amount of Prestige removed if the player has fewer Artist cards than <code>nLower</code>.</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="nPrestigeMul">
|
||||
<h3>nPrestigeMul</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">private final</span> <span class="return-type">int</span> <span class="element-name">nPrestigeMul</span></div>
|
||||
<div class="block">The Prestige multiplier applied if the player has at least <code>nLower</code> Artist cards.</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
||||
<li>
|
||||
<section class="constructor-details" id="constructor-detail">
|
||||
<h2>Constructor Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="<init>(int,int,int,int)">
|
||||
<h3>CavePaintings</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="element-name">CavePaintings</span><wbr><span class="parameters">(int Era,
|
||||
int nLower,
|
||||
int nPrestigeRem,
|
||||
int nPrestigeMul)</span></div>
|
||||
<div class="block">Creates a CavePaintings event card with the specified era and effect parameters.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>Era</code> - the era of the event card.</dd>
|
||||
<dd><code>nLower</code> - the minimum number of Artist cards required to avoid the prestige penalty.</dd>
|
||||
<dd><code>nPrestigeRem</code> - the amount of Prestige removed if the player has fewer Artist cards than <code>nLower</code>.</dd>
|
||||
<dd><code>nPrestigeMul</code> - the Prestige multiplier applied if the player has at least <code>nLower</code> Artist cards.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="<init>(java.lang.String,int,int,int,int)">
|
||||
<h3>CavePaintings</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="element-name">CavePaintings</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> idIMG,
|
||||
int Era,
|
||||
int nLower,
|
||||
int nPrestigeRem,
|
||||
int nPrestigeMul)</span></div>
|
||||
<div class="block">Creates a CavePaintings event card with the specified image id, era and effect parameters.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>idIMG</code> - the image identifier of the CavePaintings event card.</dd>
|
||||
<dd><code>Era</code> - the era of the event card.</dd>
|
||||
<dd><code>nLower</code> - the minimum number of Artist cards required to avoid the prestige penalty.</dd>
|
||||
<dd><code>nPrestigeRem</code> - the amount of Prestige removed if the player has fewer Artist cards than <code>nLower</code>.</dd>
|
||||
<dd><code>nPrestigeMul</code> - the Prestige multiplier applied if the player has at least <code>nLower</code> Artist cards.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ============ METHOD DETAIL ========== -->
|
||||
<li>
|
||||
<section class="method-details" id="method-detail">
|
||||
<h2>Method Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="activateEvent(java.util.ArrayList)">
|
||||
<h3>activateEvent</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">activateEvent</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/ArrayList.html" title="class or interface in java.util" class="external-link">ArrayList</a><<a href="../../../Player.html" title="class in it.polimi.ingsw.gc14.Model">Player</a>> playerList)</span></div>
|
||||
<div class="block">Activates the CavePaintings event for the specified list of players.
|
||||
For each player, the number of Artist cards is computed together with the number
|
||||
of owned building cards having effect id equal to 9.
|
||||
The player gains Food equal to the number of such buildings multiplied by the number of Artist cards.
|
||||
If the player has fewer Artist cards than <code>nLower</code>, the player loses <code>nPrestigeRem</code> Prestige.
|
||||
Otherwise, the player gains Prestige equal to <code>nPrestigeMul</code> multiplied by the number of Artist cards.</div>
|
||||
<dl class="notes">
|
||||
<dt>Specified by:</dt>
|
||||
<dd><code><a href="../EventCard.html#activateEvent(java.util.ArrayList)">activateEvent</a></code> in class <code><a href="../EventCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">EventCard</a></code></dd>
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>playerList</code> - the list of players affected by the event.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="clone()">
|
||||
<h3>clone</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="../EventCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">EventCard</a></span> <span class="element-name">clone</span>()</div>
|
||||
<div class="block">Creates and returns a copy of this CavePaintings event card.</div>
|
||||
<dl class="notes">
|
||||
<dt>Specified by:</dt>
|
||||
<dd><code><a href="../EventCard.html#clone()">clone</a></code> in class <code><a href="../EventCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">EventCard</a></code></dd>
|
||||
<dt>Returns:</dt>
|
||||
<dd>a clone of this CavePaintings event card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="toStringPlayer()">
|
||||
<h3>toStringPlayer</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span> <span class="element-name">toStringPlayer</span>()</div>
|
||||
<div class="block">Prints a string representation of this <code>TribeCard</code>. This specific variation is used in the <code>Game</code>'s
|
||||
toString to print a more detailed version.
|
||||
<p>NOTE: <code>NUpper</code> is not a real attribute used in calculations (only <code>nLower</code> is needed),
|
||||
however it's a parameter on the cards' design.
|
||||
</p>
|
||||
Includes:
|
||||
<ul>
|
||||
<li><a href="#nLower"><code>nLower</code></a></li>
|
||||
<li><code>NUpper</code></li>
|
||||
<li><a href="#nPrestigeRem"><code>nPrestigeRem</code></a></li>
|
||||
<li><a href="#nPrestigeMul"><code>nPrestigeMul</code></a></li>
|
||||
</ul></div>
|
||||
<dl class="notes">
|
||||
<dt>Specified by:</dt>
|
||||
<dd><code><a href="../../../PlayableCard.html#toStringPlayer()">toStringPlayer</a></code> in class <code><a href="../../../PlayableCard.html" title="class in it.polimi.ingsw.gc14.Model">PlayableCard</a></code></dd>
|
||||
<dt>Returns:</dt>
|
||||
<dd><code>String</code> - a string representation of this <code>TribeCard</code>.</dd>
|
||||
<dt>See Also:</dt>
|
||||
<dd>
|
||||
<ul class="tag-list">
|
||||
<li><a href="../../TribeCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards"><code>TribeCard</code></a></li>
|
||||
<li><a href="../../../Game.html" title="class in it.polimi.ingsw.gc14.Model"><code>Game</code></a></li>
|
||||
<li><a href="../../../GamePackage/Board.html" title="class in it.polimi.ingsw.gc14.Model.GamePackage"><code>Board</code></a></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="toStringBoard()">
|
||||
<h3>toStringBoard</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span> <span class="element-name">toStringBoard</span>()</div>
|
||||
<div class="block"><span class="description-from-type-label">Description copied from class: <code><a href="../../../PlayableCard.html#toStringBoard()">PlayableCard</a></code></span></div>
|
||||
<div class="block">Returns the representation shown on the board (offer track cards).</div>
|
||||
<dl class="notes">
|
||||
<dt>Specified by:</dt>
|
||||
<dd><code><a href="../../../PlayableCard.html#toStringBoard()">toStringBoard</a></code> in class <code><a href="../../../PlayableCard.html" title="class in it.polimi.ingsw.gc14.Model">PlayableCard</a></code></dd>
|
||||
<dt>Returns:</dt>
|
||||
<dd>the board string representation of this card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<!-- ========= END OF CLASS DATA ========= -->
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
+389
@@ -0,0 +1,389 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="it">
|
||||
<head>
|
||||
<!-- Generated by javadoc (25) on Fri Jun 19 23:05:23 CEST 2026 -->
|
||||
<title>Hunt</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="2026-06-19">
|
||||
<meta name="description" content="declaration: module: it.polimi.ingsw.gc14, package: it.polimi.ingsw.gc14.Model.Cards.TribeCards.Events, class: Hunt">
|
||||
<meta name="generator" content="javadoc/ClassWriter">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../../resource-files/jquery-ui.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../../resource-files/stylesheet.css">
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/script.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/jquery-3.7.1.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/jquery-ui.min.js"></script>
|
||||
</head>
|
||||
<body class="class-declaration-page">
|
||||
<script type="text/javascript">const pathtoroot = "../../../../../../../../../";
|
||||
loadScripts(document, 'script');</script>
|
||||
<noscript>
|
||||
<div>JavaScript is disabled on your browser.</div>
|
||||
</noscript>
|
||||
<header role="banner">
|
||||
<nav role="navigation">
|
||||
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||
<div class="top-nav" id="navbar-top">
|
||||
<div class="nav-content">
|
||||
<div class="nav-menu-button"><button id="navbar-toggle-button" aria-controls="navbar-top" aria-expanded="false" aria-label="Toggle navigation links"><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span></button></div>
|
||||
<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="../../../../../../../../module-summary.html">Module</a></li>
|
||||
<li class="nav-bar-cell1-rev">Class</li>
|
||||
<li><a href="package-tree.html">Tree</a></li>
|
||||
<li><a href="../../../../../../../../../index-files/index-1.html">Index</a></li>
|
||||
<li><a href="../../../../../../../../../search.html">Search</a></li>
|
||||
<li><a href="../../../../../../../../../help-doc.html#class">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sub-nav">
|
||||
<div class="nav-content">
|
||||
<ol class="sub-nav-list">
|
||||
<li><a href="../../../../../../../../module-summary.html">it.polimi.ingsw.gc14</a></li>
|
||||
<li><a href="package-summary.html">it.polimi.ingsw.gc14.Model.Cards.TribeCards.Events</a></li>
|
||||
<li><a href="Hunt.html" class="current-selection">Hunt</a></li>
|
||||
</ol>
|
||||
<div class="nav-list-search"><input type="text" id="search-input" disabled placeholder="Search documentation (type /)" aria-label="Search in documentation" autocomplete="off" spellcheck="false"><input type="reset" id="reset-search" disabled value="Reset"></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<span class="skip-nav" id="skip-navbar-top"></span></nav>
|
||||
</header>
|
||||
<div class="main-grid">
|
||||
<nav role="navigation" class="toc" aria-label="Table of contents">
|
||||
<div class="toc-header">Contents <input type="text" class="filter-input" disabled placeholder="Filter contents (type .)" aria-label="Filter table of contents" autocomplete="off" spellcheck="false"><input type="reset" class="reset-filter" disabled tabindex="-1" value="Reset"></div>
|
||||
<ol class="toc-list" tabindex="-1">
|
||||
<li><a href="#" tabindex="0">Description</a></li>
|
||||
<li><a href="#field-summary" tabindex="0">Field Summary</a></li>
|
||||
<li><a href="#constructor-summary" tabindex="0">Constructor Summary</a></li>
|
||||
<li><a href="#method-summary" tabindex="0">Method Summary</a></li>
|
||||
<li><a href="#field-detail" tabindex="0">Field Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#BASE_FOOD_PER_HUNTER" tabindex="0">BASE_FOOD_PER_HUNTER</a></li>
|
||||
<li><a href="#prestigeMultiplier" tabindex="0">prestigeMultiplier</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
<li><a href="#constructor-detail" tabindex="0">Constructor Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#%3Cinit%3E(int,int)" tabindex="0">Hunt(int, int)</a></li>
|
||||
<li><a href="#%3Cinit%3E(java.lang.String,int,int)" tabindex="0">Hunt(String, int, int)</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
<li><a href="#method-detail" tabindex="0">Method Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#getPrestigeMultiplier()" tabindex="0">getPrestigeMultiplier()</a></li>
|
||||
<li><a href="#activateEvent(java.util.ArrayList)" tabindex="0">activateEvent(ArrayList)</a></li>
|
||||
<li><a href="#clone()" tabindex="0">clone()</a></li>
|
||||
<li><a href="#toStringPlayer()" tabindex="0">toStringPlayer()</a></li>
|
||||
<li><a href="#toStringBoard()" tabindex="0">toStringBoard()</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
</ol>
|
||||
<button class="hide-sidebar"><span>Hide sidebar </span><img src="../../../../../../../../../resource-files/left.svg" alt="Hide sidebar"></button><button class="show-sidebar"><img src="../../../../../../../../../resource-files/right.svg" alt="Show sidebar"><span> Show sidebar</span></button></nav>
|
||||
<main role="main">
|
||||
<!-- ======== START OF CLASS DATA ======== -->
|
||||
<div class="header">
|
||||
<h1 title="Class Hunt" class="title">Class Hunt</h1>
|
||||
</div>
|
||||
<div class="inheritance" title="Inheritance Tree"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">java.lang.Object</a>
|
||||
<div class="inheritance"><a href="../../../PlayableCard.html" title="class in it.polimi.ingsw.gc14.Model">it.polimi.ingsw.gc14.Model.PlayableCard</a>
|
||||
<div class="inheritance"><a href="../../TribeCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">it.polimi.ingsw.gc14.Model.Cards.TribeCard</a>
|
||||
<div class="inheritance"><a href="../EventCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">it.polimi.ingsw.gc14.Model.Cards.TribeCards.EventCard</a>
|
||||
<div class="inheritance">it.polimi.ingsw.gc14.Model.Cards.TribeCards.Events.Hunt</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<section class="class-description" id="class-description">
|
||||
<dl class="notes">
|
||||
<dt>All Implemented Interfaces:</dt>
|
||||
<dd><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/Serializable.html" title="class or interface in java.io" class="external-link">Serializable</a></code></dd>
|
||||
</dl>
|
||||
<hr>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="type-signature"><span class="modifiers">public class </span><span class="element-name type-name-label">Hunt</span>
|
||||
<span class="extends-implements">extends <a href="../EventCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">EventCard</a></span></div>
|
||||
<div class="block">When activated, gives Food and Prestige Points to every player.</div>
|
||||
<dl class="notes">
|
||||
<dt>See Also:</dt>
|
||||
<dd>
|
||||
<ul class="tag-list">
|
||||
<li><a href="../EventCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards"><code>EventCard</code></a></li>
|
||||
<li><a href="../../../../../../../../../serialized-form.html#it.polimi.ingsw.gc14.Model.Cards.TribeCards.Events.Hunt">Serialized Form</a></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
<section class="summary">
|
||||
<ul class="summary-list">
|
||||
<!-- =========== FIELD SUMMARY =========== -->
|
||||
<li>
|
||||
<section class="field-summary" id="field-summary">
|
||||
<h2>Field Summary</h2>
|
||||
<div class="caption"><span>Fields</span></div>
|
||||
<div class="summary-table three-column-summary">
|
||||
<div class="table-header col-first">Modifier and Type</div>
|
||||
<div class="table-header col-second">Field</div>
|
||||
<div class="table-header col-last">Description</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="#BASE_FOOD_PER_HUNTER" class="member-name-link">BASE_FOOD_PER_HUNTER</a></code></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">Base food units granted per Hunter.</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color"><code>private final int</code></div>
|
||||
<div class="col-second odd-row-color"><code><a href="#prestigeMultiplier" class="member-name-link">prestigeMultiplier</a></code></div>
|
||||
<div class="col-last odd-row-color">
|
||||
<div class="block">Prestige Points multiplier used during the event.</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
||||
<li>
|
||||
<section class="constructor-summary" id="constructor-summary">
|
||||
<h2>Constructor Summary</h2>
|
||||
<div class="caption"><span>Constructors</span></div>
|
||||
<div class="summary-table two-column-summary">
|
||||
<div class="table-header col-first">Constructor</div>
|
||||
<div class="table-header col-last">Description</div>
|
||||
<div class="col-constructor-name even-row-color"><code><a href="#%3Cinit%3E(int,int)" class="member-name-link">Hunt</a><wbr>(int Era,
|
||||
int prestigeMultiplier)</code></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">Creates a new Hunt event card.</div>
|
||||
</div>
|
||||
<div class="col-constructor-name odd-row-color"><code><a href="#%3Cinit%3E(java.lang.String,int,int)" class="member-name-link">Hunt</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> idIMG,
|
||||
int Era,
|
||||
int prestigeMultiplier)</code></div>
|
||||
<div class="col-last odd-row-color">
|
||||
<div class="block">Creates a new Hunt event card.</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ========== METHOD SUMMARY =========== -->
|
||||
<li>
|
||||
<section class="method-summary" id="method-summary">
|
||||
<h2>Method Summary</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">All Methods</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">Instance Methods</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">Concrete Methods</button></div>
|
||||
<div id="method-summary-table.tabpanel" role="tabpanel" aria-labelledby="method-summary-table-tab0">
|
||||
<div class="summary-table three-column-summary">
|
||||
<div class="table-header col-first">Modifier and Type</div>
|
||||
<div class="table-header col-second">Method</div>
|
||||
<div class="table-header col-last">Description</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="#activateEvent(java.util.ArrayList)" class="member-name-link">activateEvent</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/ArrayList.html" title="class or interface in java.util" class="external-link">ArrayList</a><<a href="../../../Player.html" title="class in it.polimi.ingsw.gc14.Model">Player</a>> playerList)</code></div>
|
||||
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Activates the event card "Hunt".</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="../EventCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">EventCard</a></code></div>
|
||||
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#clone()" class="member-name-link">clone</a>()</code></div>
|
||||
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Creates and returns a copy of this Hunt card.</div>
|
||||
</div>
|
||||
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>(package private) int</code></div>
|
||||
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getPrestigeMultiplier()" class="member-name-link">getPrestigeMultiplier</a>()</code></div>
|
||||
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Gets Prestige Points multiplier used during the event.</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
|
||||
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#toStringBoard()" class="member-name-link">toStringBoard</a>()</code></div>
|
||||
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Returns the representation shown on the board (offer track cards).</div>
|
||||
</div>
|
||||
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
|
||||
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#toStringPlayer()" class="member-name-link">toStringPlayer</a>()</code></div>
|
||||
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Returns the compact representation shown in the player hand panel.</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-it.polimi.ingsw.gc14.Model.Cards.TribeCards.EventCard">Methods inherited from class <a href="../EventCard.html#method-summary" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">EventCard</a></h3>
|
||||
<code><a href="../EventCard.html#getType()" title="getType()">getType</a></code></div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-it.polimi.ingsw.gc14.Model.Cards.TribeCard">Methods inherited from class <a href="../../TribeCard.html#method-summary" title="class in it.polimi.ingsw.gc14.Model.Cards">TribeCard</a></h3>
|
||||
<code><a href="../../TribeCard.html#getNMin()" title="getNMin()">getNMin</a>, <a href="../../TribeCard.html#isEventCard()" title="isEventCard()">isEventCard</a></code></div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-it.polimi.ingsw.gc14.Model.PlayableCard">Methods inherited from class <a href="../../../PlayableCard.html#method-summary" title="class in it.polimi.ingsw.gc14.Model">PlayableCard</a></h3>
|
||||
<code><a href="../../../PlayableCard.html#getEra()" title="getEra()">getEra</a>, <a href="../../../PlayableCard.html#getIdIMG()" title="getIdIMG()">getIdIMG</a></code></div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-java.lang.Object">Methods inherited from class <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#method-summary" title="class or interface in java.lang" class="external-link">Object</a></h3>
|
||||
<code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang" class="external-link">equals</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()" title="class or interface in java.lang" class="external-link">finalize</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()" title="class or interface in java.lang" class="external-link">getClass</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()" title="class or interface in java.lang" class="external-link">hashCode</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()" title="class or interface in java.lang" class="external-link">notify</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()" title="class or interface in java.lang" class="external-link">notifyAll</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()" title="class or interface in java.lang" class="external-link">toString</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)" title="class or interface 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>Field Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="BASE_FOOD_PER_HUNTER">
|
||||
<h3>BASE_FOOD_PER_HUNTER</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">private static final</span> <span class="return-type">int</span> <span class="element-name">BASE_FOOD_PER_HUNTER</span></div>
|
||||
<div class="block">Base food units granted per Hunter. Always 1; increased by Building 7.</div>
|
||||
<dl class="notes">
|
||||
<dt>See Also:</dt>
|
||||
<dd>
|
||||
<ul class="tag-list">
|
||||
<li><a href="../../../../../../../../../constant-values.html#it.polimi.ingsw.gc14.Model.Cards.TribeCards.Events.Hunt.BASE_FOOD_PER_HUNTER">Constant Field Values</a></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="prestigeMultiplier">
|
||||
<h3>prestigeMultiplier</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">private final</span> <span class="return-type">int</span> <span class="element-name">prestigeMultiplier</span></div>
|
||||
<div class="block">Prestige Points multiplier used during the event.</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
||||
<li>
|
||||
<section class="constructor-details" id="constructor-detail">
|
||||
<h2>Constructor Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="<init>(int,int)">
|
||||
<h3>Hunt</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="element-name">Hunt</span><wbr><span class="parameters">(int Era,
|
||||
int prestigeMultiplier)</span></div>
|
||||
<div class="block">Creates a new Hunt event card.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>Era</code> - the era of the card</dd>
|
||||
<dd><code>prestigeMultiplier</code> - prestige points multiplicator used during the event</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="<init>(java.lang.String,int,int)">
|
||||
<h3>Hunt</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="element-name">Hunt</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> idIMG,
|
||||
int Era,
|
||||
int prestigeMultiplier)</span></div>
|
||||
<div class="block">Creates a new Hunt event card.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>idIMG</code> - the image identifier of the Hunt event card.</dd>
|
||||
<dd><code>Era</code> - the era of the card.</dd>
|
||||
<dd><code>prestigeMultiplier</code> - the prestige points multiplier used during the event.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ============ METHOD DETAIL ========== -->
|
||||
<li>
|
||||
<section class="method-details" id="method-detail">
|
||||
<h2>Method Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="getPrestigeMultiplier()">
|
||||
<h3>getPrestigeMultiplier</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="return-type">int</span> <span class="element-name">getPrestigeMultiplier</span>()</div>
|
||||
<div class="block">Gets Prestige Points multiplier used during the event.</div>
|
||||
<dl class="notes">
|
||||
<dt>Returns:</dt>
|
||||
<dd>int <code>PrestigeMultiplier</code></dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="activateEvent(java.util.ArrayList)">
|
||||
<h3>activateEvent</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">activateEvent</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/ArrayList.html" title="class or interface in java.util" class="external-link">ArrayList</a><<a href="../../../Player.html" title="class in it.polimi.ingsw.gc14.Model">Player</a>> playerList)</span></div>
|
||||
<div class="block">Activates the event card "Hunt".
|
||||
Each player gains Food and Prestige Points for each Hunter in their tribe,
|
||||
multiplied by the respective multipliers (base food per hunter is 1).
|
||||
Buildings influence:
|
||||
Building 7: adds 1 to both the food and prestige multiplier for each copy owned.</div>
|
||||
<dl class="notes">
|
||||
<dt>Specified by:</dt>
|
||||
<dd><code><a href="../EventCard.html#activateEvent(java.util.ArrayList)">activateEvent</a></code> in class <code><a href="../EventCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">EventCard</a></code></dd>
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>playerList</code> - the list of all players in the game.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="clone()">
|
||||
<h3>clone</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="../EventCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">EventCard</a></span> <span class="element-name">clone</span>()</div>
|
||||
<div class="block">Creates and returns a copy of this Hunt card.</div>
|
||||
<dl class="notes">
|
||||
<dt>Specified by:</dt>
|
||||
<dd><code><a href="../EventCard.html#clone()">clone</a></code> in class <code><a href="../EventCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">EventCard</a></code></dd>
|
||||
<dt>Returns:</dt>
|
||||
<dd>a new Hunt card with the same era and prestige multiplier</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="toStringPlayer()">
|
||||
<h3>toStringPlayer</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span> <span class="element-name">toStringPlayer</span>()</div>
|
||||
<div class="block"><span class="description-from-type-label">Description copied from class: <code><a href="../../../PlayableCard.html#toStringPlayer()">PlayableCard</a></code></span></div>
|
||||
<div class="block">Returns the compact representation shown in the player hand panel.</div>
|
||||
<dl class="notes">
|
||||
<dt>Specified by:</dt>
|
||||
<dd><code><a href="../../../PlayableCard.html#toStringPlayer()">toStringPlayer</a></code> in class <code><a href="../../../PlayableCard.html" title="class in it.polimi.ingsw.gc14.Model">PlayableCard</a></code></dd>
|
||||
<dt>Returns:</dt>
|
||||
<dd>the player-hand string representation of this card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="toStringBoard()">
|
||||
<h3>toStringBoard</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span> <span class="element-name">toStringBoard</span>()</div>
|
||||
<div class="block"><span class="description-from-type-label">Description copied from class: <code><a href="../../../PlayableCard.html#toStringBoard()">PlayableCard</a></code></span></div>
|
||||
<div class="block">Returns the representation shown on the board (offer track cards).</div>
|
||||
<dl class="notes">
|
||||
<dt>Specified by:</dt>
|
||||
<dd><code><a href="../../../PlayableCard.html#toStringBoard()">toStringBoard</a></code> in class <code><a href="../../../PlayableCard.html" title="class in it.polimi.ingsw.gc14.Model">PlayableCard</a></code></dd>
|
||||
<dt>Returns:</dt>
|
||||
<dd>the board string representation of this card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<!-- ========= END OF CLASS DATA ========= -->
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
+446
@@ -0,0 +1,446 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="it">
|
||||
<head>
|
||||
<!-- Generated by javadoc (25) on Fri Jun 19 23:05:23 CEST 2026 -->
|
||||
<title>ShamanicRitual</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="2026-06-19">
|
||||
<meta name="description" content="declaration: module: it.polimi.ingsw.gc14, package: it.polimi.ingsw.gc14.Model.Cards.TribeCards.Events, class: ShamanicRitual">
|
||||
<meta name="generator" content="javadoc/ClassWriter">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../../resource-files/jquery-ui.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../../resource-files/stylesheet.css">
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/script.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/jquery-3.7.1.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/jquery-ui.min.js"></script>
|
||||
</head>
|
||||
<body class="class-declaration-page">
|
||||
<script type="text/javascript">const pathtoroot = "../../../../../../../../../";
|
||||
loadScripts(document, 'script');</script>
|
||||
<noscript>
|
||||
<div>JavaScript is disabled on your browser.</div>
|
||||
</noscript>
|
||||
<header role="banner">
|
||||
<nav role="navigation">
|
||||
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||
<div class="top-nav" id="navbar-top">
|
||||
<div class="nav-content">
|
||||
<div class="nav-menu-button"><button id="navbar-toggle-button" aria-controls="navbar-top" aria-expanded="false" aria-label="Toggle navigation links"><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span></button></div>
|
||||
<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="../../../../../../../../module-summary.html">Module</a></li>
|
||||
<li class="nav-bar-cell1-rev">Class</li>
|
||||
<li><a href="package-tree.html">Tree</a></li>
|
||||
<li><a href="../../../../../../../../../index-files/index-1.html">Index</a></li>
|
||||
<li><a href="../../../../../../../../../search.html">Search</a></li>
|
||||
<li><a href="../../../../../../../../../help-doc.html#class">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sub-nav">
|
||||
<div class="nav-content">
|
||||
<ol class="sub-nav-list">
|
||||
<li><a href="../../../../../../../../module-summary.html">it.polimi.ingsw.gc14</a></li>
|
||||
<li><a href="package-summary.html">it.polimi.ingsw.gc14.Model.Cards.TribeCards.Events</a></li>
|
||||
<li><a href="ShamanicRitual.html" class="current-selection">ShamanicRitual</a></li>
|
||||
</ol>
|
||||
<div class="nav-list-search"><input type="text" id="search-input" disabled placeholder="Search documentation (type /)" aria-label="Search in documentation" autocomplete="off" spellcheck="false"><input type="reset" id="reset-search" disabled value="Reset"></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<span class="skip-nav" id="skip-navbar-top"></span></nav>
|
||||
</header>
|
||||
<div class="main-grid">
|
||||
<nav role="navigation" class="toc" aria-label="Table of contents">
|
||||
<div class="toc-header">Contents <input type="text" class="filter-input" disabled placeholder="Filter contents (type .)" aria-label="Filter table of contents" autocomplete="off" spellcheck="false"><input type="reset" class="reset-filter" disabled tabindex="-1" value="Reset"></div>
|
||||
<ol class="toc-list" tabindex="-1">
|
||||
<li><a href="#" tabindex="0">Description</a></li>
|
||||
<li><a href="#field-summary" tabindex="0">Field Summary</a></li>
|
||||
<li><a href="#constructor-summary" tabindex="0">Constructor Summary</a></li>
|
||||
<li><a href="#method-summary" tabindex="0">Method Summary</a></li>
|
||||
<li><a href="#field-detail" tabindex="0">Field Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#BUILDING5_BONUS_ICONS" tabindex="0">BUILDING5_BONUS_ICONS</a></li>
|
||||
<li><a href="#prestigeToAdd" tabindex="0">prestigeToAdd</a></li>
|
||||
<li><a href="#prestigeToRemove" tabindex="0">prestigeToRemove</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
<li><a href="#constructor-detail" tabindex="0">Constructor Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#%3Cinit%3E(int,int,int)" tabindex="0">ShamanicRitual(int, int, int)</a></li>
|
||||
<li><a href="#%3Cinit%3E(java.lang.String,int,int,int)" tabindex="0">ShamanicRitual(String, int, int, int)</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
<li><a href="#method-detail" tabindex="0">Method Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#getPrestigeToAdd()" tabindex="0">getPrestigeToAdd()</a></li>
|
||||
<li><a href="#getPrestigeToRemove()" tabindex="0">getPrestigeToRemove()</a></li>
|
||||
<li><a href="#activateEvent(java.util.ArrayList)" tabindex="0">activateEvent(ArrayList)</a></li>
|
||||
<li><a href="#clone()" tabindex="0">clone()</a></li>
|
||||
<li><a href="#toStringPlayer()" tabindex="0">toStringPlayer()</a></li>
|
||||
<li><a href="#toStringBoard()" tabindex="0">toStringBoard()</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
</ol>
|
||||
<button class="hide-sidebar"><span>Hide sidebar </span><img src="../../../../../../../../../resource-files/left.svg" alt="Hide sidebar"></button><button class="show-sidebar"><img src="../../../../../../../../../resource-files/right.svg" alt="Show sidebar"><span> Show sidebar</span></button></nav>
|
||||
<main role="main">
|
||||
<!-- ======== START OF CLASS DATA ======== -->
|
||||
<div class="header">
|
||||
<h1 title="Class ShamanicRitual" class="title">Class ShamanicRitual</h1>
|
||||
</div>
|
||||
<div class="inheritance" title="Inheritance Tree"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">java.lang.Object</a>
|
||||
<div class="inheritance"><a href="../../../PlayableCard.html" title="class in it.polimi.ingsw.gc14.Model">it.polimi.ingsw.gc14.Model.PlayableCard</a>
|
||||
<div class="inheritance"><a href="../../TribeCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">it.polimi.ingsw.gc14.Model.Cards.TribeCard</a>
|
||||
<div class="inheritance"><a href="../EventCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">it.polimi.ingsw.gc14.Model.Cards.TribeCards.EventCard</a>
|
||||
<div class="inheritance">it.polimi.ingsw.gc14.Model.Cards.TribeCards.Events.ShamanicRitual</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<section class="class-description" id="class-description">
|
||||
<dl class="notes">
|
||||
<dt>All Implemented Interfaces:</dt>
|
||||
<dd><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/Serializable.html" title="class or interface in java.io" class="external-link">Serializable</a></code></dd>
|
||||
</dl>
|
||||
<hr>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="type-signature"><span class="modifiers">public class </span><span class="element-name type-name-label">ShamanicRitual</span>
|
||||
<span class="extends-implements">extends <a href="../EventCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">EventCard</a></span></div>
|
||||
<div class="block">When activated, rewards the player with the most shaman icons and penalizes the one with the fewest.</div>
|
||||
<dl class="notes">
|
||||
<dt>See Also:</dt>
|
||||
<dd>
|
||||
<ul class="tag-list">
|
||||
<li><a href="../EventCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards"><code>EventCard</code></a></li>
|
||||
<li><a href="../../../../../../../../../serialized-form.html#it.polimi.ingsw.gc14.Model.Cards.TribeCards.Events.ShamanicRitual">Serialized Form</a></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
<section class="summary">
|
||||
<ul class="summary-list">
|
||||
<!-- =========== FIELD SUMMARY =========== -->
|
||||
<li>
|
||||
<section class="field-summary" id="field-summary">
|
||||
<h2>Field Summary</h2>
|
||||
<div class="caption"><span>Fields</span></div>
|
||||
<div class="summary-table three-column-summary">
|
||||
<div class="table-header col-first">Modifier and Type</div>
|
||||
<div class="table-header col-second">Field</div>
|
||||
<div class="table-header col-last">Description</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="#BUILDING5_BONUS_ICONS" class="member-name-link">BUILDING5_BONUS_ICONS</a></code></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">Bonus shaman icons granted per Building 5 owned during this event.</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color"><code>private final int</code></div>
|
||||
<div class="col-second odd-row-color"><code><a href="#prestigeToAdd" class="member-name-link">prestigeToAdd</a></code></div>
|
||||
<div class="col-last odd-row-color">
|
||||
<div class="block">Prestige points awarded to the player with the most shaman icons.</div>
|
||||
</div>
|
||||
<div class="col-first even-row-color"><code>private final int</code></div>
|
||||
<div class="col-second even-row-color"><code><a href="#prestigeToRemove" class="member-name-link">prestigeToRemove</a></code></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">Prestige points removed from the player with the fewest shaman icons.</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
||||
<li>
|
||||
<section class="constructor-summary" id="constructor-summary">
|
||||
<h2>Constructor Summary</h2>
|
||||
<div class="caption"><span>Constructors</span></div>
|
||||
<div class="summary-table two-column-summary">
|
||||
<div class="table-header col-first">Constructor</div>
|
||||
<div class="table-header col-last">Description</div>
|
||||
<div class="col-constructor-name even-row-color"><code><a href="#%3Cinit%3E(int,int,int)" class="member-name-link">ShamanicRitual</a><wbr>(int Era,
|
||||
int prestigeToAdd,
|
||||
int prestigeToRemove)</code></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">Creates a new ShamanicRitual event card.</div>
|
||||
</div>
|
||||
<div class="col-constructor-name odd-row-color"><code><a href="#%3Cinit%3E(java.lang.String,int,int,int)" class="member-name-link">ShamanicRitual</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> idIMG,
|
||||
int Era,
|
||||
int prestigeToAdd,
|
||||
int prestigeToRemove)</code></div>
|
||||
<div class="col-last odd-row-color">
|
||||
<div class="block">Creates a new ShamanicRitual event card.</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ========== METHOD SUMMARY =========== -->
|
||||
<li>
|
||||
<section class="method-summary" id="method-summary">
|
||||
<h2>Method Summary</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">All Methods</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">Instance Methods</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">Concrete Methods</button></div>
|
||||
<div id="method-summary-table.tabpanel" role="tabpanel" aria-labelledby="method-summary-table-tab0">
|
||||
<div class="summary-table three-column-summary">
|
||||
<div class="table-header col-first">Modifier and Type</div>
|
||||
<div class="table-header col-second">Method</div>
|
||||
<div class="table-header col-last">Description</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="#activateEvent(java.util.ArrayList)" class="member-name-link">activateEvent</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/ArrayList.html" title="class or interface in java.util" class="external-link">ArrayList</a><<a href="../../../Player.html" title="class in it.polimi.ingsw.gc14.Model">Player</a>> playerList)</code></div>
|
||||
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Activates the event card "Shamanic Ritual".</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="../EventCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">EventCard</a></code></div>
|
||||
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#clone()" class="member-name-link">clone</a>()</code></div>
|
||||
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Creates and returns a copy of this ShamanicRitual card.</div>
|
||||
</div>
|
||||
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>(package private) int</code></div>
|
||||
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getPrestigeToAdd()" class="member-name-link">getPrestigeToAdd</a>()</code></div>
|
||||
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Returns the prestige points awarded to the player with the most shaman icons.</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>(package private) int</code></div>
|
||||
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getPrestigeToRemove()" class="member-name-link">getPrestigeToRemove</a>()</code></div>
|
||||
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Returns the prestige points removed from the player with the fewest shaman icons.</div>
|
||||
</div>
|
||||
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
|
||||
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#toStringBoard()" class="member-name-link">toStringBoard</a>()</code></div>
|
||||
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Returns the representation shown on the board (offer track cards).</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
|
||||
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#toStringPlayer()" class="member-name-link">toStringPlayer</a>()</code></div>
|
||||
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Prints a string representation of this <code>TribeCard</code>.</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-it.polimi.ingsw.gc14.Model.Cards.TribeCards.EventCard">Methods inherited from class <a href="../EventCard.html#method-summary" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">EventCard</a></h3>
|
||||
<code><a href="../EventCard.html#getType()" title="getType()">getType</a></code></div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-it.polimi.ingsw.gc14.Model.Cards.TribeCard">Methods inherited from class <a href="../../TribeCard.html#method-summary" title="class in it.polimi.ingsw.gc14.Model.Cards">TribeCard</a></h3>
|
||||
<code><a href="../../TribeCard.html#getNMin()" title="getNMin()">getNMin</a>, <a href="../../TribeCard.html#isEventCard()" title="isEventCard()">isEventCard</a></code></div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-it.polimi.ingsw.gc14.Model.PlayableCard">Methods inherited from class <a href="../../../PlayableCard.html#method-summary" title="class in it.polimi.ingsw.gc14.Model">PlayableCard</a></h3>
|
||||
<code><a href="../../../PlayableCard.html#getEra()" title="getEra()">getEra</a>, <a href="../../../PlayableCard.html#getIdIMG()" title="getIdIMG()">getIdIMG</a></code></div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-java.lang.Object">Methods inherited from class <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#method-summary" title="class or interface in java.lang" class="external-link">Object</a></h3>
|
||||
<code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang" class="external-link">equals</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()" title="class or interface in java.lang" class="external-link">finalize</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()" title="class or interface in java.lang" class="external-link">getClass</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()" title="class or interface in java.lang" class="external-link">hashCode</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()" title="class or interface in java.lang" class="external-link">notify</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()" title="class or interface in java.lang" class="external-link">notifyAll</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()" title="class or interface in java.lang" class="external-link">toString</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)" title="class or interface 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>Field Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="BUILDING5_BONUS_ICONS">
|
||||
<h3>BUILDING5_BONUS_ICONS</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">private static final</span> <span class="return-type">int</span> <span class="element-name">BUILDING5_BONUS_ICONS</span></div>
|
||||
<div class="block">Bonus shaman icons granted per Building 5 owned during this event.</div>
|
||||
<dl class="notes">
|
||||
<dt>See Also:</dt>
|
||||
<dd>
|
||||
<ul class="tag-list">
|
||||
<li><a href="../../../../../../../../../constant-values.html#it.polimi.ingsw.gc14.Model.Cards.TribeCards.Events.ShamanicRitual.BUILDING5_BONUS_ICONS">Constant Field Values</a></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="prestigeToAdd">
|
||||
<h3>prestigeToAdd</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">private final</span> <span class="return-type">int</span> <span class="element-name">prestigeToAdd</span></div>
|
||||
<div class="block">Prestige points awarded to the player with the most shaman icons.</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="prestigeToRemove">
|
||||
<h3>prestigeToRemove</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">private final</span> <span class="return-type">int</span> <span class="element-name">prestigeToRemove</span></div>
|
||||
<div class="block">Prestige points removed from the player with the fewest shaman icons.</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
||||
<li>
|
||||
<section class="constructor-details" id="constructor-detail">
|
||||
<h2>Constructor Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="<init>(int,int,int)">
|
||||
<h3>ShamanicRitual</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="element-name">ShamanicRitual</span><wbr><span class="parameters">(int Era,
|
||||
int prestigeToAdd,
|
||||
int prestigeToRemove)</span></div>
|
||||
<div class="block">Creates a new ShamanicRitual event card.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>Era</code> - the era of the card</dd>
|
||||
<dd><code>prestigeToAdd</code> - prestige points awarded to the player with the most icons</dd>
|
||||
<dd><code>prestigeToRemove</code> - prestige points removed from the player with the fewest icons</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="<init>(java.lang.String,int,int,int)">
|
||||
<h3>ShamanicRitual</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="element-name">ShamanicRitual</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> idIMG,
|
||||
int Era,
|
||||
int prestigeToAdd,
|
||||
int prestigeToRemove)</span></div>
|
||||
<div class="block">Creates a new ShamanicRitual event card.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>idIMG</code> - the image identifier of the ShamanicRitual event card.</dd>
|
||||
<dd><code>Era</code> - the era of the card.</dd>
|
||||
<dd><code>prestigeToAdd</code> - prestige points awarded to the player with the most icons.</dd>
|
||||
<dd><code>prestigeToRemove</code> - prestige points removed from the player with the fewest icons.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ============ METHOD DETAIL ========== -->
|
||||
<li>
|
||||
<section class="method-details" id="method-detail">
|
||||
<h2>Method Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="getPrestigeToAdd()">
|
||||
<h3>getPrestigeToAdd</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="return-type">int</span> <span class="element-name">getPrestigeToAdd</span>()</div>
|
||||
<div class="block">Returns the prestige points awarded to the player with the most shaman icons.</div>
|
||||
<dl class="notes">
|
||||
<dt>Returns:</dt>
|
||||
<dd>prestige points to award.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="getPrestigeToRemove()">
|
||||
<h3>getPrestigeToRemove</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="return-type">int</span> <span class="element-name">getPrestigeToRemove</span>()</div>
|
||||
<div class="block">Returns the prestige points removed from the player with the fewest shaman icons.</div>
|
||||
<dl class="notes">
|
||||
<dt>Returns:</dt>
|
||||
<dd>prestige points to remove.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="activateEvent(java.util.ArrayList)">
|
||||
<h3>activateEvent</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">activateEvent</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/ArrayList.html" title="class or interface in java.util" class="external-link">ArrayList</a><<a href="../../../Player.html" title="class in it.polimi.ingsw.gc14.Model">Player</a>> playerList)</span></div>
|
||||
<div class="block">Activates the event card "Shamanic Ritual".
|
||||
The player with the most icons gains the Prestige Points indicated.
|
||||
The player with the fewest icons loses the Prestige Points indicated.
|
||||
In case of a tie, all players gain or lose the Prestige Points indicated.
|
||||
If all players have the same amount of icons, they all gain and lose Prestige Points.
|
||||
Buildings influence:
|
||||
Building 2: if you have the lowest number of icons, you don't lose Prestige Points
|
||||
Building 5: during the Shamanic Ritual, you gain 3 icons
|
||||
Building 6: if you have more icons than any other player, you gain double of Prestige Points</div>
|
||||
<dl class="notes">
|
||||
<dt>Specified by:</dt>
|
||||
<dd><code><a href="../EventCard.html#activateEvent(java.util.ArrayList)">activateEvent</a></code> in class <code><a href="../EventCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">EventCard</a></code></dd>
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>playerList</code> - contains all the players in the game</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="clone()">
|
||||
<h3>clone</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="../EventCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">EventCard</a></span> <span class="element-name">clone</span>()</div>
|
||||
<div class="block">Creates and returns a copy of this ShamanicRitual card.</div>
|
||||
<dl class="notes">
|
||||
<dt>Specified by:</dt>
|
||||
<dd><code><a href="../EventCard.html#clone()">clone</a></code> in class <code><a href="../EventCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">EventCard</a></code></dd>
|
||||
<dt>Returns:</dt>
|
||||
<dd>a new ShamanicRitual card with the same era and prestige values</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="toStringPlayer()">
|
||||
<h3>toStringPlayer</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span> <span class="element-name">toStringPlayer</span>()</div>
|
||||
<div class="block">Prints a string representation of this <code>TribeCard</code>. This specific variation is used in the <code>Game</code>'s
|
||||
toString to print a more detailed version.
|
||||
Includes:
|
||||
<ul>
|
||||
<li><a href="#prestigeToAdd"><code>prestigeToAdd</code></a></li>
|
||||
<li><a href="#prestigeToRemove"><code>prestigeToRemove</code></a></li>
|
||||
</ul></div>
|
||||
<dl class="notes">
|
||||
<dt>Specified by:</dt>
|
||||
<dd><code><a href="../../../PlayableCard.html#toStringPlayer()">toStringPlayer</a></code> in class <code><a href="../../../PlayableCard.html" title="class in it.polimi.ingsw.gc14.Model">PlayableCard</a></code></dd>
|
||||
<dt>Returns:</dt>
|
||||
<dd><code>String</code> - a string representation of this <code>TribeCard</code>.</dd>
|
||||
<dt>See Also:</dt>
|
||||
<dd>
|
||||
<ul class="tag-list">
|
||||
<li><a href="../../TribeCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards"><code>TribeCard</code></a></li>
|
||||
<li><a href="../../../Game.html" title="class in it.polimi.ingsw.gc14.Model"><code>Game</code></a></li>
|
||||
<li><a href="../../../GamePackage/Board.html" title="class in it.polimi.ingsw.gc14.Model.GamePackage"><code>Board</code></a></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="toStringBoard()">
|
||||
<h3>toStringBoard</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span> <span class="element-name">toStringBoard</span>()</div>
|
||||
<div class="block"><span class="description-from-type-label">Description copied from class: <code><a href="../../../PlayableCard.html#toStringBoard()">PlayableCard</a></code></span></div>
|
||||
<div class="block">Returns the representation shown on the board (offer track cards).</div>
|
||||
<dl class="notes">
|
||||
<dt>Specified by:</dt>
|
||||
<dd><code><a href="../../../PlayableCard.html#toStringBoard()">toStringBoard</a></code> in class <code><a href="../../../PlayableCard.html" title="class in it.polimi.ingsw.gc14.Model">PlayableCard</a></code></dd>
|
||||
<dt>Returns:</dt>
|
||||
<dd>the board string representation of this card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<!-- ========= END OF CLASS DATA ========= -->
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
+405
@@ -0,0 +1,405 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="it">
|
||||
<head>
|
||||
<!-- Generated by javadoc (25) on Fri Jun 19 23:05:23 CEST 2026 -->
|
||||
<title>Sustenance</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="2026-06-19">
|
||||
<meta name="description" content="declaration: module: it.polimi.ingsw.gc14, package: it.polimi.ingsw.gc14.Model.Cards.TribeCards.Events, class: Sustenance">
|
||||
<meta name="generator" content="javadoc/ClassWriter">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../../resource-files/jquery-ui.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../../resource-files/stylesheet.css">
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/script.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/jquery-3.7.1.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/jquery-ui.min.js"></script>
|
||||
</head>
|
||||
<body class="class-declaration-page">
|
||||
<script type="text/javascript">const pathtoroot = "../../../../../../../../../";
|
||||
loadScripts(document, 'script');</script>
|
||||
<noscript>
|
||||
<div>JavaScript is disabled on your browser.</div>
|
||||
</noscript>
|
||||
<header role="banner">
|
||||
<nav role="navigation">
|
||||
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||
<div class="top-nav" id="navbar-top">
|
||||
<div class="nav-content">
|
||||
<div class="nav-menu-button"><button id="navbar-toggle-button" aria-controls="navbar-top" aria-expanded="false" aria-label="Toggle navigation links"><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span></button></div>
|
||||
<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="../../../../../../../../module-summary.html">Module</a></li>
|
||||
<li class="nav-bar-cell1-rev">Class</li>
|
||||
<li><a href="package-tree.html">Tree</a></li>
|
||||
<li><a href="../../../../../../../../../index-files/index-1.html">Index</a></li>
|
||||
<li><a href="../../../../../../../../../search.html">Search</a></li>
|
||||
<li><a href="../../../../../../../../../help-doc.html#class">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sub-nav">
|
||||
<div class="nav-content">
|
||||
<ol class="sub-nav-list">
|
||||
<li><a href="../../../../../../../../module-summary.html">it.polimi.ingsw.gc14</a></li>
|
||||
<li><a href="package-summary.html">it.polimi.ingsw.gc14.Model.Cards.TribeCards.Events</a></li>
|
||||
<li><a href="Sustenance.html" class="current-selection">Sustenance</a></li>
|
||||
</ol>
|
||||
<div class="nav-list-search"><input type="text" id="search-input" disabled placeholder="Search documentation (type /)" aria-label="Search in documentation" autocomplete="off" spellcheck="false"><input type="reset" id="reset-search" disabled value="Reset"></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<span class="skip-nav" id="skip-navbar-top"></span></nav>
|
||||
</header>
|
||||
<div class="main-grid">
|
||||
<nav role="navigation" class="toc" aria-label="Table of contents">
|
||||
<div class="toc-header">Contents <input type="text" class="filter-input" disabled placeholder="Filter contents (type .)" aria-label="Filter table of contents" autocomplete="off" spellcheck="false"><input type="reset" class="reset-filter" disabled tabindex="-1" value="Reset"></div>
|
||||
<ol class="toc-list" tabindex="-1">
|
||||
<li><a href="#" tabindex="0">Description</a></li>
|
||||
<li><a href="#field-summary" tabindex="0">Field Summary</a></li>
|
||||
<li><a href="#constructor-summary" tabindex="0">Constructor Summary</a></li>
|
||||
<li><a href="#method-summary" tabindex="0">Method Summary</a></li>
|
||||
<li><a href="#field-detail" tabindex="0">Field Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#FOOD_PER_GATHERER" tabindex="0">FOOD_PER_GATHERER</a></li>
|
||||
<li><a href="#prestigeDebt" tabindex="0">prestigeDebt</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
<li><a href="#constructor-detail" tabindex="0">Constructor Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#%3Cinit%3E(int,int)" tabindex="0">Sustenance(int, int)</a></li>
|
||||
<li><a href="#%3Cinit%3E(java.lang.String,int,int)" tabindex="0">Sustenance(String, int, int)</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
<li><a href="#method-detail" tabindex="0">Method Details</a>
|
||||
<ol class="toc-list">
|
||||
<li><a href="#getPrestigeDebt()" tabindex="0">getPrestigeDebt()</a></li>
|
||||
<li><a href="#activateEvent(java.util.ArrayList)" tabindex="0">activateEvent(ArrayList)</a></li>
|
||||
<li><a href="#clone()" tabindex="0">clone()</a></li>
|
||||
<li><a href="#toStringPlayer()" tabindex="0">toStringPlayer()</a></li>
|
||||
<li><a href="#toStringBoard()" tabindex="0">toStringBoard()</a></li>
|
||||
</ol>
|
||||
</li>
|
||||
</ol>
|
||||
<button class="hide-sidebar"><span>Hide sidebar </span><img src="../../../../../../../../../resource-files/left.svg" alt="Hide sidebar"></button><button class="show-sidebar"><img src="../../../../../../../../../resource-files/right.svg" alt="Show sidebar"><span> Show sidebar</span></button></nav>
|
||||
<main role="main">
|
||||
<!-- ======== START OF CLASS DATA ======== -->
|
||||
<div class="header">
|
||||
<h1 title="Class Sustenance" class="title">Class Sustenance</h1>
|
||||
</div>
|
||||
<div class="inheritance" title="Inheritance Tree"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">java.lang.Object</a>
|
||||
<div class="inheritance"><a href="../../../PlayableCard.html" title="class in it.polimi.ingsw.gc14.Model">it.polimi.ingsw.gc14.Model.PlayableCard</a>
|
||||
<div class="inheritance"><a href="../../TribeCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">it.polimi.ingsw.gc14.Model.Cards.TribeCard</a>
|
||||
<div class="inheritance"><a href="../EventCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">it.polimi.ingsw.gc14.Model.Cards.TribeCards.EventCard</a>
|
||||
<div class="inheritance">it.polimi.ingsw.gc14.Model.Cards.TribeCards.Events.Sustenance</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<section class="class-description" id="class-description">
|
||||
<dl class="notes">
|
||||
<dt>All Implemented Interfaces:</dt>
|
||||
<dd><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/Serializable.html" title="class or interface in java.io" class="external-link">Serializable</a></code></dd>
|
||||
</dl>
|
||||
<hr>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="type-signature"><span class="modifiers">public class </span><span class="element-name type-name-label">Sustenance</span>
|
||||
<span class="extends-implements">extends <a href="../EventCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">EventCard</a></span></div>
|
||||
<div class="block">Represents a Sustenance event card.
|
||||
|
||||
<p>This class defines the specific behavior of the Sustenance event.</div>
|
||||
<dl class="notes">
|
||||
<dt>See Also:</dt>
|
||||
<dd>
|
||||
<ul class="tag-list">
|
||||
<li><a href="../../../../../../../../../serialized-form.html#it.polimi.ingsw.gc14.Model.Cards.TribeCards.Events.Sustenance">Serialized Form</a></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
<section class="summary">
|
||||
<ul class="summary-list">
|
||||
<!-- =========== FIELD SUMMARY =========== -->
|
||||
<li>
|
||||
<section class="field-summary" id="field-summary">
|
||||
<h2>Field Summary</h2>
|
||||
<div class="caption"><span>Fields</span></div>
|
||||
<div class="summary-table three-column-summary">
|
||||
<div class="table-header col-first">Modifier and Type</div>
|
||||
<div class="table-header col-second">Field</div>
|
||||
<div class="table-header col-last">Description</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="#FOOD_PER_GATHERER" class="member-name-link">FOOD_PER_GATHERER</a></code></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">Food units covered by each Gatherer during the Sustenance event.</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color"><code>private final int</code></div>
|
||||
<div class="col-second odd-row-color"><code><a href="#prestigeDebt" class="member-name-link">prestigeDebt</a></code></div>
|
||||
<div class="col-last odd-row-color">
|
||||
<div class="block">The prestige penalty multiplier applied for each unpaid Food unit.</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
||||
<li>
|
||||
<section class="constructor-summary" id="constructor-summary">
|
||||
<h2>Constructor Summary</h2>
|
||||
<div class="caption"><span>Constructors</span></div>
|
||||
<div class="summary-table two-column-summary">
|
||||
<div class="table-header col-first">Constructor</div>
|
||||
<div class="table-header col-last">Description</div>
|
||||
<div class="col-constructor-name even-row-color"><code><a href="#%3Cinit%3E(int,int)" class="member-name-link">Sustenance</a><wbr>(int Era,
|
||||
int prestigeDebt)</code></div>
|
||||
<div class="col-last even-row-color">
|
||||
<div class="block">Creates a Sustenance event card with the specified era and prestige debt value.</div>
|
||||
</div>
|
||||
<div class="col-constructor-name odd-row-color"><code><a href="#%3Cinit%3E(java.lang.String,int,int)" class="member-name-link">Sustenance</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> idIMG,
|
||||
int Era,
|
||||
int prestigeDebt)</code></div>
|
||||
<div class="col-last odd-row-color">
|
||||
<div class="block">Creates a Sustenance event card with the specified image id, era and prestige debt value.</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ========== METHOD SUMMARY =========== -->
|
||||
<li>
|
||||
<section class="method-summary" id="method-summary">
|
||||
<h2>Method Summary</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">All Methods</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">Instance Methods</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">Concrete Methods</button></div>
|
||||
<div id="method-summary-table.tabpanel" role="tabpanel" aria-labelledby="method-summary-table-tab0">
|
||||
<div class="summary-table three-column-summary">
|
||||
<div class="table-header col-first">Modifier and Type</div>
|
||||
<div class="table-header col-second">Method</div>
|
||||
<div class="table-header col-last">Description</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="#activateEvent(java.util.ArrayList)" class="member-name-link">activateEvent</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/ArrayList.html" title="class or interface in java.util" class="external-link">ArrayList</a><<a href="../../../Player.html" title="class in it.polimi.ingsw.gc14.Model">Player</a>> playerList)</code></div>
|
||||
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Activates the Sustenance event for the specified list of players.</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="../EventCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">EventCard</a></code></div>
|
||||
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#clone()" class="member-name-link">clone</a>()</code></div>
|
||||
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Creates and returns a copy of this Sustenance event card.</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="#getPrestigeDebt()" class="member-name-link">getPrestigeDebt</a>()</code></div>
|
||||
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Returns the prestige penalty multiplier associated with this Sustenance event.</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
|
||||
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#toStringBoard()" class="member-name-link">toStringBoard</a>()</code></div>
|
||||
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Returns the representation shown on the board (offer track cards).</div>
|
||||
</div>
|
||||
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
|
||||
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#toStringPlayer()" class="member-name-link">toStringPlayer</a>()</code></div>
|
||||
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
|
||||
<div class="block">Prints a string representation of this <code>TribeCard</code>.</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-it.polimi.ingsw.gc14.Model.Cards.TribeCards.EventCard">Methods inherited from class <a href="../EventCard.html#method-summary" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">EventCard</a></h3>
|
||||
<code><a href="../EventCard.html#getType()" title="getType()">getType</a></code></div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-it.polimi.ingsw.gc14.Model.Cards.TribeCard">Methods inherited from class <a href="../../TribeCard.html#method-summary" title="class in it.polimi.ingsw.gc14.Model.Cards">TribeCard</a></h3>
|
||||
<code><a href="../../TribeCard.html#getNMin()" title="getNMin()">getNMin</a>, <a href="../../TribeCard.html#isEventCard()" title="isEventCard()">isEventCard</a></code></div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-it.polimi.ingsw.gc14.Model.PlayableCard">Methods inherited from class <a href="../../../PlayableCard.html#method-summary" title="class in it.polimi.ingsw.gc14.Model">PlayableCard</a></h3>
|
||||
<code><a href="../../../PlayableCard.html#getEra()" title="getEra()">getEra</a>, <a href="../../../PlayableCard.html#getIdIMG()" title="getIdIMG()">getIdIMG</a></code></div>
|
||||
<div class="inherited-list">
|
||||
<h3 id="methods-inherited-from-class-java.lang.Object">Methods inherited from class <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#method-summary" title="class or interface in java.lang" class="external-link">Object</a></h3>
|
||||
<code><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang" class="external-link">equals</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#finalize()" title="class or interface in java.lang" class="external-link">finalize</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#getClass()" title="class or interface in java.lang" class="external-link">getClass</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#hashCode()" title="class or interface in java.lang" class="external-link">hashCode</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notify()" title="class or interface in java.lang" class="external-link">notify</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#notifyAll()" title="class or interface in java.lang" class="external-link">notifyAll</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#toString()" title="class or interface in java.lang" class="external-link">toString</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait()" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long)" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html#wait(long,int)" title="class or interface 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>Field Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="FOOD_PER_GATHERER">
|
||||
<h3>FOOD_PER_GATHERER</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">private static final</span> <span class="return-type">int</span> <span class="element-name">FOOD_PER_GATHERER</span></div>
|
||||
<div class="block">Food units covered by each Gatherer during the Sustenance event.</div>
|
||||
<dl class="notes">
|
||||
<dt>See Also:</dt>
|
||||
<dd>
|
||||
<ul class="tag-list">
|
||||
<li><a href="../../../../../../../../../constant-values.html#it.polimi.ingsw.gc14.Model.Cards.TribeCards.Events.Sustenance.FOOD_PER_GATHERER">Constant Field Values</a></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="prestigeDebt">
|
||||
<h3>prestigeDebt</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">private final</span> <span class="return-type">int</span> <span class="element-name">prestigeDebt</span></div>
|
||||
<div class="block">The prestige penalty multiplier applied for each unpaid Food unit.</div>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
||||
<li>
|
||||
<section class="constructor-details" id="constructor-detail">
|
||||
<h2>Constructor Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="<init>(int,int)">
|
||||
<h3>Sustenance</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="element-name">Sustenance</span><wbr><span class="parameters">(int Era,
|
||||
int prestigeDebt)</span></div>
|
||||
<div class="block">Creates a Sustenance event card with the specified era and prestige debt value.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>Era</code> - the era of the event card.</dd>
|
||||
<dd><code>prestigeDebt</code> - the prestige penalty multiplier for unpaid Food units.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="<init>(java.lang.String,int,int)">
|
||||
<h3>Sustenance</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="element-name">Sustenance</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a> idIMG,
|
||||
int Era,
|
||||
int prestigeDebt)</span></div>
|
||||
<div class="block">Creates a Sustenance event card with the specified image id, era and prestige debt value.</div>
|
||||
<dl class="notes">
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>idIMG</code> - the image identifier of the Sustenance event card.</dd>
|
||||
<dd><code>Era</code> - the era of the event card.</dd>
|
||||
<dd><code>prestigeDebt</code> - the prestige penalty multiplier for unpaid Food units.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
<!-- ============ METHOD DETAIL ========== -->
|
||||
<li>
|
||||
<section class="method-details" id="method-detail">
|
||||
<h2>Method Details</h2>
|
||||
<ul class="member-list">
|
||||
<li>
|
||||
<section class="detail" id="getPrestigeDebt()">
|
||||
<h3>getPrestigeDebt</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type">int</span> <span class="element-name">getPrestigeDebt</span>()</div>
|
||||
<div class="block">Returns the prestige penalty multiplier associated with this Sustenance event.</div>
|
||||
<dl class="notes">
|
||||
<dt>Returns:</dt>
|
||||
<dd>the prestige penalty multiplier associated with this Sustenance event.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="activateEvent(java.util.ArrayList)">
|
||||
<h3>activateEvent</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name">activateEvent</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/ArrayList.html" title="class or interface in java.util" class="external-link">ArrayList</a><<a href="../../../Player.html" title="class in it.polimi.ingsw.gc14.Model">Player</a>> playerList)</span></div>
|
||||
<div class="block">Activates the Sustenance event for the specified list of players.
|
||||
For each player, the required Food is computed from the total number of characters,
|
||||
reduced by the contribution of Gatherers and by any applicable character discounts
|
||||
granted by owned building cards with effect id equal to 1.
|
||||
If the resulting Food debt is positive, the player must pay it with available Food.
|
||||
If the player does not have enough Food, all remaining Food is removed and the player
|
||||
loses Prestige equal to the unpaid Food debt multiplied by <code>prestigeDebt</code>.
|
||||
<b>This event is intended to be executed last among event effects.</b></div>
|
||||
<dl class="notes">
|
||||
<dt>Specified by:</dt>
|
||||
<dd><code><a href="../EventCard.html#activateEvent(java.util.ArrayList)">activateEvent</a></code> in class <code><a href="../EventCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">EventCard</a></code></dd>
|
||||
<dt>Parameters:</dt>
|
||||
<dd><code>playerList</code> - the list of players affected by the event.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="clone()">
|
||||
<h3>clone</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="../EventCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">EventCard</a></span> <span class="element-name">clone</span>()</div>
|
||||
<div class="block">Creates and returns a copy of this Sustenance event card.</div>
|
||||
<dl class="notes">
|
||||
<dt>Specified by:</dt>
|
||||
<dd><code><a href="../EventCard.html#clone()">clone</a></code> in class <code><a href="../EventCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">EventCard</a></code></dd>
|
||||
<dt>Returns:</dt>
|
||||
<dd>a clone of this Sustenance event card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="toStringPlayer()">
|
||||
<h3>toStringPlayer</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span> <span class="element-name">toStringPlayer</span>()</div>
|
||||
<div class="block">Prints a string representation of this <code>TribeCard</code>. This specific variation is used in the <code>Game</code>'s
|
||||
toString to print a more detailed version.
|
||||
Includes:
|
||||
<ul>
|
||||
<li><a href="#prestigeDebt"><code>prestigeDebt</code></a></li>
|
||||
</ul></div>
|
||||
<dl class="notes">
|
||||
<dt>Specified by:</dt>
|
||||
<dd><code><a href="../../../PlayableCard.html#toStringPlayer()">toStringPlayer</a></code> in class <code><a href="../../../PlayableCard.html" title="class in it.polimi.ingsw.gc14.Model">PlayableCard</a></code></dd>
|
||||
<dt>Returns:</dt>
|
||||
<dd><code>String</code> - a string representation of this <code>TribeCard</code>.</dd>
|
||||
<dt>See Also:</dt>
|
||||
<dd>
|
||||
<ul class="tag-list">
|
||||
<li><a href="../../TribeCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards"><code>TribeCard</code></a></li>
|
||||
<li><a href="../../../Game.html" title="class in it.polimi.ingsw.gc14.Model"><code>Game</code></a></li>
|
||||
<li><a href="../../../GamePackage/Board.html" title="class in it.polimi.ingsw.gc14.Model.GamePackage"><code>Board</code></a></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
<li>
|
||||
<section class="detail" id="toStringBoard()">
|
||||
<h3>toStringBoard</h3>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></span> <span class="element-name">toStringBoard</span>()</div>
|
||||
<div class="block"><span class="description-from-type-label">Description copied from class: <code><a href="../../../PlayableCard.html#toStringBoard()">PlayableCard</a></code></span></div>
|
||||
<div class="block">Returns the representation shown on the board (offer track cards).</div>
|
||||
<dl class="notes">
|
||||
<dt>Specified by:</dt>
|
||||
<dd><code><a href="../../../PlayableCard.html#toStringBoard()">toStringBoard</a></code> in class <code><a href="../../../PlayableCard.html" title="class in it.polimi.ingsw.gc14.Model">PlayableCard</a></code></dd>
|
||||
<dt>Returns:</dt>
|
||||
<dd>the board string representation of this card.</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<!-- ========= END OF CLASS DATA ========= -->
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
+114
@@ -0,0 +1,114 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="it">
|
||||
<head>
|
||||
<!-- Generated by javadoc (25) on Fri Jun 19 23:05:23 CEST 2026 -->
|
||||
<title>it.polimi.ingsw.gc14.Model.Cards.TribeCards.Events</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="2026-06-19">
|
||||
<meta name="description" content="declaration: module: it.polimi.ingsw.gc14, package: it.polimi.ingsw.gc14.Model.Cards.TribeCards.Events">
|
||||
<meta name="generator" content="javadoc/PackageWriter">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../../resource-files/jquery-ui.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../../resource-files/stylesheet.css">
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/script.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/jquery-3.7.1.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/jquery-ui.min.js"></script>
|
||||
</head>
|
||||
<body class="package-declaration-page">
|
||||
<script type="text/javascript">const pathtoroot = "../../../../../../../../../";
|
||||
loadScripts(document, 'script');</script>
|
||||
<noscript>
|
||||
<div>JavaScript is disabled on your browser.</div>
|
||||
</noscript>
|
||||
<header role="banner">
|
||||
<nav role="navigation">
|
||||
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||
<div class="top-nav" id="navbar-top">
|
||||
<div class="nav-content">
|
||||
<div class="nav-menu-button"><button id="navbar-toggle-button" aria-controls="navbar-top" aria-expanded="false" aria-label="Toggle navigation links"><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span></button></div>
|
||||
<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="../../../../../../../../module-summary.html">Module</a></li>
|
||||
<li class="nav-bar-cell1-rev">Package</li>
|
||||
<li><a href="package-tree.html">Tree</a></li>
|
||||
<li><a href="../../../../../../../../../index-files/index-1.html">Index</a></li>
|
||||
<li><a href="../../../../../../../../../search.html">Search</a></li>
|
||||
<li><a href="../../../../../../../../../help-doc.html#package">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sub-nav">
|
||||
<div class="nav-content">
|
||||
<ol class="sub-nav-list">
|
||||
<li><a href="../../../../../../../../module-summary.html">it.polimi.ingsw.gc14</a></li>
|
||||
<li><a href="package-summary.html" class="current-selection">it.polimi.ingsw.gc14.Model.Cards.TribeCards.Events</a></li>
|
||||
</ol>
|
||||
<div class="nav-list-search"><input type="text" id="search-input" disabled placeholder="Search documentation (type /)" aria-label="Search in documentation" autocomplete="off" spellcheck="false"><input type="reset" id="reset-search" disabled value="Reset"></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<span class="skip-nav" id="skip-navbar-top"></span></nav>
|
||||
</header>
|
||||
<div class="main-grid">
|
||||
<nav role="navigation" class="toc" aria-label="Table of contents">
|
||||
<div class="toc-header">Contents</div>
|
||||
<ol class="toc-list" tabindex="-1">
|
||||
<li><a href="#" tabindex="0">Description</a></li>
|
||||
<li><a href="#related-package-summary" tabindex="0">Related Packages</a></li>
|
||||
<li><a href="#class-summary" tabindex="0">Classes and Interfaces</a></li>
|
||||
</ol>
|
||||
<button class="hide-sidebar"><span>Hide sidebar </span><img src="../../../../../../../../../resource-files/left.svg" alt="Hide sidebar"></button><button class="show-sidebar"><img src="../../../../../../../../../resource-files/right.svg" alt="Show sidebar"><span> Show sidebar</span></button></nav>
|
||||
<main role="main">
|
||||
<div class="header">
|
||||
<h1 title="Package it.polimi.ingsw.gc14.Model.Cards.TribeCards.Events" class="title">Package it.polimi.ingsw.gc14.Model.Cards.TribeCards.Events</h1>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="package-signature">package <span class="element-name">it.polimi.ingsw.gc14.Model.Cards.TribeCards.Events</span></div>
|
||||
</div>
|
||||
<section class="summary">
|
||||
<ul class="summary-list">
|
||||
<li>
|
||||
<div id="related-package-summary">
|
||||
<div class="caption"><span>Related Packages</span></div>
|
||||
<div class="summary-table two-column-summary">
|
||||
<div class="table-header col-first">Package</div>
|
||||
<div class="table-header col-last">Description</div>
|
||||
<div class="col-first even-row-color"><a href="../package-summary.html">it.polimi.ingsw.gc14.Model.Cards.TribeCards</a></div>
|
||||
<div class="col-last even-row-color"> </div>
|
||||
<div class="col-first odd-row-color"><a href="../Characters/package-summary.html">it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters</a></div>
|
||||
<div class="col-last odd-row-color"> </div>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<div id="class-summary">
|
||||
<div class="caption"><span>Classes</span></div>
|
||||
<div class="summary-table two-column-summary">
|
||||
<div class="table-header col-first">Class</div>
|
||||
<div class="table-header col-last">Description</div>
|
||||
<div class="col-first even-row-color class-summary class-summary-tab2"><a href="CavePaintings.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards.Events">CavePaintings</a></div>
|
||||
<div class="col-last even-row-color class-summary class-summary-tab2">
|
||||
<div class="block">Represents a Cave Paintings event card.</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color class-summary class-summary-tab2"><a href="Hunt.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards.Events">Hunt</a></div>
|
||||
<div class="col-last odd-row-color class-summary class-summary-tab2">
|
||||
<div class="block">When activated, gives Food and Prestige Points to every player.</div>
|
||||
</div>
|
||||
<div class="col-first even-row-color class-summary class-summary-tab2"><a href="ShamanicRitual.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards.Events">ShamanicRitual</a></div>
|
||||
<div class="col-last even-row-color class-summary class-summary-tab2">
|
||||
<div class="block">When activated, rewards the player with the most shaman icons and penalizes the one with the fewest.</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color class-summary class-summary-tab2"><a href="Sustenance.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards.Events">Sustenance</a></div>
|
||||
<div class="col-last odd-row-color class-summary class-summary-tab2">
|
||||
<div class="block">Represents a Sustenance event card.</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
+89
@@ -0,0 +1,89 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="it">
|
||||
<head>
|
||||
<!-- Generated by javadoc (25) on Fri Jun 19 23:05:23 CEST 2026 -->
|
||||
<title>it.polimi.ingsw.gc14.Model.Cards.TribeCards.Events Class Hierarchy</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="2026-06-19">
|
||||
<meta name="description" content="tree: module: it.polimi.ingsw.gc14, package: it.polimi.ingsw.gc14.Model.Cards.TribeCards.Events">
|
||||
<meta name="generator" content="javadoc/PackageTreeWriter">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../../resource-files/jquery-ui.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../../resource-files/stylesheet.css">
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/script.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/jquery-3.7.1.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../../script-files/jquery-ui.min.js"></script>
|
||||
</head>
|
||||
<body class="package-tree-page">
|
||||
<script type="text/javascript">const pathtoroot = "../../../../../../../../../";
|
||||
loadScripts(document, 'script');</script>
|
||||
<noscript>
|
||||
<div>JavaScript is disabled on your browser.</div>
|
||||
</noscript>
|
||||
<header role="banner">
|
||||
<nav role="navigation">
|
||||
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||
<div class="top-nav" id="navbar-top">
|
||||
<div class="nav-content">
|
||||
<div class="nav-menu-button"><button id="navbar-toggle-button" aria-controls="navbar-top" aria-expanded="false" aria-label="Toggle navigation links"><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span></button></div>
|
||||
<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="../../../../../../../../module-summary.html">Module</a></li>
|
||||
<li><a href="package-summary.html">Package</a></li>
|
||||
<li class="nav-bar-cell1-rev">Tree</li>
|
||||
<li><a href="../../../../../../../../../index-files/index-1.html">Index</a></li>
|
||||
<li><a href="../../../../../../../../../search.html">Search</a></li>
|
||||
<li><a href="../../../../../../../../../help-doc.html#tree">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sub-nav">
|
||||
<div class="nav-content">
|
||||
<ol class="sub-nav-list">
|
||||
<li><a href="../../../../../../../../module-summary.html">it.polimi.ingsw.gc14</a></li>
|
||||
<li><a href="package-summary.html" class="current-selection">it.polimi.ingsw.gc14.Model.Cards.TribeCards.Events</a></li>
|
||||
</ol>
|
||||
<div class="nav-list-search"><input type="text" id="search-input" disabled placeholder="Search documentation (type /)" aria-label="Search in documentation" autocomplete="off" spellcheck="false"><input type="reset" id="reset-search" disabled value="Reset"></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<span class="skip-nav" id="skip-navbar-top"></span></nav>
|
||||
</header>
|
||||
<div class="main-grid">
|
||||
<main role="main">
|
||||
<div class="header">
|
||||
<h1 class="title">Hierarchy For Package it.polimi.ingsw.gc14.Model.Cards.TribeCards.Events</h1>
|
||||
</div>
|
||||
<span class="package-hierarchy-label">Package Hierarchies:</span>
|
||||
<ul class="horizontal contents-list">
|
||||
<li><a href="../../../../../../../../../overview-tree.html">All Packages</a></li>
|
||||
</ul>
|
||||
<section class="hierarchy">
|
||||
<h2 title="Class Hierarchy">Class Hierarchy</h2>
|
||||
<ul>
|
||||
<li class="circle">java.lang.<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html" class="type-name-link external-link" title="class or interface in java.lang">Object</a>
|
||||
<ul>
|
||||
<li class="circle">it.polimi.ingsw.gc14.Model.<a href="../../../PlayableCard.html" class="type-name-link" title="class in it.polimi.ingsw.gc14.Model">PlayableCard</a> (implements java.io.<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/Serializable.html" title="class or interface in java.io" class="external-link">Serializable</a>)
|
||||
<ul>
|
||||
<li class="circle">it.polimi.ingsw.gc14.Model.Cards.<a href="../../TribeCard.html" class="type-name-link" title="class in it.polimi.ingsw.gc14.Model.Cards">TribeCard</a> (implements java.io.<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/Serializable.html" title="class or interface in java.io" class="external-link">Serializable</a>)
|
||||
<ul>
|
||||
<li class="circle">it.polimi.ingsw.gc14.Model.Cards.TribeCards.<a href="../EventCard.html" class="type-name-link" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">EventCard</a>
|
||||
<ul>
|
||||
<li class="circle">it.polimi.ingsw.gc14.Model.Cards.TribeCards.Events.<a href="CavePaintings.html" class="type-name-link" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards.Events">CavePaintings</a></li>
|
||||
<li class="circle">it.polimi.ingsw.gc14.Model.Cards.TribeCards.Events.<a href="Hunt.html" class="type-name-link" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards.Events">Hunt</a></li>
|
||||
<li class="circle">it.polimi.ingsw.gc14.Model.Cards.TribeCards.Events.<a href="ShamanicRitual.html" class="type-name-link" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards.Events">ShamanicRitual</a></li>
|
||||
<li class="circle">it.polimi.ingsw.gc14.Model.Cards.TribeCards.Events.<a href="Sustenance.html" class="type-name-link" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards.Events">Sustenance</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
+120
@@ -0,0 +1,120 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="it">
|
||||
<head>
|
||||
<!-- Generated by javadoc (25) on Fri Jun 19 23:05:23 CEST 2026 -->
|
||||
<title>it.polimi.ingsw.gc14.Model.Cards.TribeCards</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="2026-06-19">
|
||||
<meta name="description" content="declaration: module: it.polimi.ingsw.gc14, package: it.polimi.ingsw.gc14.Model.Cards.TribeCards">
|
||||
<meta name="generator" content="javadoc/PackageWriter">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../resource-files/jquery-ui.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../resource-files/stylesheet.css">
|
||||
<script type="text/javascript" src="../../../../../../../../script-files/script.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../script-files/jquery-3.7.1.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../script-files/jquery-ui.min.js"></script>
|
||||
</head>
|
||||
<body class="package-declaration-page">
|
||||
<script type="text/javascript">const pathtoroot = "../../../../../../../../";
|
||||
loadScripts(document, 'script');</script>
|
||||
<noscript>
|
||||
<div>JavaScript is disabled on your browser.</div>
|
||||
</noscript>
|
||||
<header role="banner">
|
||||
<nav role="navigation">
|
||||
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||
<div class="top-nav" id="navbar-top">
|
||||
<div class="nav-content">
|
||||
<div class="nav-menu-button"><button id="navbar-toggle-button" aria-controls="navbar-top" aria-expanded="false" aria-label="Toggle navigation links"><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span></button></div>
|
||||
<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="../../../../../../../module-summary.html">Module</a></li>
|
||||
<li class="nav-bar-cell1-rev">Package</li>
|
||||
<li><a href="package-tree.html">Tree</a></li>
|
||||
<li><a href="../../../../../../../../index-files/index-1.html">Index</a></li>
|
||||
<li><a href="../../../../../../../../search.html">Search</a></li>
|
||||
<li><a href="../../../../../../../../help-doc.html#package">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sub-nav">
|
||||
<div class="nav-content">
|
||||
<ol class="sub-nav-list">
|
||||
<li><a href="../../../../../../../module-summary.html">it.polimi.ingsw.gc14</a></li>
|
||||
<li><a href="package-summary.html" class="current-selection">it.polimi.ingsw.gc14.Model.Cards.TribeCards</a></li>
|
||||
</ol>
|
||||
<div class="nav-list-search"><input type="text" id="search-input" disabled placeholder="Search documentation (type /)" aria-label="Search in documentation" autocomplete="off" spellcheck="false"><input type="reset" id="reset-search" disabled value="Reset"></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<span class="skip-nav" id="skip-navbar-top"></span></nav>
|
||||
</header>
|
||||
<div class="main-grid">
|
||||
<nav role="navigation" class="toc" aria-label="Table of contents">
|
||||
<div class="toc-header">Contents</div>
|
||||
<ol class="toc-list" tabindex="-1">
|
||||
<li><a href="#" tabindex="0">Description</a></li>
|
||||
<li><a href="#related-package-summary" tabindex="0">Related Packages</a></li>
|
||||
<li><a href="#class-summary" tabindex="0">Classes and Interfaces</a></li>
|
||||
</ol>
|
||||
<button class="hide-sidebar"><span>Hide sidebar </span><img src="../../../../../../../../resource-files/left.svg" alt="Hide sidebar"></button><button class="show-sidebar"><img src="../../../../../../../../resource-files/right.svg" alt="Show sidebar"><span> Show sidebar</span></button></nav>
|
||||
<main role="main">
|
||||
<div class="header">
|
||||
<h1 title="Package it.polimi.ingsw.gc14.Model.Cards.TribeCards" class="title">Package it.polimi.ingsw.gc14.Model.Cards.TribeCards</h1>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="package-signature">package <span class="element-name">it.polimi.ingsw.gc14.Model.Cards.TribeCards</span></div>
|
||||
</div>
|
||||
<section class="summary">
|
||||
<ul class="summary-list">
|
||||
<li>
|
||||
<div id="related-package-summary">
|
||||
<div class="caption"><span>Related Packages</span></div>
|
||||
<div class="summary-table two-column-summary">
|
||||
<div class="table-header col-first">Package</div>
|
||||
<div class="table-header col-last">Description</div>
|
||||
<div class="col-first even-row-color"><a href="../package-summary.html">it.polimi.ingsw.gc14.Model.Cards</a></div>
|
||||
<div class="col-last even-row-color"> </div>
|
||||
<div class="col-first odd-row-color"><a href="Characters/package-summary.html">it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters</a></div>
|
||||
<div class="col-last odd-row-color"> </div>
|
||||
<div class="col-first even-row-color"><a href="Events/package-summary.html">it.polimi.ingsw.gc14.Model.Cards.TribeCards.Events</a></div>
|
||||
<div class="col-last even-row-color"> </div>
|
||||
<div class="col-first odd-row-color"><a href="../Building/package-summary.html">it.polimi.ingsw.gc14.Model.Cards.Building</a></div>
|
||||
<div class="col-last odd-row-color"> </div>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<div id="class-summary">
|
||||
<div class="table-tabs" role="tablist" aria-orientation="horizontal"><button id="class-summary-tab0" role="tab" aria-selected="true" aria-controls="class-summary.tabpanel" tabindex="0" onkeydown="switchTab(event)" onclick="show('class-summary', 'class-summary', 2)" class="active-table-tab">All Classes and Interfaces</button><button id="class-summary-tab2" role="tab" aria-selected="false" aria-controls="class-summary.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('class-summary', 'class-summary-tab2', 2)" class="table-tab">Classes</button><button id="class-summary-tab3" role="tab" aria-selected="false" aria-controls="class-summary.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('class-summary', 'class-summary-tab3', 2)" class="table-tab">Enum Classes</button></div>
|
||||
<div id="class-summary.tabpanel" role="tabpanel" aria-labelledby="class-summary-tab0">
|
||||
<div class="summary-table two-column-summary">
|
||||
<div class="table-header col-first">Class</div>
|
||||
<div class="table-header col-last">Description</div>
|
||||
<div class="col-first even-row-color class-summary class-summary-tab2"><a href="Character.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">Character</a></div>
|
||||
<div class="col-last even-row-color class-summary class-summary-tab2">
|
||||
<div class="block">Abstract base class for all character cards.</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color class-summary class-summary-tab3"><a href="CharacterType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">CharacterType</a></div>
|
||||
<div class="col-last odd-row-color class-summary class-summary-tab3">
|
||||
<div class="block">Represents the different types of character cards available in the game.</div>
|
||||
</div>
|
||||
<div class="col-first even-row-color class-summary class-summary-tab2"><a href="EventCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">EventCard</a></div>
|
||||
<div class="col-last even-row-color class-summary class-summary-tab2">
|
||||
<div class="block">Abstract base class for all event cards.</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color class-summary class-summary-tab3"><a href="EventType.html" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">EventType</a></div>
|
||||
<div class="col-last odd-row-color class-summary class-summary-tab3">
|
||||
<div class="block">Represents the different types of event cards available in the game.</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
+98
@@ -0,0 +1,98 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="it">
|
||||
<head>
|
||||
<!-- Generated by javadoc (25) on Fri Jun 19 23:05:23 CEST 2026 -->
|
||||
<title>it.polimi.ingsw.gc14.Model.Cards.TribeCards Class Hierarchy</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="2026-06-19">
|
||||
<meta name="description" content="tree: module: it.polimi.ingsw.gc14, package: it.polimi.ingsw.gc14.Model.Cards.TribeCards">
|
||||
<meta name="generator" content="javadoc/PackageTreeWriter">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../resource-files/jquery-ui.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../../resource-files/stylesheet.css">
|
||||
<script type="text/javascript" src="../../../../../../../../script-files/script.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../script-files/jquery-3.7.1.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../../script-files/jquery-ui.min.js"></script>
|
||||
</head>
|
||||
<body class="package-tree-page">
|
||||
<script type="text/javascript">const pathtoroot = "../../../../../../../../";
|
||||
loadScripts(document, 'script');</script>
|
||||
<noscript>
|
||||
<div>JavaScript is disabled on your browser.</div>
|
||||
</noscript>
|
||||
<header role="banner">
|
||||
<nav role="navigation">
|
||||
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||
<div class="top-nav" id="navbar-top">
|
||||
<div class="nav-content">
|
||||
<div class="nav-menu-button"><button id="navbar-toggle-button" aria-controls="navbar-top" aria-expanded="false" aria-label="Toggle navigation links"><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span></button></div>
|
||||
<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="../../../../../../../module-summary.html">Module</a></li>
|
||||
<li><a href="package-summary.html">Package</a></li>
|
||||
<li class="nav-bar-cell1-rev">Tree</li>
|
||||
<li><a href="../../../../../../../../index-files/index-1.html">Index</a></li>
|
||||
<li><a href="../../../../../../../../search.html">Search</a></li>
|
||||
<li><a href="../../../../../../../../help-doc.html#tree">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sub-nav">
|
||||
<div class="nav-content">
|
||||
<ol class="sub-nav-list">
|
||||
<li><a href="../../../../../../../module-summary.html">it.polimi.ingsw.gc14</a></li>
|
||||
<li><a href="package-summary.html" class="current-selection">it.polimi.ingsw.gc14.Model.Cards.TribeCards</a></li>
|
||||
</ol>
|
||||
<div class="nav-list-search"><input type="text" id="search-input" disabled placeholder="Search documentation (type /)" aria-label="Search in documentation" autocomplete="off" spellcheck="false"><input type="reset" id="reset-search" disabled value="Reset"></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<span class="skip-nav" id="skip-navbar-top"></span></nav>
|
||||
</header>
|
||||
<div class="main-grid">
|
||||
<main role="main">
|
||||
<div class="header">
|
||||
<h1 class="title">Hierarchy For Package it.polimi.ingsw.gc14.Model.Cards.TribeCards</h1>
|
||||
</div>
|
||||
<span class="package-hierarchy-label">Package Hierarchies:</span>
|
||||
<ul class="horizontal contents-list">
|
||||
<li><a href="../../../../../../../../overview-tree.html">All Packages</a></li>
|
||||
</ul>
|
||||
<section class="hierarchy">
|
||||
<h2 title="Class Hierarchy">Class Hierarchy</h2>
|
||||
<ul>
|
||||
<li class="circle">java.lang.<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html" class="type-name-link external-link" title="class or interface in java.lang">Object</a>
|
||||
<ul>
|
||||
<li class="circle">it.polimi.ingsw.gc14.Model.<a href="../../PlayableCard.html" class="type-name-link" title="class in it.polimi.ingsw.gc14.Model">PlayableCard</a> (implements java.io.<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/Serializable.html" title="class or interface in java.io" class="external-link">Serializable</a>)
|
||||
<ul>
|
||||
<li class="circle">it.polimi.ingsw.gc14.Model.Cards.<a href="../TribeCard.html" class="type-name-link" title="class in it.polimi.ingsw.gc14.Model.Cards">TribeCard</a> (implements java.io.<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/Serializable.html" title="class or interface in java.io" class="external-link">Serializable</a>)
|
||||
<ul>
|
||||
<li class="circle">it.polimi.ingsw.gc14.Model.Cards.TribeCards.<a href="Character.html" class="type-name-link" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">Character</a> (implements java.lang.<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Cloneable.html" title="class or interface in java.lang" class="external-link">Cloneable</a>)</li>
|
||||
<li class="circle">it.polimi.ingsw.gc14.Model.Cards.TribeCards.<a href="EventCard.html" class="type-name-link" title="class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">EventCard</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<section class="hierarchy">
|
||||
<h2 title="Enum Class Hierarchy">Enum Class Hierarchy</h2>
|
||||
<ul>
|
||||
<li class="circle">java.lang.<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html" class="type-name-link external-link" title="class or interface in java.lang">Object</a>
|
||||
<ul>
|
||||
<li class="circle">java.lang.<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Enum.html" class="type-name-link external-link" title="class or interface in java.lang">Enum</a><E> (implements java.lang.<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Comparable.html" title="class or interface in java.lang" class="external-link">Comparable</a><T>, java.lang.constant.<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/constant/Constable.html" title="class or interface in java.lang.constant" class="external-link">Constable</a>, java.io.<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/Serializable.html" title="class or interface in java.io" class="external-link">Serializable</a>)
|
||||
<ul>
|
||||
<li class="circle">it.polimi.ingsw.gc14.Model.Cards.TribeCards.<a href="CharacterType.html" class="type-name-link" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">CharacterType</a></li>
|
||||
<li class="circle">it.polimi.ingsw.gc14.Model.Cards.TribeCards.<a href="EventType.html" class="type-name-link" title="enum class in it.polimi.ingsw.gc14.Model.Cards.TribeCards">EventType</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
+112
@@ -0,0 +1,112 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="it">
|
||||
<head>
|
||||
<!-- Generated by javadoc (25) on Fri Jun 19 23:05:23 CEST 2026 -->
|
||||
<title>it.polimi.ingsw.gc14.Model.Cards</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="2026-06-19">
|
||||
<meta name="description" content="declaration: module: it.polimi.ingsw.gc14, package: it.polimi.ingsw.gc14.Model.Cards">
|
||||
<meta name="generator" content="javadoc/PackageWriter">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../resource-files/jquery-ui.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../resource-files/stylesheet.css">
|
||||
<script type="text/javascript" src="../../../../../../../script-files/script.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../script-files/jquery-3.7.1.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../script-files/jquery-ui.min.js"></script>
|
||||
</head>
|
||||
<body class="package-declaration-page">
|
||||
<script type="text/javascript">const pathtoroot = "../../../../../../../";
|
||||
loadScripts(document, 'script');</script>
|
||||
<noscript>
|
||||
<div>JavaScript is disabled on your browser.</div>
|
||||
</noscript>
|
||||
<header role="banner">
|
||||
<nav role="navigation">
|
||||
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||
<div class="top-nav" id="navbar-top">
|
||||
<div class="nav-content">
|
||||
<div class="nav-menu-button"><button id="navbar-toggle-button" aria-controls="navbar-top" aria-expanded="false" aria-label="Toggle navigation links"><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span></button></div>
|
||||
<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="../../../../../../module-summary.html">Module</a></li>
|
||||
<li class="nav-bar-cell1-rev">Package</li>
|
||||
<li><a href="package-tree.html">Tree</a></li>
|
||||
<li><a href="../../../../../../../index-files/index-1.html">Index</a></li>
|
||||
<li><a href="../../../../../../../search.html">Search</a></li>
|
||||
<li><a href="../../../../../../../help-doc.html#package">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sub-nav">
|
||||
<div class="nav-content">
|
||||
<ol class="sub-nav-list">
|
||||
<li><a href="../../../../../../module-summary.html">it.polimi.ingsw.gc14</a></li>
|
||||
<li><a href="package-summary.html" class="current-selection">it.polimi.ingsw.gc14.Model.Cards</a></li>
|
||||
</ol>
|
||||
<div class="nav-list-search"><input type="text" id="search-input" disabled placeholder="Search documentation (type /)" aria-label="Search in documentation" autocomplete="off" spellcheck="false"><input type="reset" id="reset-search" disabled value="Reset"></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<span class="skip-nav" id="skip-navbar-top"></span></nav>
|
||||
</header>
|
||||
<div class="main-grid">
|
||||
<nav role="navigation" class="toc" aria-label="Table of contents">
|
||||
<div class="toc-header">Contents</div>
|
||||
<ol class="toc-list" tabindex="-1">
|
||||
<li><a href="#" tabindex="0">Description</a></li>
|
||||
<li><a href="#related-package-summary" tabindex="0">Related Packages</a></li>
|
||||
<li><a href="#class-summary" tabindex="0">Classes and Interfaces</a></li>
|
||||
</ol>
|
||||
<button class="hide-sidebar"><span>Hide sidebar </span><img src="../../../../../../../resource-files/left.svg" alt="Hide sidebar"></button><button class="show-sidebar"><img src="../../../../../../../resource-files/right.svg" alt="Show sidebar"><span> Show sidebar</span></button></nav>
|
||||
<main role="main">
|
||||
<div class="header">
|
||||
<h1 title="Package it.polimi.ingsw.gc14.Model.Cards" class="title">Package it.polimi.ingsw.gc14.Model.Cards</h1>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="horizontal-scroll">
|
||||
<div class="package-signature">package <span class="element-name">it.polimi.ingsw.gc14.Model.Cards</span></div>
|
||||
</div>
|
||||
<section class="summary">
|
||||
<ul class="summary-list">
|
||||
<li>
|
||||
<div id="related-package-summary">
|
||||
<div class="caption"><span>Related Packages</span></div>
|
||||
<div class="summary-table two-column-summary">
|
||||
<div class="table-header col-first">Package</div>
|
||||
<div class="table-header col-last">Description</div>
|
||||
<div class="col-first even-row-color"><a href="../package-summary.html">it.polimi.ingsw.gc14.Model</a></div>
|
||||
<div class="col-last even-row-color"> </div>
|
||||
<div class="col-first odd-row-color"><a href="Building/package-summary.html">it.polimi.ingsw.gc14.Model.Cards.Building</a></div>
|
||||
<div class="col-last odd-row-color"> </div>
|
||||
<div class="col-first even-row-color"><a href="TribeCards/package-summary.html">it.polimi.ingsw.gc14.Model.Cards.TribeCards</a></div>
|
||||
<div class="col-last even-row-color"> </div>
|
||||
<div class="col-first odd-row-color"><a href="../GamePackage/package-summary.html">it.polimi.ingsw.gc14.Model.GamePackage</a></div>
|
||||
<div class="col-last odd-row-color"> </div>
|
||||
<div class="col-first even-row-color"><a href="../Orders/package-summary.html">it.polimi.ingsw.gc14.Model.Orders</a></div>
|
||||
<div class="col-last even-row-color"> </div>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<div id="class-summary">
|
||||
<div class="caption"><span>Classes</span></div>
|
||||
<div class="summary-table two-column-summary">
|
||||
<div class="table-header col-first">Class</div>
|
||||
<div class="table-header col-last">Description</div>
|
||||
<div class="col-first even-row-color class-summary class-summary-tab2"><a href="BuildingCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">BuildingCard</a></div>
|
||||
<div class="col-last even-row-color class-summary class-summary-tab2">
|
||||
<div class="block">Represents a generic building card in the game.</div>
|
||||
</div>
|
||||
<div class="col-first odd-row-color class-summary class-summary-tab2"><a href="TribeCard.html" title="class in it.polimi.ingsw.gc14.Model.Cards">TribeCard</a></div>
|
||||
<div class="col-last odd-row-color class-summary class-summary-tab2">
|
||||
<div class="block">Abstract base class for all tribe cards.</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
+79
@@ -0,0 +1,79 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="it">
|
||||
<head>
|
||||
<!-- Generated by javadoc (25) on Fri Jun 19 23:05:23 CEST 2026 -->
|
||||
<title>it.polimi.ingsw.gc14.Model.Cards Class Hierarchy</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="2026-06-19">
|
||||
<meta name="description" content="tree: module: it.polimi.ingsw.gc14, package: it.polimi.ingsw.gc14.Model.Cards">
|
||||
<meta name="generator" content="javadoc/PackageTreeWriter">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../resource-files/jquery-ui.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="../../../../../../../resource-files/stylesheet.css">
|
||||
<script type="text/javascript" src="../../../../../../../script-files/script.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../script-files/jquery-3.7.1.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../../../../script-files/jquery-ui.min.js"></script>
|
||||
</head>
|
||||
<body class="package-tree-page">
|
||||
<script type="text/javascript">const pathtoroot = "../../../../../../../";
|
||||
loadScripts(document, 'script');</script>
|
||||
<noscript>
|
||||
<div>JavaScript is disabled on your browser.</div>
|
||||
</noscript>
|
||||
<header role="banner">
|
||||
<nav role="navigation">
|
||||
<!-- ========= START OF TOP NAVBAR ======= -->
|
||||
<div class="top-nav" id="navbar-top">
|
||||
<div class="nav-content">
|
||||
<div class="nav-menu-button"><button id="navbar-toggle-button" aria-controls="navbar-top" aria-expanded="false" aria-label="Toggle navigation links"><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span></button></div>
|
||||
<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="../../../../../../module-summary.html">Module</a></li>
|
||||
<li><a href="package-summary.html">Package</a></li>
|
||||
<li class="nav-bar-cell1-rev">Tree</li>
|
||||
<li><a href="../../../../../../../index-files/index-1.html">Index</a></li>
|
||||
<li><a href="../../../../../../../search.html">Search</a></li>
|
||||
<li><a href="../../../../../../../help-doc.html#tree">Help</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sub-nav">
|
||||
<div class="nav-content">
|
||||
<ol class="sub-nav-list">
|
||||
<li><a href="../../../../../../module-summary.html">it.polimi.ingsw.gc14</a></li>
|
||||
<li><a href="package-summary.html" class="current-selection">it.polimi.ingsw.gc14.Model.Cards</a></li>
|
||||
</ol>
|
||||
<div class="nav-list-search"><input type="text" id="search-input" disabled placeholder="Search documentation (type /)" aria-label="Search in documentation" autocomplete="off" spellcheck="false"><input type="reset" id="reset-search" disabled value="Reset"></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
<span class="skip-nav" id="skip-navbar-top"></span></nav>
|
||||
</header>
|
||||
<div class="main-grid">
|
||||
<main role="main">
|
||||
<div class="header">
|
||||
<h1 class="title">Hierarchy For Package it.polimi.ingsw.gc14.Model.Cards</h1>
|
||||
</div>
|
||||
<span class="package-hierarchy-label">Package Hierarchies:</span>
|
||||
<ul class="horizontal contents-list">
|
||||
<li><a href="../../../../../../../overview-tree.html">All Packages</a></li>
|
||||
</ul>
|
||||
<section class="hierarchy">
|
||||
<h2 title="Class Hierarchy">Class Hierarchy</h2>
|
||||
<ul>
|
||||
<li class="circle">java.lang.<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Object.html" class="type-name-link external-link" title="class or interface in java.lang">Object</a>
|
||||
<ul>
|
||||
<li class="circle">it.polimi.ingsw.gc14.Model.<a href="../PlayableCard.html" class="type-name-link" title="class in it.polimi.ingsw.gc14.Model">PlayableCard</a> (implements java.io.<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/Serializable.html" title="class or interface in java.io" class="external-link">Serializable</a>)
|
||||
<ul>
|
||||
<li class="circle">it.polimi.ingsw.gc14.Model.Cards.<a href="BuildingCard.html" class="type-name-link" title="class in it.polimi.ingsw.gc14.Model.Cards">BuildingCard</a> (implements it.polimi.ingsw.gc14.Model.Cards.Building.<a href="Building/BuildingEffect.html" title="interface in it.polimi.ingsw.gc14.Model.Cards.Building">BuildingEffect</a>, java.lang.<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/Cloneable.html" title="class or interface in java.lang" class="external-link">Cloneable</a>, java.io.<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/Serializable.html" title="class or interface in java.io" class="external-link">Serializable</a>)</li>
|
||||
<li class="circle">it.polimi.ingsw.gc14.Model.Cards.<a href="TribeCard.html" class="type-name-link" title="class in it.polimi.ingsw.gc14.Model.Cards">TribeCard</a> (implements java.io.<a href="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/io/Serializable.html" title="class or interface in java.io" class="external-link">Serializable</a>)</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user