Uncles

From Intrigues Wiki
Revision as of 13:51, 21 December 2023 by Tayfunwiki (talk | contribs) (Created page with "== <code>Uncles</code> Method in Actor Class == === Overview === The <code>Uncles</code> method in the <code>Actor</code> class is designed to retrieve the uncles of an actor. It includes an option to incorporate both living and deceased uncles based on the provided parameter. === Syntax === <syntaxhighlight lang="c#"> public IEnumerable<Actor> Uncles(bool inclusivePassive = true) </syntaxhighlight> === Parameters === * <code>inclusivePassive</code> (bool): This flag...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Uncles Method in Actor Class

Overview

The Uncles method in the Actor class is designed to retrieve the uncles of an actor. It includes an option to incorporate both living and deceased uncles based on the provided parameter.

Syntax

public IEnumerable<Actor> Uncles(bool inclusivePassive = true)

Parameters

  • inclusivePassive (bool): This flag determines whether deceased (passive state) uncles should be included in the returned collection. The default value is true.

Returns

  • Return Type: IEnumerable<Actor>. The method returns a collection of Actor objects, each representing an uncle of the actor.
  • If inclusivePassive is true, the collection includes all uncles, regardless of their living status.
  • If inclusivePassive is false, it includes only living (active state) uncles.

Description

The Uncles method provides access to the actor's uncles, allowing for the inclusion of deceased uncles based on the inclusivePassive parameter. This method is particularly useful in game scenarios where family relationships and lineage play an important role.

Usage

This method can be important in game narratives or mechanics where an actor's relationship with their extended family, including uncles, is relevant. This could involve storylines about family history, conflicts, alliances, or inheritance.

Example:

var allUncles = someActor.Uncles();
var livingUncles = someActor.Uncles(false);

In these examples, allUncles includes both living and deceased uncles, while livingUncles includes only the living uncles.

Remarks

  • The ability to include or exclude deceased uncles provides a comprehensive understanding of the actor's extended family.
  • This functionality is crucial for accurately portraying complex family trees and their influence on the game's narrative and character dynamics.
  • The Uncles method enhances the depth of the game's world, allowing for richer and more nuanced storytelling.