Table of Contents

Class FlyAI

Namespace
Global
Assembly
Assembly-CSharp.dll
public class FlyAI
Inheritance
FlyAI
Inherited Members

Constructors

FlyAI(Fly, World)

public FlyAI(Fly fly, World world)

Parameters

fly Fly
world World

Fields

afraid

public float afraid

Field Value

float

behavior

public FlyAI.Behavior behavior

Field Value

FlyAI.Behavior

dropStatus

public FlyAI.DropStatus dropStatus

Field Value

FlyAI.DropStatus

fleeFromRain

public bool fleeFromRain

Field Value

bool

flockBehavior

public FlyAI.FlockBehavior flockBehavior

Field Value

FlyAI.FlockBehavior

fly

public Fly 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

public Vector2 localGoal

Field Value

Vector2

lowestOtherPos

public Vector2 lowestOtherPos

Field Value

Vector2

lure

public FlyLure lure

Field Value

FlyLure

luredCounter

public int luredCounter

Field Value

int

noSwarmCounter

public int noSwarmCounter

Field Value

int

otherFly

public Fly otherFly

Field Value

Fly

panicFlee

public int panicFlee

Field Value

int

stuckCounter

public int stuckCounter

Field Value

int

stuckPos

public Vector2 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()

public void 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()

public void DropUpdate()

FleeFromRainUpdate()

public void FleeFromRainUpdate()

FleeUpdate()

public void FleeUpdate()

GenericFlightUpdate()

public void GenericFlightUpdate()

GravitateToFlock()

public void GravitateToFlock()

HangInChainUpdate()

public void HangInChainUpdate()

IdleUpdate()

public void IdleUpdate()

LeaveRoom(WorldCoordinate)

public void LeaveRoom(WorldCoordinate coord)

Parameters

coord WorldCoordinate

NewRoom()

public void 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()

public void Update()

UpdateFollowDijsktra()

public void UpdateFollowDijsktra()

UpdateThreats()

public void UpdateThreats()

ValidSwarmPosition(Vector2)

public bool ValidSwarmPosition(Vector2 testPos)

Parameters

testPos Vector2

Returns

bool

VisualContact(Vector2, bool)

public bool VisualContact(Vector2 point, bool seeIfInsectFlight)

Parameters

point Vector2
seeIfInsectFlight bool

Returns

bool