Package mindustry.entities.pattern
Class ShootSine
java.lang.Object
mindustry.entities.pattern.ShootPattern
mindustry.entities.pattern.ShootSine
- All Implemented Interfaces:
Cloneable
-
Nested Class Summary
Nested classes/interfaces inherited from class mindustry.entities.pattern.ShootPattern
ShootPattern.BulletHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionfloatmagnitude of sine curve for position displacementfloatscaling applied to bullet indexFields inherited from class mindustry.entities.pattern.ShootPattern
firstShotDelay, shotDelay, shots -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidshoot(int totalShots, ShootPattern.BulletHandler handler, Runnable barrelIncrementer) Called on a single "trigger pull".Methods inherited from class mindustry.entities.pattern.ShootPattern
copy, flip, shoot
-
Field Details
-
scl
public float sclscaling applied to bullet index -
mag
public float magmagnitude of sine curve for position displacement
-
-
Constructor Details
-
ShootSine
public ShootSine(float scl, float mag) -
ShootSine
public ShootSine()
-
-
Method Details
-
shoot
public void shoot(int totalShots, ShootPattern.BulletHandler handler, @Nullable Runnable barrelIncrementer) Description copied from class:ShootPatternCalled on a single "trigger pull". This function should call the handler with any bullets that result.- Overrides:
shootin classShootPattern
-