Table of Contents

Class KingTusks.Tusk

Namespace
Global
Assembly
Assembly-CSharp.dll
public class KingTusks.Tusk : SharedPhysics.IProjectileTracer
Inheritance
KingTusks.Tusk
Implements
Inherited Members

Constructors

Tusk(KingTusks, int)

public Tusk(KingTusks owner, int side)

Parameters

owner KingTusks
side int

Fields

TotalSprites

public static int TotalSprites

Field Value

int

armorColor

public Color armorColor

Field Value

Color

attached

public float attached

Field Value

float

chunkPoints

public Vector2[,] chunkPoints

Field Value

Vector2[,]

currWireLength

public float currWireLength

Field Value

float

elasticity

public float elasticity

Field Value

float

impaleChunk

public BodyChunk impaleChunk

Field Value

BodyChunk

laserAlpha

public float laserAlpha

Field Value

float

laserPower

public float laserPower

Field Value

float

lastLaserAlpha

public float lastLaserAlpha

Field Value

float

lastWireLoose

public float lastWireLoose

Field Value

float

lastZRot

public Vector2 lastZRot

Field Value

Vector2

length

public static float length

Field Value

float

maxWireLength

public static float maxWireLength

Field Value

float

minShootRange

public static float minShootRange

Field Value

float

mode

public KingTusks.Tusk.Mode mode

Field Value

KingTusks.Tusk.Mode

modeCounter

public int modeCounter

Field Value

int

owner

public KingTusks owner

Field Value

KingTusks

rope

public Rope rope

Field Value

Rope

scratchTerrainCollisionData

public SharedPhysics.TerrainCollisionData scratchTerrainCollisionData

Field Value

SharedPhysics.TerrainCollisionData

shootDir

public Vector2 shootDir

Field Value

Vector2

shootRange

public static float shootRange

Field Value

float

side

public int side

Field Value

int

stuck

public float stuck

Field Value

float

stuckInWallPos

public Vector2? stuckInWallPos

Field Value

Vector2?

tuskSegs

public static int tuskSegs

Field Value

int

wire

public Vector2[,] wire

Field Value

Vector2[,]

wireExtraSlack

public float wireExtraSlack

Field Value

float

wireLoose

public float wireLoose

Field Value

float

zRot

public Vector2 zRot

Field Value

Vector2

Properties

FullyAttached

public bool FullyAttached { get; }

Property Value

bool

ReadyToShoot

public bool ReadyToShoot { get; }

Property Value

bool

StuckInAnything

public bool StuckInAnything { get; }

Property Value

bool

StuckOrShooting

public bool StuckOrShooting { get; }

Property Value

bool

head

public BodyChunk head { get; }

Property Value

BodyChunk

room

public Room room { get; }

Property Value

Room

vulture

public Vulture vulture { get; }

Property Value

Vulture

Methods

public void AddToContainer(VultureGraphics vGraphics, int spr, RoomCamera.SpriteLeaser sLeaser, RoomCamera rCam, FContainer newContatiner)

Parameters

vGraphics VultureGraphics
spr int
sLeaser RoomCamera.SpriteLeaser
rCam RoomCamera
newContatiner FContainer

AimDir(float)

public Vector2 AimDir(float timeStacker)

Parameters

timeStacker float

Returns

Vector2

AlignWireToRopeSim()

public void AlignWireToRopeSim()

ApplyPalette(VultureGraphics, RoomPalette, Color, SpriteLeaser, RoomCamera)

public void ApplyPalette(VultureGraphics vGraphics, RoomPalette palette, Color armorColor, RoomCamera.SpriteLeaser sLeaser, RoomCamera rCam)

Parameters

vGraphics VultureGraphics
palette RoomPalette
armorColor Color
sLeaser RoomCamera.SpriteLeaser
rCam RoomCamera

DrawSprites(VultureGraphics, SpriteLeaser, RoomCamera, float, Vector2)

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

Parameters

vGraphics VultureGraphics
sLeaser RoomCamera.SpriteLeaser
rCam RoomCamera
timeStacker float
camPos Vector2

FirstSprite(VultureGraphics)

public int FirstSprite(VultureGraphics vGraphics)

Parameters

vGraphics VultureGraphics

Returns

int

HitThisChunk(BodyChunk)

public bool HitThisChunk(BodyChunk chunk)

Parameters

chunk BodyChunk

Returns

bool

HitThisObject(PhysicalObject)

public bool HitThisObject(PhysicalObject obj)

Parameters

obj PhysicalObject

Returns

bool

InitiateSprites(VultureGraphics, SpriteLeaser, RoomCamera)

public void InitiateSprites(VultureGraphics vGraphics, RoomCamera.SpriteLeaser sLeaser, RoomCamera rCam)

Parameters

vGraphics VultureGraphics
sLeaser RoomCamera.SpriteLeaser
rCam RoomCamera

LaserSprite(VultureGraphics)

public int LaserSprite(VultureGraphics vGraphics)

Parameters

vGraphics VultureGraphics

Returns

int

OnRopePos(float)

public Vector2 OnRopePos(float fPos)

Parameters

fPos float

Returns

Vector2

Reset(Room)

public void Reset(Room newRoom)

Parameters

newRoom Room

RopeFloatAtSegment(int)

public float RopeFloatAtSegment(int segment)

Parameters

segment int

Returns

float

RopePos(int)

public Vector2 RopePos(int i)

Parameters

i int

Returns

Vector2

RopePrevSegAtFloat(float)

public int RopePrevSegAtFloat(float fPos)

Parameters

fPos float

Returns

int

Shoot(Vector2)

public void Shoot(Vector2 tuskHangPos)

Parameters

tuskHangPos Vector2

ShootUpdate(float)

public void ShootUpdate(float speed)

Parameters

speed float

SwitchMode(Mode)

public void SwitchMode(KingTusks.Tusk.Mode newMode)

Parameters

newMode KingTusks.Tusk.Mode

TuskBend(float)

public float TuskBend(float f)

Parameters

f float

Returns

float

TuskDetailSprite(VultureGraphics)

public int TuskDetailSprite(VultureGraphics vGraphics)

Parameters

vGraphics VultureGraphics

Returns

int

TuskProfBend(float)

public float TuskProfBend(float f)

Parameters

f float

Returns

float

TuskRad(float, float)

public float TuskRad(float f, float profileFac)

Parameters

f float
profileFac float

Returns

float

TuskSprite(VultureGraphics)

public int TuskSprite(VultureGraphics vGraphics)

Parameters

vGraphics VultureGraphics

Returns

int

Update()

public void Update()

UpdateTuskColors(SpriteLeaser)

public void UpdateTuskColors(RoomCamera.SpriteLeaser sLeaser)

Parameters

sLeaser RoomCamera.SpriteLeaser

WireAttachPos(float)

public Vector2 WireAttachPos(float timeStacker)

Parameters

timeStacker float

Returns

Vector2