Table of Contents

Class Fly

Namespace
Global
Assembly
Assembly-CSharp.dll
public class Fly : Creature, IPlayerEdible
Inheritance
Fly
Implements
Inherited Members

Constructors

Fly(AbstractCreature, World)

public Fly(AbstractCreature abstractCreature, World world)

Parameters

abstractCreature AbstractCreature
world World

Fields

AI

public FlyAI AI

Field Value

FlyAI

bites

public int bites

Field Value

int

burrowOrHangSpot

public Vector2? burrowOrHangSpot

Field Value

Vector2?

chainBehaviorVariation

public int chainBehaviorVariation

Field Value

int

dir

public Vector2 dir

Field Value

Vector2

drown

public float drown

Field Value

float

eaten

public int eaten

Field Value

int

everBeenCaughtByPlayer

public bool everBeenCaughtByPlayer

Field Value

bool

flap

public float flap

Field Value

float

flapDepth

public float flapDepth

Field Value

float

flapSpeed

public float flapSpeed

Field Value

float

hoverSound

public ChunkSoundEmitter hoverSound

Field Value

ChunkSoundEmitter

lastFlapDepth

public float lastFlapDepth

Field Value

float

movMode

public Fly.MovementMode movMode

Field Value

Fly.MovementMode

wallAvoidance

public float wallAvoidance

Field Value

float

Properties

AutomaticPickUp

public bool AutomaticPickUp { get; }

Property Value

bool

BitesLeft

public int BitesLeft { get; }

Property Value

int

CurrentBehavior

public FlyAI.Behavior CurrentBehavior { get; }

Property Value

FlyAI.Behavior

Edible

public bool Edible { get; }

Property Value

bool

FoodPoints

public int FoodPoints { get; }

Property Value

int

PlayerAutoGrabable

public bool PlayerAutoGrabable { get; }

Property Value

bool

localGoal

public Vector2 localGoal { get; }

Property Value

Vector2

Methods

Act(bool)

public void Act(bool eu)

Parameters

eu bool

BatFlight(bool)

public void BatFlight(bool panic)

Parameters

panic bool

BitByPlayer(Grasp, bool)

public void BitByPlayer(Creature.Grasp grasp, bool eu)

Parameters

grasp Creature.Grasp
eu bool

Burrowed()

public void Burrowed()

CheckChainForLoops()

public bool CheckChainForLoops()

Returns

bool

Collide(PhysicalObject, int, int)

public override void Collide(PhysicalObject otherObject, int myChunk, int otherChunk)

Parameters

otherObject PhysicalObject
myChunk int
otherChunk int

Die()

public override void Die()

FirstInChain()

public Fly FirstInChain()

Returns

Fly

Grabbed(Grasp)

public override void Grabbed(Creature.Grasp grasp)

Parameters

grasp Creature.Grasp

Hanging()

public void Hanging()

InitiateGraphicsModule()

public override void InitiateGraphicsModule()

LastInChain()

public Fly LastInChain()

Returns

Fly

NewRoom(Room)

public override void NewRoom(Room room)

Parameters

room Room

NextInChain()

public Fly NextInChain()

Returns

Fly

PlaceInRoom(Room)

public override void PlaceInRoom(Room placeRoom)

Parameters

placeRoom Room

ReportToFliesRoomAI(Room)

public void ReportToFliesRoomAI(Room newRoom)

Parameters

newRoom Room

SpitOutOfShortCut(IntVector2, Room, bool)

public override void SpitOutOfShortCut(IntVector2 pos, Room newRoom, bool spitOutAllSticks)

Parameters

pos IntVector2
newRoom Room
spitOutAllSticks bool

SwarmFlight()

public void SwarmFlight()

ThrowByPlayer()

public void ThrowByPlayer()

Update(bool)

public override void Update(bool eu)

Parameters

eu bool

WaterBehavior()

public void WaterBehavior()