Class Centipede
- Namespace
- Global
- Assembly
- Assembly-CSharp.dll
public class Centipede : InsectoidCreature, IPlayerEdible
- Inheritance
-
Centipede
- Implements
-
- Inherited Members
-
Constructors
Centipede(AbstractCreature, World)
public Centipede(AbstractCreature abstractCreature, World world)
Parameters
abstractCreature AbstractCreature
world World
Fields
AI
Field Value
- CentipedeAI
Glower
public LightSource Glower
Field Value
- LightSource
GlowerHead
public BodyChunk GlowerHead
Field Value
- BodyChunk
bites
Field Value
- int
bodyDirection
public bool bodyDirection
Field Value
- bool
bodyWave
Field Value
- float
changeDirCounter
public int changeDirCounter
Field Value
- int
connectionRopes
public Rope[] connectionRopes
Field Value
- Rope[]
directionChangeBlock
public int directionChangeBlock
Field Value
- int
doubleGrabCharge
public float doubleGrabCharge
Field Value
- float
flyModeCounter
public int flyModeCounter
Field Value
- int
flying
Field Value
- bool
moveToPos
Field Value
- Vector2
moving
Field Value
- bool
noFollowConCounter
public int noFollowConCounter
Field Value
- int
outsideLevel
Field Value
- bool
shellJustFellOff
public int shellJustFellOff
Field Value
- int
shockCharge
Field Value
- float
shockGiveUpCounter
public int shockGiveUpCounter
Field Value
- int
size
Field Value
- float
visionDirection
public bool visionDirection
Field Value
- bool
wantToFly
Field Value
- bool
wingsStartedUp
public float wingsStartedUp
Field Value
- float
Properties
AquaCenti
public bool AquaCenti { get; }
Property Value
- bool
AquacentiSwim
public bool AquacentiSwim { get; }
Property Value
- bool
AutomaticPickUp
public bool AutomaticPickUp { get; }
Property Value
- bool
BitesLeft
public int BitesLeft { get; }
Property Value
- int
CentiState
public Centipede.CentipedeState CentiState { get; }
Property Value
- Centipede.CentipedeState
Centiwing
public bool Centiwing { get; }
Property Value
- bool
Edible
public bool Edible { get; }
Property Value
- bool
FoodPoints
public int FoodPoints { get; }
Property Value
- int
HeadChunk
public BodyChunk HeadChunk { get; }
Property Value
- BodyChunk
HeadIndex
public int HeadIndex { get; }
Property Value
- int
Red
Property Value
- bool
Small
public bool Small { get; }
Property Value
- bool
VisionPoint
public override Vector2 VisionPoint { get; }
Property Value
- Vector2
Methods
AccessibleTile(IntVector2)
public bool AccessibleTile(IntVector2 testPos)
Parameters
testPos IntVector2
Returns
- bool
AccessibleTile(Vector2)
public bool AccessibleTile(Vector2 testPos)
Parameters
testPos Vector2
Returns
- bool
Act()
BitByPlayer(Grasp, bool)
public void BitByPlayer(Creature.Grasp grasp, bool eu)
Parameters
grasp Creature.Grasp
eu bool
ClimbableTile(IntVector2)
public bool ClimbableTile(IntVector2 testPos)
Parameters
testPos IntVector2
Returns
- bool
ClimbableTile(Vector2)
public bool ClimbableTile(Vector2 testPos)
Parameters
testPos Vector2
Returns
- bool
Collide(PhysicalObject, int, int)
public override void Collide(PhysicalObject otherObject, int myChunk, int otherChunk)
Parameters
otherObject PhysicalObject
myChunk int
otherChunk int
Crawl()
Die()
public override void Die()
Fly()
GenerateSize(AbstractCreature)
public static float GenerateSize(AbstractCreature abstrCrit)
Parameters
abstrCrit AbstractCreature
Returns
- float
HorizontalSitSurface(Vector2)
public int HorizontalSitSurface(Vector2 pos)
Parameters
pos Vector2
Returns
- int
InitiateGraphicsModule()
public override void InitiateGraphicsModule()
NewRoom(Room)
public override void NewRoom(Room newRoom)
Parameters
newRoom Room
RatherClimbThanFly(IntVector2)
public bool RatherClimbThanFly(IntVector2 testPos)
Parameters
testPos IntVector2
Returns
- bool
Shock(PhysicalObject)
public void Shock(PhysicalObject shockObj)
Parameters
shockObj PhysicalObject
ShortCutColor()
public override Color ShortCutColor()
Returns
- Color
SpearStick(Weapon, float, BodyChunk, Pos, Vector2)
public override 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 override void SpitOutOfShortCut(IntVector2 pos, Room newRoom, bool spitOutAllSticks)
Parameters
pos IntVector2
newRoom Room
spitOutAllSticks bool
Stun(int)
public override void Stun(int st)
Parameters
st int
Swim()
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
ThrowByPlayer()
public void ThrowByPlayer()
Update(bool)
public override void Update(bool eu)
Parameters
eu bool
UpdateGrasp(int)
public void UpdateGrasp(int g)
Parameters
g int
VerticalSitSurface(Vector2)
public int VerticalSitSurface(Vector2 pos)
Parameters
pos Vector2
Returns
- int
Violence(BodyChunk, Vector2?, BodyChunk, Pos, DamageType, float, float)
public override 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