tModLoader v2024.11
A mod to make and play Terraria mods
Minecart Class Reference

Static Public Member Functions

static bool DrawBouncyBumper (int frameID)
 
static bool DrawBumper (int frameID)
 
static bool DrawLeftDecoration (int frameID)
 
static bool DrawRightDecoration (int frameID)
 
static void FlipSwitchTrack (int i, int j)
 
static bool FrameTrack (int i, int j, bool pound, bool mute=false)
 
static bool GetAreExpectationsForSidesMet (Point tileCoords, int? expectedYOffsetForLeft, int? expectedYOffsetForRight)
 
static Vector2 GetMagnetPosition (Vector2 Position, int Width, int Height)
 
static bool GetOnTrack (int tileX, int tileY, ref Vector2 Position, int Width, int Height)
 
static Rectangle GetSourceRect (int frameID, int animationFrame=0)
 
static int GetTrackItem (Tile trackCache)
 
static void GetWheelsPositions (Player player, Vector2 Position, int Width, int Height, bool followDown, bool followUp, Mount.MountDelegatesData delegatesData, out Vector2 leftWheel, out Vector2 rightWheel)
 
static void HitTrackSwitch (Vector2 Position, int Width, int Height)
 
static void Initialize ()
 
static bool IsPressurePlate (Tile tile)
 
static bool OnTrack (Vector2 Position, int Width, int Height)
 
static void PlaceTrack (Tile trackCache, int style)
 
static BitsByte TrackCollision (Player Player, ref Vector2 Position, ref Vector2 Velocity, ref Vector2 lastBoost, int Width, int Height, bool followDown, bool followUp, int fallStart, bool trackOnly, Mount.MountDelegatesData delegatesData)
 
static void TrackColors (int i, int j, Tile trackTile, out int frontColor, out int backColor)
 
static float TrackRotation (Player player, ref float rotation, Vector2 Position, int Width, int Height, bool followDown, bool followUp, Mount.MountDelegatesData delegatesData)
 
static void TryFittingTileOrientation (Point tileCoords, int? expectedYOffsetForLeft, int? expectedYOffsetForRight)
 
static void WheelSparks (Action< Vector2 > DustAction, Vector2 Position, int Width, int Height, int sparkCount)
 

Static Public Attributes

const float BoosterSpeed = 4f
 
const int BouncyBumperDecoration = 38
 
const int Flag_BoostLeft = 4
 
const int Flag_BoostRight = 5
 
const int Flag_BouncyBumper = 1
 
const int Flag_HitSwitch = 3
 
const int Flag_OnTrack = 0
 
const int Flag_UsedRamp = 2
 
const int LeftDownDecoration = 36
 
const int RegularBumperDecoration = 39
 
const int RightDownDecoration = 37