Class FlyAI
- Namespace
- Global
- Assembly
- Assembly-CSharp.dll
- Inheritance
-
FlyAI
- Inherited Members
-
Constructors
FlyAI(Fly, World)
public FlyAI(Fly fly, World world)
Parameters
fly Fly
world World
Fields
afraid
Field Value
- float
behavior
public FlyAI.Behavior behavior
Field Value
- FlyAI.Behavior
dropStatus
public FlyAI.DropStatus dropStatus
Field Value
- FlyAI.DropStatus
fleeFromRain
Field Value
- bool
flockBehavior
public FlyAI.FlockBehavior flockBehavior
Field Value
- FlyAI.FlockBehavior
fly
Field Value
- Fly
followingDijkstraMap
public int followingDijkstraMap
Field Value
- int
getBackToGround
public int getBackToGround
Field Value
- int
leaveRoomDijkstra
public int leaveRoomDijkstra
Field Value
- int
localGoal
Field Value
- Vector2
lowestOtherPos
public Vector2 lowestOtherPos
Field Value
- Vector2
lure
Field Value
- FlyLure
luredCounter
Field Value
- int
noSwarmCounter
public int noSwarmCounter
Field Value
- int
otherFly
Field Value
- Fly
panicFlee
Field Value
- int
stuckCounter
Field Value
- int
stuckPos
Field Value
- Vector2
threats
public List<FlyAI.TrackedThreat> threats
Field Value
- List<FlyAI.TrackedThreat>
Properties
CurrentFollowDijkstraIsToHive
public bool CurrentFollowDijkstraIsToHive { get; }
Property Value
- bool
DoingSpecificAnimation
public bool DoingSpecificAnimation { get; }
Property Value
- bool
FlyPos
public Vector2 FlyPos { get; }
Property Value
- Vector2
InActiveSwarmRoom
public bool InActiveSwarmRoom { get; }
Property Value
- bool
Stuck
public bool Stuck { get; }
Property Value
- bool
Template
public CreatureTemplate Template { get; }
Property Value
- CreatureTemplate
room
public Room room { get; }
Property Value
- Room
Methods
AfraidDistance(CreatureTemplate)
public static float AfraidDistance(CreatureTemplate crit)
Parameters
crit CreatureTemplate
Returns
- float
Burrowed()
CanIHangFromThisFly(Fly)
public bool CanIHangFromThisFly(Fly potentialHangFly)
Parameters
potentialHangFly Fly
Returns
- bool
ChainTile(IntVector2)
public bool ChainTile(IntVector2 tile)
Parameters
tile IntVector2
Returns
- bool
ChangeBehavior(Behavior)
public void ChangeBehavior(FlyAI.Behavior newBehav)
Parameters
newBehav FlyAI.Behavior
ConsiderOtherCreature(AbstractCreature)
public void ConsiderOtherCreature(AbstractCreature crit)
Parameters
crit AbstractCreature
ConsiderOtherFly()
public void ConsiderOtherFly()
DropUpdate()
FleeFromRainUpdate()
public void FleeFromRainUpdate()
FleeUpdate()
GenericFlightUpdate()
public void GenericFlightUpdate()
GravitateToFlock()
public void GravitateToFlock()
HangInChainUpdate()
public void HangInChainUpdate()
IdleUpdate()
LeaveRoom(WorldCoordinate)
public void LeaveRoom(WorldCoordinate coord)
Parameters
coord WorldCoordinate
NewRoom()
ProgressLocalGoalAlongDijkstraMap(Vector2, int)
public Vector2 ProgressLocalGoalAlongDijkstraMap(Vector2 currentLocalGoal, int followMap)
Parameters
currentLocalGoal Vector2
followMap int
Returns
- Vector2
RoomNotACycleHazard(Room)
public static bool RoomNotACycleHazard(Room room)
Parameters
room Room
Returns
- bool
SwarmUpdate()
public void SwarmUpdate()
Update()
UpdateFollowDijsktra()
public void UpdateFollowDijsktra()
UpdateThreats()
public void UpdateThreats()
ValidSwarmPosition(Vector2)
public bool ValidSwarmPosition(Vector2 testPos)
Parameters
testPos Vector2
Returns
- bool
public bool VisualContact(Vector2 point, bool seeIfInsectFlight)
Parameters
point Vector2
seeIfInsectFlight bool
Returns
- bool