Class Spear
- Namespace
- Global
- Assembly
- Assembly-CSharp.dll
public class Spear : Weapon, IDrawable, SharedPhysics.IProjectileTracer
- Inheritance
-
Spear
- Implements
-
- Derived
-
- Inherited Members
-
Constructors
Spear(AbstractPhysicalObject, World)
public Spear(AbstractPhysicalObject abstractPhysicalObject, World world)
Parameters
abstractPhysicalObject AbstractPhysicalObject
world World
Fields
addPoles
Field Value
- bool
alwaysStickInWalls
public bool alwaysStickInWalls
Field Value
- bool
bugSmoke
public FireSmoke bugSmoke
Field Value
- FireSmoke
deerCounter
Field Value
- int
hasHorizontalBeamState
public bool hasHorizontalBeamState
Field Value
- bool
jollyCustomColor
public Color? jollyCustomColor
Field Value
- Color?
lastPivotAtTip
public bool lastPivotAtTip
Field Value
- bool
pinToWallCounter
public int pinToWallCounter
Field Value
- int
pivotAtTip
Field Value
- bool
spearDamageBonus
public float spearDamageBonus
Field Value
- float
spearmasterNeedle
public bool spearmasterNeedle
Field Value
- bool
spearmasterNeedleType
public int spearmasterNeedleType
Field Value
- int
spearmasterNeedle_fadecounter
public int spearmasterNeedle_fadecounter
Field Value
- int
spearmasterNeedle_fadecounter_max
public int spearmasterNeedle_fadecounter_max
Field Value
- int
spearmasterNeedle_hasConnection
public bool spearmasterNeedle_hasConnection
Field Value
- bool
spinning
Field Value
- bool
stillCounter
Field Value
- int
stuckBodyPart
Field Value
- int
stuckInAppendage
public PhysicalObject.Appendage.Pos stuckInAppendage
Field Value
- PhysicalObject.Appendage.Pos
stuckInChunkIndex
public int stuckInChunkIndex
Field Value
- int
stuckInObject
public PhysicalObject stuckInObject
Field Value
- PhysicalObject
stuckInWall
public Vector2? stuckInWall
Field Value
- Vector2?
stuckIns
public DebugLabel stuckIns
Field Value
- DebugLabel
stuckRotation
public float stuckRotation
Field Value
- float
wasHorizontalBeam
public bool[] wasHorizontalBeam
Field Value
- bool[]
Properties
HeavyWeapon
public override bool HeavyWeapon { get; }
Property Value
- bool
IsNeedle
public bool IsNeedle { get; }
Property Value
- bool
abstractSpear
public AbstractSpear abstractSpear { get; }
Property Value
- AbstractSpear
bugSpear
public bool bugSpear { get; }
Property Value
- bool
onPlayerBack
public bool onPlayerBack { get; }
Property Value
- bool
stuckInChunk
public BodyChunk stuckInChunk { get; }
Property Value
- BodyChunk
Methods
ApplyPalette(SpriteLeaser, RoomCamera, RoomPalette)
public override void ApplyPalette(RoomCamera.SpriteLeaser sLeaser, RoomCamera rCam, RoomPalette palette)
Parameters
sLeaser RoomCamera.SpriteLeaser
rCam RoomCamera
palette RoomPalette
ChangeMode(Mode)
public override void ChangeMode(Weapon.Mode newMode)
Parameters
newMode Weapon.Mode
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
HitSomething(CollisionResult, bool)
public override bool HitSomething(SharedPhysics.CollisionResult result, bool eu)
Parameters
result SharedPhysics.CollisionResult
eu bool
Returns
- bool
HitSomethingWithoutStopping(PhysicalObject, BodyChunk, Appendage)
public override void HitSomethingWithoutStopping(PhysicalObject obj, BodyChunk chunk, PhysicalObject.Appendage appendage)
Parameters
obj PhysicalObject
chunk BodyChunk
appendage PhysicalObject.Appendage
InitiateSprites(SpriteLeaser, RoomCamera)
public override void InitiateSprites(RoomCamera.SpriteLeaser sLeaser, RoomCamera rCam)
Parameters
sLeaser RoomCamera.SpriteLeaser
rCam RoomCamera
LodgeInCreature(CollisionResult, bool)
public void LodgeInCreature(SharedPhysics.CollisionResult result, bool eu)
Parameters
result SharedPhysics.CollisionResult
eu bool
PickedUp(Creature)
public override void PickedUp(Creature upPicker)
Parameters
upPicker Creature
PlaceInRoom(Room)
public override void PlaceInRoom(Room placeRoom)
Parameters
placeRoom Room
ProvideRotationBodyPart(BodyChunk, BodyPart)
public void ProvideRotationBodyPart(BodyChunk chunk, BodyPart bodyPart)
Parameters
chunk BodyChunk
bodyPart BodyPart
PulledOutOfStuckObject()
public void PulledOutOfStuckObject()
RecreateSticksFromAbstract()
public override void RecreateSticksFromAbstract()
SetRandomSpin()
public override void SetRandomSpin()
Spear_NeedleCanFeed()
public bool Spear_NeedleCanFeed()
Returns
- bool
Spear_NeedleDisconnect()
public void Spear_NeedleDisconnect()
Spear_makeNeedle(int, bool)
public void Spear_makeNeedle(int type, bool active)
Parameters
type int
active bool
Thrown(Creature, Vector2, Vector2?, IntVector2, float, bool)
public override void Thrown(Creature thrownBy, Vector2 thrownPos, Vector2? firstFrameTraceFromPos, IntVector2 throwDir, float frc, bool eu)
Parameters
thrownBy Creature
thrownPos Vector2
firstFrameTraceFromPos Vector2?
throwDir IntVector2
frc float
eu bool
TryImpaleSmallCreature(Creature)
public virtual void TryImpaleSmallCreature(Creature smallCrit)
Parameters
smallCrit Creature
Update(bool)
public override void Update(bool eu)
Parameters
eu bool
resetHorizontalBeamState()
public void resetHorizontalBeamState()