Terraria v1.4.4.9
Terraria source code documentation
|
Static Public Member Functions | |
static void | Initialize () |
static bool | IsPressurePlate (Tile tile) |
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 bool | FrameTrack (int i, int j, bool pound, bool mute=false) |
static bool | GetOnTrack (int tileX, int tileY, ref Vector2 Position, int Width, int Height) |
static bool | OnTrack (Vector2 Position, int Width, int Height) |
static float | TrackRotation (Player player, ref float rotation, Vector2 Position, int Width, int Height, bool followDown, bool followUp, Mount.MountDelegatesData delegatesData) |
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 Vector2 | GetMagnetPosition (Vector2 Position, int Width, int Height) |
static void | FlipSwitchTrack (int i, int j) |
static void | TrackColors (int i, int j, Tile trackTile, out int frontColor, out int backColor) |
static bool | DrawLeftDecoration (int frameID) |
static bool | DrawRightDecoration (int frameID) |
static bool | DrawBumper (int frameID) |
static bool | DrawBouncyBumper (int frameID) |
static void | PlaceTrack (Tile trackCache, int style) |
static int | GetTrackItem (Tile trackCache) |
static Rectangle | GetSourceRect (int frameID, int animationFrame=0) |
static bool | GetAreExpectationsForSidesMet (Point tileCoords, int? expectedYOffsetForLeft, int? expectedYOffsetForRight) |
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 int | LeftDownDecoration = 36 |
const int | RightDownDecoration = 37 |
const int | BouncyBumperDecoration = 38 |
const int | RegularBumperDecoration = 39 |
const int | Flag_OnTrack = 0 |
const int | Flag_BouncyBumper = 1 |
const int | Flag_UsedRamp = 2 |
const int | Flag_HitSwitch = 3 |
const int | Flag_BoostLeft = 4 |
const int | Flag_BoostRight = 5 |
const float | BoosterSpeed = 4f |
Private Types | |
enum | TrackState { NoTrack = -1 , AboveTrack , OnTrack , BelowTrack , AboveFront , AboveBack , OnFront , OnBack } |
Static Private Member Functions | |
static int | GetNearbyTilesSetLookupIndex (int i, int j) |
static int | ConvertOffsetYToTrackConnectionValue (int offsetY) |
static int | ConvertTrackConnectionValueToOffsetY (int trackConnectionValue) |
static short | FrontTrack (this Tile tileTrack) |
static void | FrontTrack (this Tile tileTrack, short trackID) |
static short | BackTrack (this Tile tileTrack) |
static void | BackTrack (this Tile tileTrack, short trackID) |
Static Private Attributes | |
const int | TotalFrames = 36 |
const int | NoConnection = -1 |
const int | TopConnection = 0 |
const int | MiddleConnection = 1 |
const int | BottomConnection = 2 |
const int | BumperEnd = -1 |
const int | BouncyEnd = -2 |
const int | RampEnd = -3 |
const int | OpenEnd = -4 |
const int | Type_Normal = 0 |
const int | Type_Pressure = 1 |
const int | Type_Booster = 2 |
static Vector2 | _trackMagnetOffset = new Vector2(25f, 26f) |
const float | MinecartTextureWidth = 50f |
static int[] | _leftSideConnection |
static int[] | _rightSideConnection |
static int[] | _trackType |
static bool[] | _boostLeft |
static Vector2[] | _texturePosition |
static short | _firstPressureFrame |
static short | _firstLeftBoostFrame |
static short | _firstRightBoostFrame |
static int[][] | _trackSwitchOptions |
static int[][] | _tileHeight |
Definition at line 7 of file Minecart.cs.