C# Class Terraria.Mount

Mostra file Open project: EmuDevs/EDTerraria Class Usage Examples

Public Properties

Property Type Description
_debugDraw List
currentShader int
drillBeamCooldownMax int
drillDiodePoint1 Vector2
drillDiodePoint2 Vector2
drillPickPower int
drillPickTime int
drillTextureSize Vector2

Public Methods

Method Description
AbilityRecovery ( ) : void
AimAbility ( Player mountedPlayer, Vector2 mousePosition ) : bool
CanMount ( int m, Player mountingPlayer ) : bool
CheckBuff ( int buffID ) : bool
CheckMountBuff ( Player mountedPlayer ) : void
Dismount ( Player mountedPlayer ) : void
Draw ( List playerDrawData, int drawType, Player drawPlayer, Vector2 Position, Color drawColor, SpriteEffects playerEffect, float shadow ) : void
FatigueRecovery ( ) : void
FindTileHeight ( Vector2 position, int maxTilesDown, float &tileHeight ) : bool
Flight ( ) : bool
GetHeightBoost ( int MountType ) : int
GetMinecartMechPoint ( Player mountedPlayer, int offX, int offY ) : Vector2
Hover ( Player mountedPlayer ) : bool
Initialize ( ) : void
JumpHeight ( float xVelocity ) : int
JumpSpeed ( float xVelocity ) : float
Mount ( ) : Microsoft.Xna.Framework
Reset ( ) : void
ResetFlightTime ( float xVelocity ) : void
ResetHeadPosition ( ) : void
SetMount ( int m, Player mountedPlayer, bool faceLeft = false ) : void
StartAbilityCharge ( Player mountedPlayer ) : void
StopAbilityCharge ( ) : void
UpdateDrill ( Player mountedPlayer, bool controlUp, bool controlDown ) : void
UpdateEffects ( Player mountedPlayer ) : void
UpdateFrame ( Player mountedPlayer, int state, Vector2 velocity ) : void
UseAbility ( Player mountedPlayer, Vector2 mousePosition, bool toggleOn ) : void
UseDrill ( Player mountedPlayer ) : void

Private Methods

Method Description
ClampToDeadZone ( Player mountedPlayer, Vector2 position ) : Vector2
DrillSmartCursor ( Player mountedPlayer, Mount data ) : Point16

Method Details

AbilityRecovery() public method

public AbilityRecovery ( ) : void
return void

AimAbility() public method

public AimAbility ( Player mountedPlayer, Vector2 mousePosition ) : bool
mountedPlayer Player
mousePosition Vector2
return bool

CanMount() public method

public CanMount ( int m, Player mountingPlayer ) : bool
m int
mountingPlayer Player
return bool

CheckBuff() public method

public CheckBuff ( int buffID ) : bool
buffID int
return bool

CheckMountBuff() public method

public CheckMountBuff ( Player mountedPlayer ) : void
mountedPlayer Player
return void

Dismount() public method

public Dismount ( Player mountedPlayer ) : void
mountedPlayer Player
return void

Draw() public method

public Draw ( List playerDrawData, int drawType, Player drawPlayer, Vector2 Position, Color drawColor, SpriteEffects playerEffect, float shadow ) : void
playerDrawData List
drawType int
drawPlayer Player
Position Vector2
drawColor Color
playerEffect SpriteEffects
shadow float
return void

FatigueRecovery() public method

public FatigueRecovery ( ) : void
return void

FindTileHeight() public method

public FindTileHeight ( Vector2 position, int maxTilesDown, float &tileHeight ) : bool
position Vector2
maxTilesDown int
tileHeight float
return bool

Flight() public method

public Flight ( ) : bool
return bool

GetHeightBoost() public static method

public static GetHeightBoost ( int MountType ) : int
MountType int
return int

GetMinecartMechPoint() public static method

public static GetMinecartMechPoint ( Player mountedPlayer, int offX, int offY ) : Vector2
mountedPlayer Player
offX int
offY int
return Vector2

Hover() public method

public Hover ( Player mountedPlayer ) : bool
mountedPlayer Player
return bool

Initialize() public static method

public static Initialize ( ) : void
return void

JumpHeight() public method

public JumpHeight ( float xVelocity ) : int
xVelocity float
return int

JumpSpeed() public method

public JumpSpeed ( float xVelocity ) : float
xVelocity float
return float

Mount() public method

public Mount ( ) : Microsoft.Xna.Framework
return Microsoft.Xna.Framework

Reset() public method

public Reset ( ) : void
return void

ResetFlightTime() public method

public ResetFlightTime ( float xVelocity ) : void
xVelocity float
return void

ResetHeadPosition() public method

public ResetHeadPosition ( ) : void
return void

SetMount() public method

public SetMount ( int m, Player mountedPlayer, bool faceLeft = false ) : void
m int
mountedPlayer Player
faceLeft bool
return void

StartAbilityCharge() public method

public StartAbilityCharge ( Player mountedPlayer ) : void
mountedPlayer Player
return void

StopAbilityCharge() public method

public StopAbilityCharge ( ) : void
return void

UpdateDrill() public method

public UpdateDrill ( Player mountedPlayer, bool controlUp, bool controlDown ) : void
mountedPlayer Player
controlUp bool
controlDown bool
return void

UpdateEffects() public method

public UpdateEffects ( Player mountedPlayer ) : void
mountedPlayer Player
return void

UpdateFrame() public method

public UpdateFrame ( Player mountedPlayer, int state, Vector2 velocity ) : void
mountedPlayer Player
state int
velocity Vector2
return void

UseAbility() public method

public UseAbility ( Player mountedPlayer, Vector2 mousePosition, bool toggleOn ) : void
mountedPlayer Player
mousePosition Vector2
toggleOn bool
return void

UseDrill() public method

public UseDrill ( Player mountedPlayer ) : void
mountedPlayer Player
return void

Property Details

_debugDraw public_oe property

public List _debugDraw
return List

currentShader public_oe static_oe property

public static int currentShader
return int

drillBeamCooldownMax public_oe static_oe property

public static int drillBeamCooldownMax
return int

drillDiodePoint1 public_oe static_oe property

public static Vector2 drillDiodePoint1
return Vector2

drillDiodePoint2 public_oe static_oe property

public static Vector2 drillDiodePoint2
return Vector2

drillPickPower public_oe static_oe property

public static int drillPickPower
return int

drillPickTime public_oe static_oe property

public static int drillPickTime
return int

drillTextureSize public_oe static_oe property

public static Vector2 drillTextureSize
return Vector2