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

Public Member Functions

void ResetScoreTime ()
 
void SetScoreTime ()
 
Vector2GetLastBallLocation ()
 
void WorldClear ()
 
void CancelBallTracking ()
 
void RecordSwing (Projectile golfBall)
 
Projectile GetLastHitBall ()
 
void Update ()
 
void RecordBallInfo (Projectile golfBall)
 
void LandBall (Projectile golfBall)
 
int GetGolfBallScore (Projectile golfBall)
 
void ResetGolfBall ()
 

Properties

float ScoreAdjustment [get]
 
bool ShouldScoreHole [get]
 
bool IsTrackingBall [get]
 
bool ShouldCameraTrackBallLastKnownLocation [get]
 

Private Member Functions

void UpdateScoreTime ()
 
int GetGolfBallId (Projectile golfBall)
 

Private Attributes

int golfScoreTime
 
int golfScoreTimeMax = 3600
 
int golfScoreDelay = 90
 
double _lastRecordedBallTime
 
Vector2_lastRecordedBallLocation
 
bool _waitingForBallToSettle
 
Vector2 _lastSwingPosition
 
Projectile _lastHitGolfBall
 
int _lastRecordedSwingCount
 
GolfBallTrackRecord[] _hitRecords = new GolfBallTrackRecord[1000]
 

Static Private Attributes

const int BALL_RETURN_PENALTY = 1
 

Detailed Description

Definition at line 6 of file GolfState.cs.


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