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

Classes

struct  ClubProperties
 
class  ContactListener
 
struct  ShotStrength
 

Static Public Member Functions

static BallStepResult StepGolfBall (Entity entity, ref float angularVelocity)
 
static Vector2 FindVectorOnOval (Vector2 vector, Vector2 radius)
 
static ShotStrength CalculateShotStrength (Vector2 shotVector, ClubProperties clubProperties)
 
static bool IsPlayerHoldingClub (Player player)
 
static ShotStrength CalculateShotStrength (Projectile golfHelper, Entity golfBall)
 
static ClubProperties GetClubPropertiesFromGolfHelper (Projectile golfHelper)
 
static ClubProperties GetClubProperties (short itemId)
 
static Projectile FindHelperFromGolfBall (Projectile golfBall)
 
static Projectile FindGolfBallForHelper (Projectile golfHelper)
 
static bool IsGolfBallResting (Projectile golfBall)
 
static bool IsGolfShotValid (Entity golfBall, Player player)
 
static bool ValidateShot (Entity golfBall, Player player, ref Vector2 shotVector)
 
static void HitGolfBall (Entity entity, Vector2 velocity, float roughLandResistance)
 
static void DrawPredictionLine (Entity golfBall, Vector2 impactVelocity, float chargeProgress, float roughLandResistance)
 

Static Public Attributes

const int PointsNeededForLevel1 = 500
 
const int PointsNeededForLevel2 = 1000
 
const int PointsNeededForLevel3 = 2000
 
static readonly PhysicsProperties PhysicsProperties = new PhysicsProperties(0.3f, 0.99f)
 
static readonly ContactListener Listener = new ContactListener()
 
static FancyGolfPredictionLine PredictionLine
 

Detailed Description

Definition at line 12 of file GolfHelper.cs.


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