Class CombatAspect
Aspect of an entity that is related to combat.
public class CombatAspect : EntityAspect, IAspect<Entity>, IAspect
- Inheritance
-
BaseAspect<Entity>CombatAspect
- Implements
-
IAspect<Entity>
- Inherited Members
- Extension Methods
Constructors
CombatAspect(EntityAspect, bool)
Initializes a new instance of the EntityAspect class with another aspect.
public CombatAspect(EntityAspect aspect, bool strict = true)
Parameters
aspect
EntityAspectThe aspect to copy from.
strict
boolIf true, the aspect will throw an exception if the entity is null.
Exceptions
- ArgumentNullException
Thrown when the entity of the aspect is null.
CombatAspect(Entity, bool)
Initializes a new instance of the EntityAspect class with the specified entity.
public CombatAspect(Entity entity, bool strict = true)
Parameters
entity
EntityThe entity to associate with this aspect.
strict
boolIf true, the aspect will throw an exception if the entity is null.
Exceptions
- ArgumentNullException
Thrown when the entity is null.
Properties
GenericCombatMovementData
public GenericCombatMovementData? GenericCombatMovementData { get; }
Property Value
- GenericCombatMovementData?
Queries
public static CombatQueries Queries { get; }
Property Value
ResistanceData
public ResistanceData? ResistanceData { get; }
Property Value
- ResistanceData?
Methods
Is(Entity)
public static bool Is(Entity entity)
Parameters
entity
Entity
Returns
Qualifies(Entity)
Checks if the entity qualifies for this aspect.
public override bool Qualifies(Entity entity)
Parameters
entity
Entity
Returns
- bool
Returns true if the entity qualifies, otherwise false.