Nieces

From Intrigues Wiki
Revision as of 13:50, 21 December 2023 by Tayfunwiki (talk | contribs) (Created page with "== <code>Nieces</code> Method in Actor Class == === Overview === The <code>Nieces</code> method in the <code>Actor</code> class is used to retrieve the nieces of an actor. This method allows for the inclusion of both living and deceased nieces based on the specified parameter. === Syntax === <syntaxhighlight lang="c#"> public IEnumerable<Actor> Nieces(bool inclusivePassive = true) </syntaxhighlight> === Parameters === * <code>inclusivePassive</code> (bool): A flag th...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Nieces Method in Actor Class

Overview

The Nieces method in the Actor class is used to retrieve the nieces of an actor. This method allows for the inclusion of both living and deceased nieces based on the specified parameter.

Syntax

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

Parameters

  • inclusivePassive (bool): A flag that determines whether deceased (passive state) nieces should be included in the returned collection. The default setting is true.

Returns

  • Return Type: IEnumerable<Actor>. The method returns a collection of Actor objects, each representing a niece of the actor.
  • When inclusivePassive is set to true, the collection includes all nieces, regardless of their state (alive or dead).
  • When inclusivePassive is set to false, it only includes living (active state) nieces.

Description

The Nieces method facilitates access to the actor's nieces, with an option to include those who have passed away. This method is particularly useful in game scenarios where extended family relationships are significant.

Usage

This method can be important in game narratives or mechanics where an actor's relationship with extended family members, such as nieces, is relevant. This could include storylines involving family legacies, conflicts, or inheritance.

Example:

var allNieces = someActor.Nieces();
var livingNieces = someActor.Nieces(false);

In these examples, allNieces will include both living and deceased nieces, while livingNieces will include only the living nieces.

Remarks

  • The option to include or exclude deceased nieces provides a comprehensive understanding of the actor's family dynamics.
  • Such a feature is essential for depicting complex family structures and their impact on the game's narrative and character development.
  • The Nieces method adds depth to the game's world, allowing for more intricate and detailed storytelling.