StatConditionContext ​
Inherits: RefCounted
What the conditions on a stat effect can see: the entity that owns the stat, and the opponent of the hit being calculated (the defender while the owner attacks, the attacker while the owner defends; null outside a hit). EntityCondition understands it: "argument entity" is the owner, and the new target kind "opponent" is the other side. See docs/systems/entity-stats.md, section 24.3.
Variables ​
Variant | owner | null |
Variant | opponent | null |
GameHost.SystemHub | system_hub | null |
Methods ​
StatConditionContext | create( p_owner: Variant, p_opponent: Variant = null, p_system_hub: GameHost.SystemHub = null ) static |
Variable descriptions ​
Variant owner = null ​
The entity that owns the stat.
Variant opponent = null ​
The other side of the hit being worked out (the defender when the owner attacks, the attacker when it defends).
GameHost.SystemHub system_hub = null ​
The hub of the game systems.
Method descriptions ​
StatConditionContext create( p_owner: Variant, p_opponent: Variant = null, p_system_hub: GameHost.SystemHub = null ) ​
Makes a context for an owner, an opponent and the hub.