Table of Contents

Class CentipedeGraphics

Namespace
Global
Assembly
Assembly-CSharp.dll
public class CentipedeGraphics : GraphicsModule, IDrawable
Inheritance
CentipedeGraphics
Implements
Inherited Members

Constructors

CentipedeGraphics(PhysicalObject)

public CentipedeGraphics(PhysicalObject ow)

Parameters

ow PhysicalObject

Fields

blackColor

public Color blackColor

Field Value

Color

bodyDir

public float bodyDir

Field Value

float

bodyRotations

public Vector2[,] bodyRotations

Field Value

Vector2[,]

centipede

public Centipede centipede

Field Value

Centipede

darkness

public float darkness

Field Value

float

defaultRotat

public float defaultRotat

Field Value

float

hue

public float hue

Field Value

float

lastBodyDir

public float lastBodyDir

Field Value

float

lastDarkness

public float lastDarkness

Field Value

float

lastWingFlapCycle

public float lastWingFlapCycle

Field Value

float

lastWingSwimCycle

public float lastWingSwimCycle

Field Value

float

lastWingsFolded

public float lastWingsFolded

Field Value

float

legLengths

public float[] legLengths

Field Value

float[]

legs

public Limb[,] legs

Field Value

Limb[,]

lightFlash

public float lightFlash

Field Value

float

lightSource

public LightSource lightSource

Field Value

LightSource

saturation

public float saturation

Field Value

float

soundLoop

public ChunkDynamicSoundLoop soundLoop

Field Value

ChunkDynamicSoundLoop

totSegs

public int totSegs

Field Value

int

totalSecondarySegments

public int totalSecondarySegments

Field Value

int

walkCycle

public float walkCycle

Field Value

float

whiskers

public GenericBodyPart[,,] whiskers

Field Value

GenericBodyPart[,,]

wingFlapCycle

public float wingFlapCycle

Field Value

float

wingLengths

public float[] wingLengths

Field Value

float[]

wingPairs

public int wingPairs

Field Value

int

wingSwimCycle

public float wingSwimCycle

Field Value

float

wingsFolded

public float wingsFolded

Field Value

float

Properties

FirstLegSprite

public int FirstLegSprite { get; }

Property Value

int

SecondaryShellColor

public Color SecondaryShellColor { get; }

Property Value

Color

ShellColor

public Color ShellColor { get; }

Property Value

Color

TotalSprites

public int TotalSprites { get; }

Property Value

int

TubeSprite

public int TubeSprite { get; }

Property Value

int

Methods

public override void AddToContainer(RoomCamera.SpriteLeaser sLeaser, RoomCamera rCam, FContainer newContatiner)

Parameters

sLeaser RoomCamera.SpriteLeaser
rCam RoomCamera
newContatiner FContainer

ApplyPalette(SpriteLeaser, RoomCamera, RoomPalette)

public override void ApplyPalette(RoomCamera.SpriteLeaser sLeaser, RoomCamera rCam, RoomPalette palette)

Parameters

sLeaser RoomCamera.SpriteLeaser
rCam RoomCamera
palette RoomPalette

BestBodyRotatAtChunk(int)

public Vector2 BestBodyRotatAtChunk(int chunk)

Parameters

chunk int

Returns

Vector2

ChunkDrawPos(int, float)

public Vector2 ChunkDrawPos(int indx, float timeStacker)

Parameters

indx int
timeStacker float

Returns

Vector2

DrawSprites(SpriteLeaser, RoomCamera, float, Vector2)

public override void DrawSprites(RoomCamera.SpriteLeaser sLeaser, RoomCamera rCam, float timeStacker, Vector2 camPos)

Parameters

sLeaser RoomCamera.SpriteLeaser
rCam RoomCamera
timeStacker float
camPos Vector2

HorizontalWingFlapAtChunk(int, Vector2, float)

public float HorizontalWingFlapAtChunk(int chunk, Vector2 chunkRotat, float timeStacker)

Parameters

chunk int
chunkRotat Vector2
timeStacker float

Returns

float

InitiateSprites(SpriteLeaser, RoomCamera)

public override void InitiateSprites(RoomCamera.SpriteLeaser sLeaser, RoomCamera rCam)

Parameters

sLeaser RoomCamera.SpriteLeaser
rCam RoomCamera

LegSprite(int, int, int)

public int LegSprite(int segment, int side, int part)

Parameters

segment int
side int
part int

Returns

int

RotatAtChunk(int, float)

public Vector2 RotatAtChunk(int chunk, float timeStacker)

Parameters

chunk int
timeStacker float

Returns

Vector2

SecondarySegmentSprite(int)

public int SecondarySegmentSprite(int s)

Parameters

s int

Returns

int

SegmentSprite(int)

public int SegmentSprite(int s)

Parameters

s int

Returns

int

ShellSprite(int, int)

public int ShellSprite(int s, int t)

Parameters

s int
t int

Returns

int

Update()

public override void Update()

VerticalWingFlapAtChunk(int, float)

public float VerticalWingFlapAtChunk(int chunk, float timeStacker)

Parameters

chunk int
timeStacker float

Returns

float

WhiskerDir(int, int, int, float)

public Vector2 WhiskerDir(int end, int side, int part, float timeStacker)

Parameters

end int
side int
part int
timeStacker float

Returns

Vector2

WhiskerLength(int)

public float WhiskerLength(int part)

Parameters

part int

Returns

float

WhiskerSprite(int, int, int)

public int WhiskerSprite(int end, int side, int pos)

Parameters

end int
side int
pos int

Returns

int

WingPos(int, int, Vector2, Vector2, Vector2, float)

public Vector2 WingPos(int side, int wing, Vector2 dr, Vector2 prp, Vector2 chunkRotat, float timeStacker)

Parameters

side int
wing int
dr Vector2
prp Vector2
chunkRotat Vector2
timeStacker float

Returns

Vector2

WingSprite(int, int)

public int WingSprite(int side, int wing)

Parameters

side int
wing int

Returns

int