<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://www.wlabsocks.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Clan.HasPolicy</id>
	<title>Clan.HasPolicy - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://www.wlabsocks.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Clan.HasPolicy"/>
	<link rel="alternate" type="text/html" href="http://www.wlabsocks.com/wiki/index.php?title=Clan.HasPolicy&amp;action=history"/>
	<updated>2026-05-12T23:27:12Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.5</generator>
	<entry>
		<id>http://www.wlabsocks.com/wiki/index.php?title=Clan.HasPolicy&amp;diff=932&amp;oldid=prev</id>
		<title>Tayfunwiki: Created page with &quot;== &lt;code&gt;HasPolicy&lt;/code&gt; Method in Clan Class ==  === Overview === The &lt;code&gt;HasPolicy&lt;/code&gt; method in the Clan class is used to determine whether the clan has accepted a specific policy. This method is essential for understanding the clan's current policies and their impact on gameplay and clan dynamics.  === Method Definition === &lt;syntaxhighlight lang=&quot;c#&quot;&gt; public bool HasPolicy(string policyNameOrId); &lt;/syntaxhighlight&gt;  === Description ===  * Parameters: ** &lt;code&gt;p...&quot;</title>
		<link rel="alternate" type="text/html" href="http://www.wlabsocks.com/wiki/index.php?title=Clan.HasPolicy&amp;diff=932&amp;oldid=prev"/>
		<updated>2024-01-05T00:51:48Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== &amp;lt;code&amp;gt;HasPolicy&amp;lt;/code&amp;gt; Method in Clan Class ==  === Overview === The &amp;lt;code&amp;gt;HasPolicy&amp;lt;/code&amp;gt; method in the Clan class is used to determine whether the clan has accepted a specific policy. This method is essential for understanding the clan&amp;#039;s current policies and their impact on gameplay and clan dynamics.  === Method Definition === &amp;lt;syntaxhighlight lang=&amp;quot;c#&amp;quot;&amp;gt; public bool HasPolicy(string policyNameOrId); &amp;lt;/syntaxhighlight&amp;gt;  === Description ===  * Parameters: ** &amp;lt;code&amp;gt;p...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== &amp;lt;code&amp;gt;HasPolicy&amp;lt;/code&amp;gt; Method in Clan Class ==&lt;br /&gt;
&lt;br /&gt;
=== Overview ===&lt;br /&gt;
The &amp;lt;code&amp;gt;HasPolicy&amp;lt;/code&amp;gt; method in the Clan class is used to determine whether the clan has accepted a specific policy. This method is essential for understanding the clan's current policies and their impact on gameplay and clan dynamics.&lt;br /&gt;
&lt;br /&gt;
=== Method Definition ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;c#&amp;quot;&amp;gt;&lt;br /&gt;
public bool HasPolicy(string policyNameOrId);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
* Parameters:&lt;br /&gt;
** &amp;lt;code&amp;gt;policyNameOrId&amp;lt;/code&amp;gt;: The name or ID of the policy to check.&lt;br /&gt;
* Returns: &amp;lt;code&amp;gt;True&amp;lt;/code&amp;gt; if the policy is accepted by the clan; otherwise, &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Functionality ===&lt;br /&gt;
&lt;br /&gt;
* The method checks the clan's list of policies to see if a specific policy, identified by its name or ID, is included.&lt;br /&gt;
* It returns &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; if the policy is currently accepted by the clan, indicating that the policy is active and influencing the clan.&lt;br /&gt;
* If the policy is not found or not accepted, the method returns &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
This method is particularly useful in gameplay scenarios where the clan's policies affect decisions, clan member behavior, resource management, or narrative outcomes. It allows for quick verification of a clan's adherence to specific policies.&lt;br /&gt;
&lt;br /&gt;
=== Example of Usage ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;c#&amp;quot;&amp;gt;&lt;br /&gt;
public class ClanPolicyChecker : MonoBehaviour {&lt;br /&gt;
    private Clan playerClan;&lt;br /&gt;
&lt;br /&gt;
    void Start() {&lt;br /&gt;
        playerClan = IM.Player.Clan;&lt;br /&gt;
        if (playerClan != null) {&lt;br /&gt;
            bool hasEconomicPolicy = playerClan.HasPolicy(&amp;quot;EconomicGrowth&amp;quot;);&lt;br /&gt;
            Debug.Log($&amp;quot;Does the player's clan have the 'Economic Growth' policy? {hasEconomicPolicy}&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Description ====&lt;br /&gt;
&lt;br /&gt;
* This example showcases how to use the &amp;lt;code&amp;gt;HasPolicy&amp;lt;/code&amp;gt; method to check if the player's clan has adopted the 'Economic Growth' policy.&lt;br /&gt;
* The result of this check is logged to the console, informing whether the clan currently embraces this policy.&lt;br /&gt;
&lt;br /&gt;
=== Remarks ===&lt;br /&gt;
&lt;br /&gt;
* The &amp;lt;code&amp;gt;HasPolicy&amp;lt;/code&amp;gt; method is key to dynamically managing clan policies and their implications in the game.&lt;br /&gt;
* It offers developers the ability to create conditions and branching paths in gameplay and narratives based on the clan's policy choices.&lt;br /&gt;
* Proper utilization of this method can significantly enhance the player's strategic decisions and interaction with the clan's governance and direction.&lt;/div&gt;</summary>
		<author><name>Tayfunwiki</name></author>
	</entry>
</feed>