Table of Contents

Class Creature

Namespace
Global
Assembly
Assembly-CSharp.dll
public abstract class Creature : PhysicalObject
Inheritance
Creature
Derived
Inherited Members

Constructors

Creature(AbstractCreature, World)

public Creature(AbstractCreature abstractCreature, World world)

Parameters

abstractCreature AbstractCreature
world World

Fields

GrabbedByDaddyCorruption

public bool GrabbedByDaddyCorruption

Field Value

bool

HypothermiaExposure

public float HypothermiaExposure

Field Value

float

HypothermiaGain

public float HypothermiaGain

Field Value

float

HypothermiaStunDelayCounter

public int HypothermiaStunDelayCounter

Field Value

int

NPCTransportationDestination

public WorldCoordinate NPCTransportationDestination

Field Value

WorldCoordinate

blind

public int blind

Field Value

int

deaf

public int deaf

Field Value

int

enteringShortCut

public IntVector2? enteringShortCut

Field Value

IntVector2?

freezeControls

public bool freezeControls

Field Value

bool

inputWithDiagonals

public Player.InputPackage? inputWithDiagonals

Field Value

Player.InputPackage?

inputWithoutDiagonals

public Player.InputPackage? inputWithoutDiagonals

Field Value

Player.InputPackage?

killTag

public AbstractCreature killTag

Field Value

AbstractCreature

killTagCounter

public int killTagCounter

Field Value

int

lastCoord

public WorldCoordinate lastCoord

Field Value

WorldCoordinate

lastInputWithDiagonals

public Player.InputPackage? lastInputWithDiagonals

Field Value

Player.InputPackage?

lastInputWithoutDiagonals

public Player.InputPackage? lastInputWithoutDiagonals

Field Value

Player.InputPackage?

lavaContact

public bool lavaContact

Field Value

bool

lavaContactCount

public int lavaContactCount

Field Value

int

leechedOut

public bool leechedOut

Field Value

bool

newToRoomInvinsibility

public int newToRoomInvinsibility

Field Value

int

protectDeathRecursionFlag

public bool protectDeathRecursionFlag

Field Value

bool

rainDeath

public float rainDeath

Field Value

float

shortCutRadAdd

public float shortCutRadAdd

Field Value

float

shortcutDelay

public int shortcutDelay

Field Value

int

stunDamageType

public Creature.DamageType stunDamageType

Field Value

Creature.DamageType

Properties

Blinded

public bool Blinded { get; }

Property Value

bool

Consious

public bool Consious { get; }

Property Value

bool

DangerPos

public virtual Vector2 DangerPos { get; }

Property Value

Vector2

Deaf

public float Deaf { get; }

Property Value

float

Hypothermia

public float Hypothermia { get; set; }

Property Value

float

State

public CreatureState State { get; }

Property Value

CreatureState

Stunned

public bool Stunned { get; }

Property Value

bool

Template

public CreatureTemplate Template { get; }

Property Value

CreatureTemplate

VisionPoint

public virtual Vector2 VisionPoint { get; }

Property Value

Vector2

WormGrassGooduckyImmune

public bool WormGrassGooduckyImmune { get; }

Property Value

bool

abstractCreature

public AbstractCreature abstractCreature { get; }

Property Value

AbstractCreature

coord

public WorldCoordinate coord { get; }

Property Value

WorldCoordinate

dead

public bool dead { get; set; }

Property Value

bool

grasps

public Creature.Grasp[] grasps { get; set; }

Property Value

Grasp[]

inShortcut

public bool inShortcut { get; set; }

Property Value

bool

mainBodyChunk

public BodyChunk mainBodyChunk { get; }

Property Value

BodyChunk

mainBodyChunkIndex

public int mainBodyChunkIndex { get; set; }

Property Value

int

safariControlled

public bool safariControlled { get; }

Property Value

bool

stun

public int stun { get; set; }

Property Value

int

Methods

Abstractize()

public virtual void Abstractize()

AllowableControlledAIOverride(MovementType)

public virtual bool AllowableControlledAIOverride(MovementConnection.MovementType movementType)

Parameters

movementType MovementConnection.MovementType

Returns

bool

Blind(int)

public virtual void Blind(int blnd)

Parameters

blnd int

BodyPartByIndex(int)

public BodyPart BodyPartByIndex(int index)

Parameters

index int

Returns

BodyPart

CanBeGrabbed(Creature)

public virtual bool CanBeGrabbed(Creature grabber)

Parameters

grabber Creature

Returns

bool

Deafen(int)

public virtual void Deafen(int df)

Parameters

df int

Die()

public virtual void Die()

FlyAwayFromRoom(bool)

public void FlyAwayFromRoom(bool carriedByOther)

Parameters

carriedByOther bool

FlyIntoRoom(WorldCoordinate, Room)

public void FlyIntoRoom(WorldCoordinate entrancePos, Room newRoom)

Parameters

entrancePos WorldCoordinate
newRoom Room

Grab(PhysicalObject, int, int, Shareability, float, bool, bool)

public virtual bool Grab(PhysicalObject obj, int graspUsed, int chunkGrabbed, Creature.Grasp.Shareability shareability, float dominance, bool overrideEquallyDominant, bool pacifying)

Parameters

obj PhysicalObject
graspUsed int
chunkGrabbed int
shareability Creature.Grasp.Shareability
dominance float
overrideEquallyDominant bool
pacifying bool

Returns

bool

GrabbedObjectSnatched(PhysicalObject, Creature)

public virtual void GrabbedObjectSnatched(PhysicalObject grabbedObject, Creature thief)

Parameters

grabbedObject PhysicalObject
thief Creature

HeardNoise(InGameNoise)

public virtual void HeardNoise(InGameNoise noise)

Parameters

noise InGameNoise

HypothermiaBodyContactWarmup(Creature, Creature)

public bool HypothermiaBodyContactWarmup(Creature self, Creature other)

Parameters

self Creature
other Creature

Returns

bool

HypothermiaUpdate()

public void HypothermiaUpdate()

LoseAllGrasps()

public virtual void LoseAllGrasps()

NewRoom(Room)

public override void NewRoom(Room newRoom)

Parameters

newRoom Room

NewTile()

public virtual void NewTile()

PlaceInRoom(Room)

public override void PlaceInRoom(Room placeRoom)

Parameters

placeRoom Room

PushOutOf(Vector2, float, int)

public override void PushOutOf(Vector2 pos, float rad, int exceptedChunk)

Parameters

pos Vector2
rad float
exceptedChunk int

RecreateSticksFromAbstract()

public override void RecreateSticksFromAbstract()

ReleaseDoorForbiddenCreatures(bool, bool)

public void ReleaseDoorForbiddenCreatures(bool enteringShortcut, bool enteringDen)

Parameters

enteringShortcut bool
enteringDen bool

ReleaseGrasp(int)

public virtual void ReleaseGrasp(int grasp)

Parameters

grasp int

SafariControlInputUpdate(int)

public void SafariControlInputUpdate(int playerIndex)

Parameters

playerIndex int

SetKillTag(AbstractCreature)

public void SetKillTag(AbstractCreature killer)

Parameters

killer AbstractCreature

ShortCutColor()

public virtual Color ShortCutColor()

Returns

Color

SpearStick(Weapon, float, BodyChunk, Pos, Vector2)

public virtual bool SpearStick(Weapon source, float dmg, BodyChunk chunk, PhysicalObject.Appendage.Pos appPos, Vector2 direction)

Parameters

source Weapon
dmg float
chunk BodyChunk
appPos PhysicalObject.Appendage.Pos
direction Vector2

Returns

bool

SpitOutOfShortCut(IntVector2, Room, bool)

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

Parameters

pos IntVector2
newRoom Room
spitOutAllSticks bool

Stun(int)

public virtual void Stun(int st)

Parameters

st int

SuckedIntoShortCut(IntVector2, bool)

public void SuckedIntoShortCut(IntVector2 entrancePos, bool carriedByOther)

Parameters

entrancePos IntVector2
carriedByOther bool

SwitchGrasps(int, int)

public void SwitchGrasps(int fromGrasp, int toGrasp)

Parameters

fromGrasp int
toGrasp int

TerrainImpact(int, IntVector2, float, bool)

public override void TerrainImpact(int chunk, IntVector2 direction, float speed, bool firstContact)

Parameters

chunk int
direction IntVector2
speed float
firstContact bool

ToString()

public override string ToString()

Returns

string

Update(bool)

public override void Update(bool eu)

Parameters

eu bool

UpdateGraspIndexes()

public void UpdateGraspIndexes()

Violence(BodyChunk, Vector2?, BodyChunk, Pos, DamageType, float, float)

public virtual void Violence(BodyChunk source, Vector2? directionAndMomentum, BodyChunk hitChunk, PhysicalObject.Appendage.Pos hitAppendage, Creature.DamageType type, float damage, float stunBonus)

Parameters

source BodyChunk
directionAndMomentum Vector2?
hitChunk BodyChunk
hitAppendage PhysicalObject.Appendage.Pos
type Creature.DamageType
damage float
stunBonus float