Survivalcraft API 1.8.2.3 v1.8.2.3
Survivalcraft 2.4
载入中...
搜索中...
未找到
Game.ComponentRunAwayBehavior
类 Game.ComponentRunAwayBehavior 继承关系图:
Game.ComponentRunAwayBehavior 的协作图:

Public 成员函数

virtual void RunAwayFrom (ComponentBody componentBody)
virtual void Update (float dt)
virtual void HearNoise (ComponentBody sourceBody, Vector3 sourcePosition, float loudness)
override void Load (ValuesDictionary valuesDictionary, IdToEntityMap idToEntityMap)
virtual Vector3 FindSafePlace ()
virtual float ScoreSafePlace (Vector3 currentPosition, Vector3 safePosition, Vector3? herdPosition, Vector3? noiseSourcePosition, int contents)
Public 成员函数 继承自 GameEntitySystem.Component
virtual IEnumerable< EntityGetOwnedEntities ()
virtual void OnEntityAdded ()
virtual void OnEntityRemoved ()
virtual void Save (ValuesDictionary valuesDictionary, EntityToIdMap entityToIdMap)
virtual void Dispose ()
virtual void InheritFromComponent (Component baseComponent)
virtual void Initialize (Entity entity, ValuesDictionary valuesDictionary)

Public 属性

SubsystemTerrain m_subsystemTerrain
SubsystemTime m_subsystemTime
SubsystemNoise m_subsystemNoise
ComponentCreature m_componentCreature
ComponentPathfinding m_componentPathfinding
ComponentHerdBehavior m_componentHerdBehavior
Random m_random = new()
StateMachine m_stateMachine = new()
float m_importanceLevel
ComponentFrame m_attacker
float m_timeToForgetAttacker
bool m_heardNoise
Vector3m_lastNoiseSourcePosition
Public 属性 继承自 GameEntitySystem.Component
Entity m_entity
ValuesDictionary m_valuesDictionary

属性

float LowHealthToEscape [get, set]
UpdateOrder UpdateOrder [get]
override float ImportanceLevel [get]
属性 继承自 Game.ComponentBehavior
float ImportanceLevel [get]
virtual bool IsActive [get, set]
virtual string DebugInfo [get]
属性 继承自 GameEntitySystem.Component
ValuesDictionary ValuesDictionary [get]
Entity Entity [get]
Project Project [get]
bool IsAddedToProject [get]
属性 继承自 Game.IUpdateable
float FloatUpdateOrder [get]
属性 继承自 Game.IComponentEscapeBehavior
bool IsActive [get, set]

额外继承的成员函数

包函数 继承自 GameEntitySystem.Component
void DisposeInternal ()

详细描述

在文件 ComponentRunAwayBehavior.cs6 行定义.

成员函数说明

◆ FindSafePlace()

virtual Vector3 Game.ComponentRunAwayBehavior.FindSafePlace ( )
virtual

在文件 ComponentRunAwayBehavior.cs144 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ HearNoise()

virtual void Game.ComponentRunAwayBehavior.HearNoise ( ComponentBody sourceBody,
Vector3 sourcePosition,
float loudness )
virtual

实现了 Game.INoiseListener.

在文件 ComponentRunAwayBehavior.cs48 行定义.

◆ Load()

override void Game.ComponentRunAwayBehavior.Load ( ValuesDictionary valuesDictionary,
IdToEntityMap idToEntityMap )
virtual

重载 GameEntitySystem.Component .

在文件 ComponentRunAwayBehavior.cs55 行定义.

函数调用图:

◆ RunAwayFrom()

virtual void Game.ComponentRunAwayBehavior.RunAwayFrom ( ComponentBody componentBody)
virtual

在文件 ComponentRunAwayBehavior.cs38 行定义.

这是这个函数的调用关系图:

◆ ScoreSafePlace()

virtual float Game.ComponentRunAwayBehavior.ScoreSafePlace ( Vector3 currentPosition,
Vector3 safePosition,
Vector3? herdPosition,
Vector3? noiseSourcePosition,
int contents )
virtual

在文件 ComponentRunAwayBehavior.cs173 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ Update()

virtual void Game.ComponentRunAwayBehavior.Update ( float dt)
virtual

实现了 Game.IUpdateable.

在文件 ComponentRunAwayBehavior.cs43 行定义.

类成员变量说明

◆ m_attacker

ComponentFrame Game.ComponentRunAwayBehavior.m_attacker

在文件 ComponentRunAwayBehavior.cs25 行定义.

◆ m_componentCreature

ComponentCreature Game.ComponentRunAwayBehavior.m_componentCreature

在文件 ComponentRunAwayBehavior.cs13 行定义.

◆ m_componentHerdBehavior

ComponentHerdBehavior Game.ComponentRunAwayBehavior.m_componentHerdBehavior

在文件 ComponentRunAwayBehavior.cs17 行定义.

◆ m_componentPathfinding

ComponentPathfinding Game.ComponentRunAwayBehavior.m_componentPathfinding

在文件 ComponentRunAwayBehavior.cs15 行定义.

◆ m_heardNoise

bool Game.ComponentRunAwayBehavior.m_heardNoise

在文件 ComponentRunAwayBehavior.cs29 行定义.

◆ m_importanceLevel

float Game.ComponentRunAwayBehavior.m_importanceLevel

在文件 ComponentRunAwayBehavior.cs23 行定义.

◆ m_lastNoiseSourcePosition

Vector3? Game.ComponentRunAwayBehavior.m_lastNoiseSourcePosition

在文件 ComponentRunAwayBehavior.cs31 行定义.

◆ m_random

Random Game.ComponentRunAwayBehavior.m_random = new()

在文件 ComponentRunAwayBehavior.cs19 行定义.

◆ m_stateMachine

StateMachine Game.ComponentRunAwayBehavior.m_stateMachine = new()

在文件 ComponentRunAwayBehavior.cs21 行定义.

◆ m_subsystemNoise

SubsystemNoise Game.ComponentRunAwayBehavior.m_subsystemNoise

在文件 ComponentRunAwayBehavior.cs11 行定义.

◆ m_subsystemTerrain

SubsystemTerrain Game.ComponentRunAwayBehavior.m_subsystemTerrain

在文件 ComponentRunAwayBehavior.cs7 行定义.

◆ m_subsystemTime

SubsystemTime Game.ComponentRunAwayBehavior.m_subsystemTime

在文件 ComponentRunAwayBehavior.cs9 行定义.

◆ m_timeToForgetAttacker

float Game.ComponentRunAwayBehavior.m_timeToForgetAttacker

在文件 ComponentRunAwayBehavior.cs27 行定义.

属性说明

◆ ImportanceLevel

override float Game.ComponentRunAwayBehavior.ImportanceLevel
get

实现了 Game.IComponentEscapeBehavior.

在文件 ComponentRunAwayBehavior.cs36 行定义.

◆ LowHealthToEscape

float Game.ComponentRunAwayBehavior.LowHealthToEscape
getset

实现了 Game.IComponentEscapeBehavior.

在文件 ComponentRunAwayBehavior.cs32 行定义.

◆ UpdateOrder

UpdateOrder Game.ComponentRunAwayBehavior.UpdateOrder
get

实现了 Game.IUpdateable.

在文件 ComponentRunAwayBehavior.cs34 行定义.


该类的文档由以下文件生成: