character-traits-warrior-capability 0.1.0

A Rust crate for modeling and simulating a broad spectrum of warrior capabilities, aimed at enhancing intricate game mechanics and strategic simulations.
Documentation
// ---------------- [ File: character-traits-warrior-capability/src/meta_capability.rs ]
crate::ix!();

#[derive(Copy,EnumIter,Debug, Clone, PartialEq, Eq, Hash)]
pub enum WarriorMetaCapability {
    /// Chosen for entities symbolizing universal warrior principles and ideals, serving as archetypal references or inspirational symbols.
    RepresentsAbstractWarriorEssence,

    /// Selected when defining entities with latent abilities or unknown capacities intended to develop significantly over time or narrative progression.
    UndefinedFutureWarriorPotential,

    /// Suited for entities exemplifying the adaptability and evolution of warrior traits in response to shifting combat paradigms or eras.
    RepresentsAdaptiveWarriorEvolution,

    /// Appropriate for symbolic entities representing the conceptual boundary between martial discipline and broader existential themes.
    EmbodiesWarriorPhilosophicalIdeals,

    /// Preferred for characters whose primary role involves reflecting or critiquing conventional warrior archetypes rather than actively embodying them.
    SymbolizesWarriorArchetypeCritique,

    /// Chosen to signify characters or entities representing potential fusions or syntheses of warrior capabilities, especially in speculative contexts.
    RepresentsPotentialCapabilityFusion,

    /// Useful for conceptual entities signifying how traditional warrior traits might integrate with futuristic or non-human paradigms.
    AbstractWarriorConceptualIntegration,
}

impl WarriorMetaCapability {
    /// Return the fully‑specified **intrinsic dimension ratings** for the given
    /// [`WarriorMetaCapability`] variant.
    ///
    /// * Every field is assigned on the canonical **0.0 – 1.0** scale.
    /// * Ratings were derived with the domain guidelines you provided
    ///   (baseline presence = `0.25`, salient strengths elevated to `0.50 – 1.00`,
    ///   muted/latent facets at `0.00`).
    /// * A `tracing` span is emitted for observability.
    #[instrument(level = "info", skip(self))]
    pub fn intrinsic_dimension_ratings(&self) -> WarriorCapabilityIntrinsicDimensionRatings {
        use WarriorMetaCapability::*;

        let ratings = match self {
            /* ------------------------------------------------------------------
               Represents Abstract Warrior Essence
               – Core ideals: moral_alignment, virtue_resonance, honor, bravery
            ------------------------------------------------------------------ */
            RepresentsAbstractWarriorEssence => wc_ratings!(
                /*   1‑10  */ 0.50,0.25,0.50,0.50,0.25,0.25,0.25,0.25,0.75,0.25,
                /*  11‑20  */ 0.50,0.75,0.25,0.25,0.25,0.75,0.25,0.25,0.75,0.25,
                /*  21‑30  */ 0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,
                /*  31‑40  */ 0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,
                /*  41‑50  */ 0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,
                /*  51‑60  */ 0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,
                /*  61‑70  */ 0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,
                /*  71‑80  */ 0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,
                /*  81‑90  */ 0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,
                /*  91‑100 */ 0.75,0.25,0.50,0.25,0.50,0.50,0.75,0.75,0.50,0.25,
                /* 101‑110 */ 0.25,0.25,0.25,0.25,0.25,0.25,0.50,0.25,0.50,0.25,
                /* 111‑115 */ 0.25,0.25,0.25,0.25,0.25
            ),

            /* ------------------------------------------------------------------
               Undefined Future Warrior Potential
               – Minimal present ability, maximal emergent_potential
            ------------------------------------------------------------------ */
            UndefinedFutureWarriorPotential => wc_ratings!(
                /*   1‑10  */ 0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.50,0.25,
                /*  11‑20  */ 0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.25,0.00,
                /*  21‑30  */ 0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.50,0.00,
                /*  31‑40  */ 0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,
                /*  41‑50  */ 0.00,0.00,0.00,0.00,0.00,0.50,0.00,0.00,0.00,0.00,
                /*  51‑60  */ 0.00,0.00,0.00,0.00,0.50,0.00,0.00,0.00,0.00,0.00,
                /*  61‑70  */ 0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,
                /*  71‑80  */ 0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,
                /*  81‑90  */ 0.00,0.00,0.00,0.50,0.00,0.00,0.00,0.00,0.00,0.00,
                /*  91‑100 */ 0.50,0.00,0.50,0.00,0.25,0.00,0.00,0.00,0.00,0.00,
                /* 101‑110 */ 0.00,0.00,0.00,0.00,0.00,0.00,0.50,0.00,0.75,1.00,
                /* 111‑115 */ 0.00,0.00,0.00,0.00,0.00
            ),

            /* ------------------------------------------------------------------
               Represents Adaptive Warrior Evolution
               – High adaptability, innovation_velocity, adaptive_resilience
            ------------------------------------------------------------------ */
            RepresentsAdaptiveWarriorEvolution => wc_ratings!(
                /*   1‑10  */ 0.25,0.25,0.75,0.25,0.25,0.25,0.25,0.75,0.25,0.50,
                /*  11‑20  */ 0.25,0.25,0.25,0.25,0.25,0.25,0.50,0.25,0.25,0.25,
                /*  21‑30  */ 0.25,0.25,0.25,0.25,0.75,0.25,0.25,0.50,0.25,0.25,
                /*  31‑40  */ 0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,
                /*  41‑50  */ 0.25,0.25,0.25,0.25,0.25,0.25,0.75,0.25,0.25,0.25,
                /*  51‑60  */ 0.25,0.25,0.25,0.25,0.75,0.25,0.25,0.25,0.50,0.25,
                /*  61‑70  */ 0.25,0.25,0.25,0.25,0.25,0.25,0.75,0.75,0.25,0.25,
                /*  71‑80  */ 0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,
                /*  81‑90  */ 0.25,0.25,0.25,0.75,0.25,0.25,0.25,0.25,0.25,0.25,
                /*  91‑100 */ 0.25,0.25,0.75,0.25,0.25,0.25,0.25,0.25,0.25,0.25,
                /* 101‑110 */ 0.25,0.25,0.25,0.25,0.25,0.25,0.75,0.60,0.50,0.75,
                /* 111‑115 */ 0.25,0.25,0.25,0.25,0.25
            ),

            /* ------------------------------------------------------------------
               Embodies Warrior Philosophical Ideals
               – Moral/ethical excellence, deep abstraction, respect cultivation
            ------------------------------------------------------------------ */
            EmbodiesWarriorPhilosophicalIdeals => wc_ratings!(
                /*   1‑10  */ 0.50,0.25,0.25,0.50,0.25,0.25,0.25,0.25,0.75,0.25,
                /*  11‑20  */ 0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.75,0.25,
                /*  21‑30  */ 0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,
                /*  31‑40  */ 0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,
                /*  41‑50  */ 0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,
                /*  51‑60  */ 0.25,0.25,0.25,0.25,0.75,0.25,0.25,0.25,0.50,0.25,
                /*  61‑70  */ 0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,
                /*  71‑80  */ 0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,
                /*  81‑90  */ 0.25,0.25,0.25,0.75,0.25,0.25,0.25,0.25,0.25,0.25,
                /*  91‑100 */ 0.25,0.25,0.75,0.50,0.75,0.75,0.75,0.50,0.50,0.75,
                /* 101‑110 */ 0.75,0.75,0.60,0.75,0.75,0.75,0.50,0.25,0.50,0.25,
                /* 111‑115 */ 0.75,0.50,0.75,0.25,0.25
            ),

            /* ------------------------------------------------------------------
               Symbolizes Warrior Archetype Critique
               – High perceptual_subversion & deception; reflective stance
            ------------------------------------------------------------------ */
            SymbolizesWarriorArchetypeCritique => wc_ratings!(
                /*   1‑10  */ 0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.40,0.25,
                /*  11‑20  */ 0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,
                /*  21‑30  */ 0.25,0.25,0.50,0.60,0.25,0.25,0.25,0.50,0.25,0.25,
                /*  31‑40  */ 0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,
                /*  41‑50  */ 0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,
                /*  51‑60  */ 0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,
                /*  61‑70  */ 0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,
                /*  71‑80  */ 0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,
                /*  81‑90  */ 0.25,0.25,0.25,0.50,0.25,0.60,0.25,0.60,0.25,0.25,
                /*  91‑100 */ 0.25,0.25,0.75,0.25,0.25,0.25,0.25,0.25,0.25,0.25,
                /* 101‑110 */ 0.25,0.50,0.50,0.60,0.50,0.40,0.25,0.25,0.50,0.60,
                /* 111‑115 */ 0.25,0.25,0.50,0.50,0.25
            ),

            /* ------------------------------------------------------------------
               Represents Potential Capability Fusion
               – High capability_scope & emergent_potential, plus techno‑&‑arcane blend
            ------------------------------------------------------------------ */
            RepresentsPotentialCapabilityFusion => wc_ratings!(
                /*   1‑10  */ 0.25,0.25,0.25,0.25,0.25,0.25,0.50,0.75,0.25,0.25,
                /*  11‑20  */ 0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,
                /*  21‑30  */ 0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.50,0.25,0.25,
                /*  31‑40  */ 0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,
                /*  41‑50  */ 0.50,0.50,0.25,0.25,0.25,0.25,0.75,0.25,0.25,0.25,
                /*  51‑60  */ 0.25,0.25,0.25,0.25,0.75,0.25,0.25,0.25,0.25,0.25,
                /*  61‑70  */ 0.25,0.25,0.25,0.25,0.25,0.25,0.50,0.25,0.50,0.50,
                /*  71‑80  */ 0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,
                /*  81‑90  */ 0.25,0.25,0.25,0.50,0.25,0.25,0.25,0.25,0.25,0.25,
                /*  91‑100 */ 0.25,0.25,0.75,0.25,0.25,0.25,0.25,0.25,0.25,0.25,
                /* 101‑110 */ 0.25,0.25,0.50,0.50,0.50,0.25,0.75,0.50,0.75,1.00,
                /* 111‑115 */ 0.25,0.25,0.50,0.50,0.25
            ),

            /* ------------------------------------------------------------------
               Abstract Warrior Conceptual Integration
               – Futuristic/non‑human integration, cyber resilience, deep abstraction
            ------------------------------------------------------------------ */
            AbstractWarriorConceptualIntegration => wc_ratings!(
                /*   1‑10  */ 0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.75,0.25,0.25,
                /*  11‑20  */ 0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,
                /*  21‑30  */ 0.25,0.25,0.25,0.25,0.50,0.25,0.25,0.50,0.25,0.25,
                /*  31‑40  */ 0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,
                /*  41‑50  */ 0.25,0.25,0.25,0.25,0.25,0.40,0.25,0.25,0.25,0.40,
                /*  51‑60  */ 0.25,0.25,0.25,0.25,0.75,0.25,0.25,0.25,0.50,0.25,
                /*  61‑70  */ 0.25,0.25,0.25,0.25,0.25,0.40,0.25,0.25,0.25,0.40,
                /*  71‑80  */ 0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,0.25,
                /*  81‑90  */ 0.25,0.25,0.75,0.75,0.50,0.25,0.25,0.25,0.25,0.25,
                /*  91‑100 */ 0.25,0.25,0.75,0.25,0.25,0.25,0.25,0.25,0.25,0.25,
                /* 101‑110 */ 0.25,0.25,0.25,0.25,0.25,0.25,0.75,0.60,0.50,0.75,
                /* 111‑115 */ 0.25,0.25,0.25,0.25,0.25
            ),
        };

        info!(
            target: "warrior_meta::intrinsic_dimension",
            ?self,
            "Computed intrinsic dimension ratings."
        );
        ratings
    }
}