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/intrinsic_dimension_ratings.rs ]
crate::ix!();

/// Intrinsic capability ratings for a warrior.  
/// Every field accepts a `f64` in `0.0‒1.0`, where larger numbers indicate
/// stronger presence of the described trait.
#[derive(
    SaveLoad,
    AiJsonTemplate,
    AiJsonTemplateWithJustification,
    Clone,
    Debug,
    Serialize,
    Deserialize,
    Builder,
    Getters,
    Default,
)]
#[builder(default,pattern = "owned")]
#[getset(get = "pub")]
pub struct WarriorCapabilityIntrinsicDimensionRatings {
    /// Set higher when the warrior’s courage is perceived as inspired by a sacred or transcendent source.
    divine_valor_intensity:            f64,
    /// Set higher when the warrior naturally shapes group decisions and compels obedience through presence and authority.
    command_influence:                 f64,
    /// Set higher when the warrior reliably crafts effective long‑term battle or campaign plans.
    strategic_acumen:                  f64,
    /// Set higher when protecting allies or key assets is the warrior’s immediate reflex under threat.
    guardian_instinct:                 f64,
    /// Set higher for raw strength and striking power in close combat.
    physical_potency:                  f64,
    /// Set higher for endurance under sustained hardship such as fatigue, wounds, or environmental stress.
    resilience_capacity:               f64,
    /// Set higher when the warrior channels, commands, or resists other‑worldly forces.
    supernatural_affinity:             f64,
    /// Set higher for mastery of advanced weapons, machinery, or devices in warfare.
    technological_prowess:             f64,
    /// Set closer to 1.0 for unwavering ethical integrity; closer to 0.0 for amorality.
    moral_alignment:                   f64,
    /// Set higher when the warrior accepts danger with minimal hesitation.
    risk_tolerance:                    f64,
    /// Set higher for fearless action amid immediate lethal threat.
    battlefield_courage:               f64,
    /// Set higher when the warrior defends principles despite social or personal cost.
    moral_courage:                     f64,
    /// Set higher when the warrior continues effective action while severely outmatched.
    persistence_under_odds:            f64,
    /// Set higher when the warrior questions or opposes illegitimate command structures.
    authority_challenge:               f64,
    /// Set higher for self‑sacrificing acts that shield others from harm.
    protective_bravery:                f64,
    /// Set higher when the warrior raises allied spirits by example or words.
    morale_inspiration:                f64,
    /// Set higher for synchronizing units in real time (formations, timing, cross‑fire).
    tactical_coordination:             f64,
    /// Set higher when the warrior guides civic or factional governance beyond the battlefield.
    political_leadership:              f64,
    /// Set higher when behavior consistently models discipline, honor, and respect.
    exemplary_conduct:                 f64,
    /// Set higher when the warrior invokes traditions of rebellions or liberation movements.
    revolutionary_heritage:            f64,
    /// Set higher when the warrior seeks to overpower and command rivals through force or presence.
    dominance:                         f64,
    /// Set higher for mastery of troop placement, flanking, and micro‑maneuvers.
    tactical_expertise:                f64,
    /// Set higher when the warrior engineers alliances, truces, or negotiations to win wars.
    diplomatic_strategy:               f64,
    /// Set higher when the warrior manipulates enemy perception, morale, or decision cycles.
    psychological_operations:          f64,
    /// Set higher for creative problem‑solving under material or informational scarcity.
    resourcefulness:                   f64,
    /// Set higher when the warrior employs harsh means without hesitation to secure objectives.
    ruthlessness:                      f64,
    /// Set higher when the warrior habitually chooses or shapes ground that confers advantage.
    terrain_selection:                 f64,
    /// Set higher for successful use of feints, ruses, and misinformation in combat.
    deception_mastery:                 f64,
    /// Set higher when the warrior pivots tactics seamlessly as conditions change.
    adaptability:                      f64,
    /// Set higher when the warrior employs unrestricted strategies impacting entire societies.
    total_warfare:                     f64,
    /// Set higher for skill in holding borders, walls, or perimeter lines under assault.
    boundary_defense:                  f64,
    /// Set higher when the warrior defends civilian populations and local culture.
    community_guardianship:            f64,
    /// Set higher when the warrior safeguards or restores natural ecosystems during conflict.
    environmental_protection:          f64,
    /// Set higher when the warrior preserves artefacts, rituals, or identity of a people.
    cultural_heritage_guard:           f64,
    /// Set higher for counter‑spells, wards, or nullifying hostile arcana.
    magical_protection:                f64,
    /// Set higher when the warrior prevents long‑range or delayed threats to key assets.
    strategic_safeguarding:            f64,
    /// Set higher for sustained alertness to emerging dangers.
    vigilance:                         f64,
    /// Set higher when the warrior imposes control over contested ground.
    territorial_domination:            f64,
    /// Set higher for readiness (fortifications, drills, plans) before attacks occur.
    defensive_preparedness:           f64,
    /// Set higher for quick directional movement and body control.
    agility:                           f64,
    /// Set higher for maximal lifting and striking force.
    strength:                          f64,
    /// Set higher for prolonged exertion without fatigue.
    physical_endurance:                f64,
    /// Set higher when the warrior strikes targets with exact placement under varying conditions.
    precision:                         f64,
    /// Set higher for consistent hits with projectiles.
    ranged_accuracy:                   f64,
    /// Set higher for mastery of close‑quarters weapons.
    melee_skill:                       f64,
    /// Set higher when the warrior invents or pioneers tactics, tools, or approaches.
    innovation:                        f64,
    /// Set higher for foraging, navigation, and sheltering in hostile environments.
    survival_skill:                    f64,
    /// Set higher for expert control of mounts, ships, or vehicles in combat.
    vehicular_mastery:                 f64,
    /// Set higher when the warrior safely manages explosives, toxins, or radioactive items.
    hazardous_material_handling:       f64,
    /// Set higher for climbing, flight, or grappling‑hook proficiency during battle.
    vertical_mobility:                 f64,
    /// Set higher for resistance to fear, pain, or magical coercion.
    mental_fortitude:                  f64,
    /// Set higher when the warrior rebounds from trauma stronger than before.
    transformative_resilience:         f64,
    /// Set higher for disciplined waiting and timing before action.
    patience:                          f64,
    /// Set higher for dodging and creating distance from attacks.
    evasive_agility:                   f64,
    /// Set higher when the warrior rapidly recovers under new stressors.
    adaptive_resilience:               f64,
    /// Set higher for readiness against metaphysical threats and inner turmoil.
    spiritual_preparedness:            f64,
    /// Set higher when the warrior holds positions or beliefs despite pressure.
    steadfastness:                     f64,
    /// Set higher when the warrior controls the pace of engagements.
    tempo_management:                  f64,
    /// Set higher for real‑time grasp of allies, foes, and terrain.
    situational_awareness:             f64,
    /// Set higher for creating effective ad‑hoc solutions under surprise.
    improvisational_flexibility:       f64,
    /// Set higher for reliably eliminating dangers quickly.
    threat_neutralization_efficacy:    f64,
    /// Set higher when the warrior ends fights without continued violence.
    conflict_deescalation_proficiency: f64,
    /// Set higher for raw magical damage output.
    destructive_arcana_force:          f64,
    /// Set higher for resisting enemy magic that targets defense.
    protective_enchantment_resilience: f64,
    /// Set higher for altering or obscuring what others perceive.
    perceptual_subversion:             f64,
    /// Set higher for minimal energy cost per magical effect.
    arcane_efficiency:                 f64,
    /// Set higher for manipulating fire, water, air, earth, or similar forces.
    elemental_control:                 f64,
    /// Set higher for single, decisive pinpoint attacks.
    precision_strike:                  f64,
    /// Set higher for continuous damage over time.
    sustained_barrage:                 f64,
    /// Set higher for canceling or destabilizing enemy spells.
    anti_magic_disruption:             f64,
    /// Set higher for fortitude when holding strategic locations.
    territorial_defense_strength:      f64,
    /// Set higher for long‑term layered defense architectures.
    strategic_defensive_planning:      f64,
    /// Set higher for applying lingering detrimental magic to adversaries.
    curse_utilization:                 f64,
    /// Set higher for durability of shields, walls, and magical wards generated or maintained.
    barrier_integrity:                 f64,
    /// Set higher for intercepting harm aimed at comrades.
    ally_protection:                   f64,
    /// Set higher for restraining or immobilizing foes.
    binding_control:                   f64,
    /// Set higher for crafting convincing sensory fabrications.
    illusion_mastery:                  f64,
    /// Set higher for altering physical form effectively.
    shapeshift_skill:                  f64,
    /// Set higher for false signals about force strength or intent.
    deception_projection:              f64,
    /// Set higher for concealing marches, flanks, or retreats.
    movement_masking:                  f64,
    /// Set higher for modifying landscape to hinder foes or aid allies.
    terrain_alteration:                f64,
    /// Set higher for lures that draw enemy focus away from true objectives.
    diversion_effectiveness:           f64,
    /// Set higher for withstanding digital or network‑based attacks.
    cyber_resilience:                  f64,
    /// Set higher for speed of adopting or inventing new tech or tactics.
    innovation_velocity:               f64,
    /// Set higher when plans remain hidden from hostile intelligence.
    operational_security:              f64,
    /// Set higher for promptly spotting stealthy threats.
    detection_vigilance:               f64,
    /// Set higher for minimal latency between detection and effective action.
    response_timeliness:               f64,
    /// Set higher for eliminating hostile code or magical equivalents.
    malware_neutralization:            f64,
    /// Set higher for protecting signals from interception or tampering.
    communication_security:            f64,
    /// Set higher for self‑activating defenses or autonomous drones.
    autonomous_countermeasures:        f64,
    /// Set higher when the warrior’s conduct aligns with widely admired virtues that bolster morale.
    virtue_resonance:                  f64,
    /// Set higher when the warrior prioritizes healthy bonds and alliances.
    relational_orientation:            f64,
    /// Set higher for thinking in multi‑layer conceptual strategy rather than only concrete details.
    abstraction_depth:                 f64,
    /// Set higher when actions match inner convictions and physical presence conveys truth.
    embodied_authenticity:             f64,
    /// Set higher when plans remain coherent across changing contexts.
    strategic_consistency:             f64,
    /// Set higher when mere posture or aura projects power.
    strength_presence:                 f64,
    /// Set higher for fervent, visible fearlessness.
    bravery_intensity:                 f64,
    /// Set higher for strict adherence to codes of conduct.
    honor_discipline:                  f64,
    /// Set higher when mercy coexists with determination.
    compassion_resolve:                f64,
    /// Set higher for seamless integration of intent, emotion, and motion.
    mind_body_harmony:                 f64,
    /// Set higher for creative endurance through prolonged hardship.
    perseverance_ingenuity:            f64,
    /// Set higher when the warrior prefers negotiation before conflict.
    diplomatic_bias:                   f64,
    /// Set higher when the warrior seeks formal partnerships.
    alliance_preference:               f64,
    /// Set higher when the warrior balances aggression with restraint.
    force_balance:                     f64,
    /// Set higher for preventing runaway cycles of retaliation.
    escalation_control:                f64,
    /// Set higher when the warrior earns genuine esteem from friend and foe.
    respect_cultivation:               f64,
    /// Set higher for operating effectively across strategic, operational, and tactical layers simultaneously.
    abstraction_level:                 f64,
    /// Set higher when plans are detailed and concrete rather than vague.
    representational_specificity:      f64,
    /// Set higher when the warrior’s influence spans many domains (land, sea, cyber, arcane, etc.).
    capability_scope:                  f64,
    /// Set higher when latent traits can compound into future power leaps.
    emergent_potential:                f64,
    /// Set higher when the warrior leads effectively without revealing identity or position.
    low_visibility_command:            f64,
    /// Set higher for reshaping formations or doctrines on the fly.
    tactical_plasticity:               f64,
    /// Set higher for turning enemy force against them.
    momentum_redirection:              f64,
    /// Set higher for withstanding fire, frost, storms, or other elemental hazards.
    elemental_resilience:              f64,
    /// Set higher when clarity of thought persists in dire situations.
    composure_under_pressure:          f64,
}

impl WarriorCapabilityIntrinsicDimensionRatings {
    /// Return the entire 115‑element intrinsic‑dimension vector in declaration
    /// order.  (Uses the public getters generated by `getset`, so this method
    /// may live in any module.)
    #[inline]
    #[must_use]
    pub fn to_vec(&self) -> Vec<f64> {
        vec![
            *self.divine_valor_intensity(),
            *self.command_influence(),
            *self.strategic_acumen(),
            *self.guardian_instinct(),
            *self.physical_potency(),
            *self.resilience_capacity(),
            *self.supernatural_affinity(),
            *self.technological_prowess(),
            *self.moral_alignment(),
            *self.risk_tolerance(),
            *self.battlefield_courage(),
            *self.moral_courage(),
            *self.persistence_under_odds(),
            *self.authority_challenge(),
            *self.protective_bravery(),
            *self.morale_inspiration(),
            *self.tactical_coordination(),
            *self.political_leadership(),
            *self.exemplary_conduct(),
            *self.revolutionary_heritage(),
            *self.dominance(),
            *self.tactical_expertise(),
            *self.diplomatic_strategy(),
            *self.psychological_operations(),
            *self.resourcefulness(),
            *self.ruthlessness(),
            *self.terrain_selection(),
            *self.deception_mastery(),
            *self.adaptability(),
            *self.total_warfare(),
            *self.boundary_defense(),
            *self.community_guardianship(),
            *self.environmental_protection(),
            *self.cultural_heritage_guard(),
            *self.magical_protection(),
            *self.strategic_safeguarding(),
            *self.vigilance(),
            *self.territorial_domination(),
            *self.defensive_preparedness(),
            *self.agility(),
            *self.strength(),
            *self.physical_endurance(),
            *self.precision(),
            *self.ranged_accuracy(),
            *self.melee_skill(),
            *self.innovation(),
            *self.survival_skill(),
            *self.vehicular_mastery(),
            *self.hazardous_material_handling(),
            *self.vertical_mobility(),
            *self.mental_fortitude(),
            *self.transformative_resilience(),
            *self.patience(),
            *self.evasive_agility(),
            *self.adaptive_resilience(),
            *self.spiritual_preparedness(),
            *self.steadfastness(),
            *self.tempo_management(),
            *self.situational_awareness(),
            *self.improvisational_flexibility(),
            *self.threat_neutralization_efficacy(),
            *self.conflict_deescalation_proficiency(),
            *self.destructive_arcana_force(),
            *self.protective_enchantment_resilience(),
            *self.perceptual_subversion(),
            *self.arcane_efficiency(),
            *self.elemental_control(),
            *self.precision_strike(),
            *self.sustained_barrage(),
            *self.anti_magic_disruption(),
            *self.territorial_defense_strength(),
            *self.strategic_defensive_planning(),
            *self.curse_utilization(),
            *self.barrier_integrity(),
            *self.ally_protection(),
            *self.binding_control(),
            *self.illusion_mastery(),
            *self.shapeshift_skill(),
            *self.deception_projection(),
            *self.movement_masking(),
            *self.terrain_alteration(),
            *self.diversion_effectiveness(),
            *self.cyber_resilience(),
            *self.innovation_velocity(),
            *self.operational_security(),
            *self.detection_vigilance(),
            *self.response_timeliness(),
            *self.malware_neutralization(),
            *self.communication_security(),
            *self.autonomous_countermeasures(),
            *self.virtue_resonance(),
            *self.relational_orientation(),
            *self.abstraction_depth(),
            *self.embodied_authenticity(),
            *self.strategic_consistency(),
            *self.strength_presence(),
            *self.bravery_intensity(),
            *self.honor_discipline(),
            *self.compassion_resolve(),
            *self.mind_body_harmony(),
            *self.perseverance_ingenuity(),
            *self.diplomatic_bias(),
            *self.alliance_preference(),
            *self.force_balance(),
            *self.escalation_control(),
            *self.respect_cultivation(),
            *self.abstraction_level(),
            *self.representational_specificity(),
            *self.capability_scope(),
            *self.emergent_potential(),
            *self.low_visibility_command(),
            *self.tactical_plasticity(),
            *self.momentum_redirection(),
            *self.elemental_resilience(),
            *self.composure_under_pressure(),
        ]
    }
}