Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
Terraria.GameContent.PortalHelper Class Reference

Static Public Member Functions

static void UpdatePortalPoints ()
 
static void TryGoingThroughPortals (Entity ent)
 
static int TryPlacingPortal (Projectile theBolt, Vector2 velocity, Vector2 theCrashVelocity)
 
static Color GetPortalColor (int colorIndex)
 
static Color GetPortalColor (int player, int portal)
 
static void SyncPortalsOnPlayerJoin (int plr, int fluff, List< Point > dontInclude, out List< Point > portalSections)
 
static void SyncPortalSections (Vector2 portalPosition, int fluff)
 
static bool SupportedTilesAreFine (Vector2 portalCenter, float portalAngle)
 

Static Public Attributes

const int PORTALS_PER_PERSON = 2
 

Static Private Member Functions

static PortalHelper ()
 
static bool FindValidLine (Point position, int xOffset, int yOffset, out Point bestPosition)
 
static bool IsValidLine (Point position, int xOffset, int yOffset)
 
static bool CanPlacePortalOn (Tile t)
 
static bool DoesTileTypeSupportPortals (ushort tileType)
 
static bool BlockPortals (Tile t)
 
static Vector2 FindCollision (Vector2 startPosition, Vector2 stopPosition)
 
static int AddPortal (Projectile sourceProjectile, Vector2 position, float angle, int form, int direction)
 
static void RemoveMyOldPortal (int form)
 
static void RemoveIntersectingPortals (Vector2 position, float angle)
 
static void GetPortalEdges (Vector2 position, float angle, out Vector2 start, out Vector2 end)
 
static Vector2 GetPortalOutingPoint (Vector2 objectSize, Vector2 portalPosition, float portalAngle, out int bonusX, out int bonusY)
 
static bool SupportedSlope (int x, int y, int slope)
 
static bool SupportedHalfbrick (int x, int y)
 
static bool SupportedNormal (int x, int y)
 

Static Private Attributes

static int[,] FoundPortals
 
static int[] PortalCooldownForPlayers
 
static int[] PortalCooldownForNPCs
 
static readonly Vector2[] EDGES
 
static readonly Vector2[] SLOPE_EDGES
 
static readonly Point[] SLOPE_OFFSETS
 
static bool anyPortalAtAll
 

Detailed Description

Definition at line 8 of file PortalHelper.cs.


The documentation for this class was generated from the following file: