Shared.Entity.Components.AggressiveComponent
Type JSONpublic struct in Shared.Entity.Components
Type metadata
- Assembly
Shared - Namespace
Shared.Entity.Components - Base type
System.ValueType - Hash
609D759A7B5DDC9181D2B146BF9AE236F24F5B4275A07A53D72A71D76FA92849
Relationships
Base type
System.ValueType
Referenced by types
Fields
| Name | Visibility | Signature |
|---|---|---|
AggroField# | public | public Shared.Entity.Aggro.IAggroField AggroField |
FleeingCreature# | public | public System.Boolean FleeingCreature |
LastThreatEventPosition# | public | public Microsoft.Xna.Framework.Vector2 LastThreatEventPosition |
MovementBasedThreat# | public | public System.Boolean MovementBasedThreat |
Target# | public | public Shared.Entity.EntityWrapper Target |
ThreatDecay# | public | public System.Single ThreatDecay |
ThreatDecayTimer# | public | public System.Single ThreatDecayTimer |
ThreatTable# | public | public Shared.Entity.Components.ThreatTable ThreatTable |
_checkTriggerTimer# | private | private System.Single _checkTriggerTimer |
_nonAggressiveTimer# | private | private System.Single _nonAggressiveTimer |
Methods
CheckIfAllyHasTarget
#
private System.Boolean CheckIfAllyHasTarget(Shared.Entity.EntityWrapper wrapper, System.Single searchRadiusInTiles)
Method metadata
- Visibilityprivate
- Return type
System.Boolean - StaticFalse
- VirtualFalse
- Hash
B375C29074F0FA179639FFE9B50EE126AB734A8FAE6DFE61D9F4416C9D2E4B4C - Body hash
966B3503D3118BC797175DD6BE74257F3014E347AEFE79EE4EB038C154487218 - IL size216
Referenced calls
Shared.Entity.EntityWrapper::get_Mask()Shared.Entity.Components.ComponentExtension::HasFlags(Shared.Entity.Components.Component, Shared.Entity.Components.Component)Shared.Entity.EntityWrapper::get_Position2()Shared.Entity.EntitySystem::GetEntitiesInCircleArea(Microsoft.Xna.Framework.Vector2, System.Single)System.Collections.Generic.List<Shared.Entity.EntityWrapper>::GetEnumerator()List.Enumerator<Shared.Entity.EntityWrapper>::get_Current()System.Object::Equals(System.Object, System.Object)Shared.Entity.EntityWrapper::get_FactionComponent()Shared.Entity.Components.FactionMaskNewExtension::HasAnyFlags(Shared.Entity.Components.FactionMask, Shared.Entity.Components.FactionMask)Shared.Entity.Aggro.IAggroField::CheckIfLostTarget(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)List.Enumerator<Shared.Entity.EntityWrapper>::MoveNext()System.IDisposable::Dispose()
CheckThreatTableIsOk
#
internal System.Void CheckThreatTableIsOk(Shared.Entity.EntityWrapper entity)
Method metadata
- Visibilityinternal
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
4C6D760CCE6A5D08F0C5C218E1D42177F95F0555D38932435F89FF15BD11AB58 - Body hash
B2E4BB5776195DBA37A8D69D9E7B3197BB4C5CEE541B023C733CF3F07FBE5EF6 - IL size76
Referenced calls
System.Object::Equals(System.Object, System.Object)System.Collections.Generic.Dictionary<Shared.Entity.EntityWrapper, System.ValueTuple<System.Single, Microsoft.Xna.Framework.Vector2>>::Clear()Shared.Entity.Components.ThreatTable::.ctor()
ClearAggro
#
public System.Void ClearAggro(Shared.Entity.EntityWrapper entity)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
F7D47331CDD0DFD16381C7EE914BD0F41EF1A8C3AFE0E3FD5F7BC6FDB4B56128 - Body hash
37C59552D458F64001462ABCA372B176492FC451FB810B72B8A53B9A4B766D94 - IL size24
Referenced calls
Shared.Entity.Components.AggressiveComponent::CheckThreatTableIsOk(Shared.Entity.EntityWrapper)System.Collections.Generic.Dictionary<Shared.Entity.EntityWrapper, System.ValueTuple<System.Single, Microsoft.Xna.Framework.Vector2>>::Clear()
GenerateThreat
#
public System.Void GenerateThreat(Shared.Entity.EntityWrapper threateningEntity, System.Single threatAmount, Shared.Entity.EntityWrapper threatenedEntity)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
3F4B31C93B1E87015780A08EEAA98CDF25FDE64D70F069333BE66D95F7BD169B - Body hash
FF2FB8242C8CA806B62AC16FC8388151B0471AF42867511C6D3D90385D0A9C33 - IL size182
Referenced calls
Shared.Entity.EntityWrapper::get_Mask()Shared.Entity.Components.ComponentExtension::HasFlags(Shared.Entity.Components.Component, Shared.Entity.Components.Component)Shared.Entity.EntityWrapper::get_FactionComponent()Shared.Entity.Components.FactionMaskNewExtension::HasFlags(Shared.Entity.Components.EntityFlags, Shared.Entity.Components.EntityFlags)Shared.Entity.Components.FactionMaskNewExtension::HasFlags(Shared.Entity.Components.FactionMask, Shared.Entity.Components.FactionMask)Shared.Entity.Components.AggressiveComponent::CheckThreatTableIsOk(Shared.Entity.EntityWrapper)Shared.Entity.EntityWrapper::get_Position2()System.Collections.Generic.Dictionary<Shared.Entity.EntityWrapper, System.ValueTuple<System.Single, Microsoft.Xna.Framework.Vector2>>::TryGetValue(!0, !1&)System.ValueTuple<System.Single, Microsoft.Xna.Framework.Vector2>::.ctor(!0, !1)System.Collections.Generic.Dictionary<Shared.Entity.EntityWrapper, System.ValueTuple<System.Single, Microsoft.Xna.Framework.Vector2>>::Add(!0, !1)System.Collections.Generic.Dictionary<Shared.Entity.EntityWrapper, System.ValueTuple<System.Single, Microsoft.Xna.Framework.Vector2>>::set_Item(!0, !1)
Called by
CandideServer.Entities.ControllerSets.Cyclops.ServerCyclopsArenaController::SpawnEntityCandideServer.ServerSystems.EntitySpawnServerSystem::ApplyInstantAggroShared.Combat.SharedCombatHandler::DoDamageShared.Entity.Components.AggressiveComponent::SetEntityThreatToMaxShared.Entity.EntityWrapper::AddThreat
GetHighestThreatEntity
#
public Shared.Entity.EntityWrapper GetHighestThreatEntity()
Method metadata
- Visibilitypublic
- Return type
Shared.Entity.EntityWrapper - StaticFalse
- VirtualFalse
- Hash
389DDC00D30B1BC3B6B063CAAC31383E0B02FC5AECCF3819D5897CD8ADD76C73 - Body hash
ED71F0EE3D0056534367CA491D52B87D3596D9E013134CD922612EA35D62B329 - IL size161
Referenced calls
System.Collections.Generic.Dictionary<Shared.Entity.EntityWrapper, System.ValueTuple<System.Single, Microsoft.Xna.Framework.Vector2>>::GetEnumerator()Dictionary.Enumerator<Shared.Entity.EntityWrapper, System.ValueTuple<System.Single, Microsoft.Xna.Framework.Vector2>>::get_Current()System.Collections.Generic.KeyValuePair<Shared.Entity.EntityWrapper, System.ValueTuple<System.Single, Microsoft.Xna.Framework.Vector2>>::Deconstruct(!0&, !1&)System.Math::Abs(System.Single)Shared.Entity.EntityWrapper::get_Position2()Microsoft.Xna.Framework.Vector2::DistanceSquared(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)Dictionary.Enumerator<Shared.Entity.EntityWrapper, System.ValueTuple<System.Single, Microsoft.Xna.Framework.Vector2>>::MoveNext()System.IDisposable::Dispose()
SetEntityThreatToMax
#
public System.Void SetEntityThreatToMax(Shared.Entity.EntityWrapper threateningEntity, Shared.Entity.EntityWrapper threatenedEntity, System.Single extraThreat)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
8D40B7676CC1ABF071074121DC485B101C857D0591EFE28430ED99E642BAEB73 - Body hash
46EB152A4CEAFF92D90513AC9CB4B90DD429B56FE0BDF1CC0158ED0913E16C1B - IL size131
Referenced calls
Shared.Entity.EntityWrapper::get_FactionComponent()Shared.Entity.Components.FactionMaskNewExtension::HasFlags(Shared.Entity.Components.EntityFlags, Shared.Entity.Components.EntityFlags)Shared.Entity.Components.AggressiveComponent::CheckThreatTableIsOk(Shared.Entity.EntityWrapper)System.Collections.Generic.Dictionary<Shared.Entity.EntityWrapper, System.ValueTuple<System.Single, Microsoft.Xna.Framework.Vector2>>::get_Values()Dictionary.ValueCollection<Shared.Entity.EntityWrapper, System.ValueTuple<System.Single, Microsoft.Xna.Framework.Vector2>>::GetEnumerator()Dictionary.ValueCollection.Enumerator<Shared.Entity.EntityWrapper, System.ValueTuple<System.Single, Microsoft.Xna.Framework.Vector2>>::get_Current()Dictionary.ValueCollection.Enumerator<Shared.Entity.EntityWrapper, System.ValueTuple<System.Single, Microsoft.Xna.Framework.Vector2>>::MoveNext()System.IDisposable::Dispose()System.Collections.Generic.Dictionary<Shared.Entity.EntityWrapper, System.ValueTuple<System.Single, Microsoft.Xna.Framework.Vector2>>::Remove(!0)Shared.Entity.Components.AggressiveComponent::GenerateThreat(Shared.Entity.EntityWrapper, System.Single, Shared.Entity.EntityWrapper)
Called by
BM.EnemyUtil::SetMaxThreatCandideServer.Entities.ControllerSets.Bear.BearGroup::TriggerMamaBearEnrageCandideServer.Entities.ControllerSets.Bear.BearGroup::TryToAssistCubCandideServer.Entities.ControllerSets.Bear.ServerBearCubController::OnDamagedCandideServer.Entities.ServerEntitySystemManager::ShieldBlock
Update
#
public System.Void Update(Shared.Entity.EntityWrapper entity)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
9C40DEE1AE5C687B4DFFF7B6346640718B1CC3FC76FCF0E27F950FF00A9F6E8A - Body hash
689BBBEFC85DDB473BE28DD9DFE798ADB00319D382DADB948FC2A68D19BAE9FF - IL size293
Referenced calls
Shared.Entity.Components.AggressiveComponent::CheckThreatTableIsOk(Shared.Entity.EntityWrapper)Shared.Entity.EntityWrapper::get_Fdt()Shared.Entity.Components.AggressiveComponent::UpdateTrigger(Shared.Entity.EntityWrapper, System.Single)System.Collections.Generic.Dictionary<Shared.Entity.EntityWrapper, System.ValueTuple<System.Single, Microsoft.Xna.Framework.Vector2>>::get_Count()System.Collections.Generic.Dictionary<Shared.Entity.EntityWrapper, System.ValueTuple<System.Single, Microsoft.Xna.Framework.Vector2>>::get_Keys()Dictionary.KeyCollection<Shared.Entity.EntityWrapper, System.ValueTuple<System.Single, Microsoft.Xna.Framework.Vector2>>::GetEnumerator()Dictionary.KeyCollection.Enumerator<Shared.Entity.EntityWrapper, System.ValueTuple<System.Single, Microsoft.Xna.Framework.Vector2>>::get_Current()Shared.Entity.EntityWrapper::get_Mask()Shared.Entity.Components.ComponentExtension::HasFlags(Shared.Entity.Components.Component, Shared.Entity.Components.Component)System.Object::Equals(System.Object, System.Object)Shared.Entity.EntityWrapper::get_FactionComponent()Shared.Entity.Components.FactionMaskNewExtension::HasFlags(Shared.Entity.Components.EntityFlags, Shared.Entity.Components.EntityFlags)Shared.Entity.EntityWrapper::get_FactionMask()Shared.Entity.Components.FactionMaskNewExtension::HasAnyFlags(Shared.Entity.Components.FactionMask, Shared.Entity.Components.FactionMask)System.Collections.Generic.Dictionary<Shared.Entity.EntityWrapper, System.ValueTuple<System.Single, Microsoft.Xna.Framework.Vector2>>::Remove(!0)Dictionary.KeyCollection.Enumerator<Shared.Entity.EntityWrapper, System.ValueTuple<System.Single, Microsoft.Xna.Framework.Vector2>>::MoveNext()System.IDisposable::Dispose()Shared.Entity.Components.AggressiveComponent::UpdateThreatDecay(System.Single)Shared.Entity.Components.AggressiveComponent::GetHighestThreatEntity()Shared.Entity.EntityWrapper::get_Position2()Shared.Entity.Aggro.IAggroField::CheckIfLostTarget(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)Shared.Entity.Components.AggressiveComponent::CheckIfAllyHasTarget(Shared.Entity.EntityWrapper, System.Single)
Called by
UpdateMovementBasedThreat
#
private System.Void UpdateMovementBasedThreat(Shared.Entity.EntityWrapper owner, System.Single dt)
Method metadata
- Visibilityprivate
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
D0190FB9D6432F87B3E1F9D021260067F80D30B6AA3F0588D25350B004FE0FB1 - Body hash
3C10C35D8449D702085708FAD56A18B437AC08967409A41F287B666420E4861D - IL size208
Referenced calls
System.Collections.Generic.Dictionary<Shared.Entity.EntityWrapper, System.ValueTuple<System.Single, Microsoft.Xna.Framework.Vector2>>::GetEnumerator()Dictionary.Enumerator<Shared.Entity.EntityWrapper, System.ValueTuple<System.Single, Microsoft.Xna.Framework.Vector2>>::get_Current()System.Collections.Generic.KeyValuePair<Shared.Entity.EntityWrapper, System.ValueTuple<System.Single, Microsoft.Xna.Framework.Vector2>>::Deconstruct(!0&, !1&)Shared.Entity.EntityWrapper::get_Position2()Microsoft.Xna.Framework.Vector2::op_Subtraction(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)CandideCreator.Shared.Helpers.VectorExtension::NormalizeSafe(Microsoft.Xna.Framework.Vector2&)Shared.Entity.EntityWrapper::get_Velocity()CandideCreator.Shared.Helpers.VectorExtension::ToVector2(Microsoft.Xna.Framework.Vector3)Microsoft.Xna.Framework.Vector2::Dot(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)Microsoft.Xna.Framework.Vector2::Length()System.ValueTuple<System.Single, Microsoft.Xna.Framework.Vector2>::.ctor(!0, !1)System.Collections.Generic.Dictionary<Shared.Entity.EntityWrapper, System.ValueTuple<System.Single, Microsoft.Xna.Framework.Vector2>>::set_Item(!0, !1)Dictionary.Enumerator<Shared.Entity.EntityWrapper, System.ValueTuple<System.Single, Microsoft.Xna.Framework.Vector2>>::MoveNext()System.IDisposable::Dispose()
UpdateThreatDecay
#
private System.Void UpdateThreatDecay(System.Single dt)
Method metadata
- Visibilityprivate
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
FB2F04DC3D2F3632C3402E9C8D0CA6F75579F406AD6769E817646AE7B35B1517 - Body hash
5F68071886343E6A5D644F1437AB892343A017F0D54809EB0AEBBC1AD18AF526 - IL size206
Referenced calls
System.MathF::Pow(System.Single, System.Single)System.Collections.Generic.Dictionary<Shared.Entity.EntityWrapper, System.ValueTuple<System.Single, Microsoft.Xna.Framework.Vector2>>::GetEnumerator()Dictionary.Enumerator<Shared.Entity.EntityWrapper, System.ValueTuple<System.Single, Microsoft.Xna.Framework.Vector2>>::get_Current()System.Collections.Generic.KeyValuePair<Shared.Entity.EntityWrapper, System.ValueTuple<System.Single, Microsoft.Xna.Framework.Vector2>>::Deconstruct(!0&, !1&)System.ValueTuple<System.Single, Microsoft.Xna.Framework.Vector2>::.ctor(!0, !1)System.Collections.Generic.Dictionary<Shared.Entity.EntityWrapper, System.ValueTuple<System.Single, Microsoft.Xna.Framework.Vector2>>::set_Item(!0, !1)Dictionary.Enumerator<Shared.Entity.EntityWrapper, System.ValueTuple<System.Single, Microsoft.Xna.Framework.Vector2>>::MoveNext()System.IDisposable::Dispose()
UpdateTrigger
#
private System.Void UpdateTrigger(Shared.Entity.EntityWrapper entity, System.Single dt)
Method metadata
- Visibilityprivate
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
8135EEDB7BD9E22D129EEB504E4990A4B1534E88E75A9563F2719331E32C6817 - Body hash
F0974BB5AA3764AB24FB5C460C39DA8547C873277371CB7AE9B424EFC263075D - IL size458
Referenced calls
CandideCreator.Shared.Helpers.RandomHelper::NextFloat(System.Random, System.Single, System.Single)System.Collections.Generic.List<Shared.Entity.EntityWrapper>::Clear()Shared.Entity.Aggro.IAggroField::GetTriggeringEntities(Shared.Entity.EntityWrapper, System.Collections.Generic.List<Shared.Entity.EntityWrapper>)Shared.Entity.EntityWrapper::get_Mask()Shared.Entity.Components.ComponentExtension::HasFlags(Shared.Entity.Components.Component, Shared.Entity.Components.Component)Shared.Entity.EntityWrapper::get_Leader()Shared.Entity.EntityWrapper::get_ThreatTable()System.Object::Equals(System.Object, System.Object)System.Collections.Generic.Dictionary<Shared.Entity.EntityWrapper, System.ValueTuple<System.Single, Microsoft.Xna.Framework.Vector2>>::GetEnumerator()Dictionary.Enumerator<Shared.Entity.EntityWrapper, System.ValueTuple<System.Single, Microsoft.Xna.Framework.Vector2>>::get_Current()System.Collections.Generic.KeyValuePair<Shared.Entity.EntityWrapper, System.ValueTuple<System.Single, Microsoft.Xna.Framework.Vector2>>::Deconstruct(!0&, !1&)System.ValueTuple<System.Single, Microsoft.Xna.Framework.Vector2>::.ctor(!0, !1)System.Collections.Generic.Dictionary<Shared.Entity.EntityWrapper, System.ValueTuple<System.Single, Microsoft.Xna.Framework.Vector2>>::TryAdd(!0, !1)Dictionary.Enumerator<Shared.Entity.EntityWrapper, System.ValueTuple<System.Single, Microsoft.Xna.Framework.Vector2>>::MoveNext()System.IDisposable::Dispose()System.Collections.Generic.List<Shared.Entity.EntityWrapper>::GetEnumerator()List.Enumerator<Shared.Entity.EntityWrapper>::get_Current()Shared.Entity.EntityWrapper::get_FactionComponent()Shared.Entity.Components.FactionMaskNewExtension::HasFlags(Shared.Entity.Components.EntityFlags, Shared.Entity.Components.EntityFlags)CandideCreator.Shared.Helpers.RandomHelper::NextFloat(System.Random)Shared.Entity.EntityWrapper::get_EntityFlags()Shared.Entity.EntityWrapper::get_Position2()Shared.Entity.EntityWrapper::AddThreat(Shared.Entity.EntityWrapper, System.Single)List.Enumerator<Shared.Entity.EntityWrapper>::MoveNext()