Package mindustry.entities.bullet
Class PointLaserBulletType
java.lang.Object
mindustry.ctype.Content
mindustry.entities.bullet.BulletType
mindustry.entities.bullet.PointLaserBulletType
- All Implemented Interfaces:
Cloneable,Comparable<Content>
A continuous bullet type that only damages in a point.
-
Nested Class Summary
Nested classes/interfaces inherited from class mindustry.ctype.Content
Content.ModContentInfo -
Field Summary
FieldsModifier and TypeFieldDescriptionfloatfloatarc.graphics.Colorfloatarc.graphics.g2d.TextureRegionarc.graphics.g2d.TextureRegionfloatfloatfloatFields inherited from class mindustry.entities.bullet.BulletType
absorbable, accel, ammoMultiplier, angleOffset, buildingDamageMultiplier, bulletInterval, cachedDps, chargeEffect, circleShooter, circleShooterRadius, circleShooterRadiusSmooth, circleShooterRotateSpeed, collideFloor, collides, collidesAir, collidesGround, collidesTeam, collidesTiles, collideTerrain, createChance, damage, delayFrags, despawnEffect, despawnHit, despawnShake, despawnSound, despawnUnit, despawnUnitChance, despawnUnitCount, despawnUnitRadius, displayAmmoMultiplier, drag, drawSize, extraRangeMargin, faceOutwards, followAimSpeed, fragAngle, fragBullet, fragBullets, fragLifeMax, fragLifeMin, fragOffsetMax, fragOffsetMin, fragOnAbsorb, fragOnHit, fragRandomSpread, fragSpread, fragVelocityMax, fragVelocityMin, healAmount, healColor, healEffect, healPercent, hitColor, hitEffect, hitShake, hitSize, hitSound, hitSoundPitch, hitSoundVolume, hittable, hitUnder, homingDelay, homingPower, homingRange, ignoreSpawnAngle, impact, inaccuracy, incendAmount, incendChance, incendSpread, instantDisappear, intervalAngle, intervalBullet, intervalBullets, intervalDelay, intervalRandomSpread, intervalSpread, keepVelocity, killShooter, knockback, laserAbsorb, layer, lifeScaleRandMax, lifeScaleRandMin, lifesteal, lifetime, lightColor, lightning, lightningAngle, lightningColor, lightningCone, lightningDamage, lightningLength, lightningLengthRand, lightningType, lightOpacity, lightRadius, makeFire, maxDamageFraction, maxRange, minRangeChange, optimalLifeFract, parts, pierce, pierceArmor, pierceBuilding, pierceCap, pierceDamageFactor, pierceFragCap, puddleAmount, puddleLiquid, puddleRange, puddles, randomAngleOffset, range, rangeChange, rangeOverride, recoil, reflectable, reloadMultiplier, removeAfterPierce, rotateSpeed, scaledSplashDamage, scaleLife, setDefaults, shieldDamageMultiplier, shootEffect, smokeEffect, spawnBulletRandomSpread, spawnBullets, spawnUnit, speed, splashDamage, splashDamagePierce, splashDamageRadius, statLiquidConsumed, status, statusDuration, sticky, stickyExtraLifetime, suppressColor, suppressionDuration, suppressionEffectChance, suppressionRange, targetBlocks, targetMissiles, trailChance, trailColor, trailEffect, trailInterp, trailInterval, trailLength, trailMinVelocity, trailParam, trailRotation, trailSinMag, trailSinScl, trailSpread, trailWidth, underwater, velocityScaleRandMax, velocityScaleRandMin, weaveMag, weaveRandom, weaveScale -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatvoiddraw(mindustry.gen.Bullet b) floatvoidload()Called after all content is created, only on non-headless versions.voidupdate(mindustry.gen.Bullet b) voidupdateBulletInterval(mindustry.gen.Bullet b) voidupdateTrail(mindustry.gen.Bullet b) voidupdateTrailEffects(mindustry.gen.Bullet b) Methods inherited from class mindustry.entities.bullet.BulletType
buildingDamage, calculateRange, copy, create, create, create, create, create, create, create, create, create, create, create, create, create, createBullet, createFrags, createIncend, createNet, createPuddles, createSplashDamage, createUnits, damageMultiplier, despawned, drawLight, drawParts, drawTrail, getContentType, handlePierce, heals, hit, hit, hitEntity, hitTile, init, init, removed, shieldDamage, testCollision, updateHoming, updateWeavingMethods inherited from class mindustry.ctype.Content
afterPatch, compareTo, hasErrored, isModded, isVanilla, loadIcon, postInit, toString
-
Field Details
-
sprite
-
laser
public arc.graphics.g2d.TextureRegion laser -
laserEnd
public arc.graphics.g2d.TextureRegion laserEnd -
color
public arc.graphics.Color color -
beamEffect
-
beamEffectInterval
public float beamEffectInterval -
beamEffectSize
public float beamEffectSize -
oscScl
public float oscScl -
oscMag
public float oscMag -
damageInterval
public float damageInterval -
shake
public float shake
-
-
Constructor Details
-
PointLaserBulletType
public PointLaserBulletType()
-
-
Method Details
-
continuousDamage
public float continuousDamage()- Overrides:
continuousDamagein classBulletType- Returns:
- continuous damage in damage/sec, or -1 if not continuous.
-
estimateDPS
public float estimateDPS()- Overrides:
estimateDPSin classBulletType- Returns:
- estimated damage per shot. this can be very inaccurate.
-
load
public void load()Description copied from class:ContentCalled after all content is created, only on non-headless versions. Use for loading regions or other image data.- Overrides:
loadin classBulletType
-
draw
public void draw(mindustry.gen.Bullet b) - Overrides:
drawin classBulletType
-
update
public void update(mindustry.gen.Bullet b) - Overrides:
updatein classBulletType
-
updateTrailEffects
public void updateTrailEffects(mindustry.gen.Bullet b) - Overrides:
updateTrailEffectsin classBulletType
-
updateTrail
public void updateTrail(mindustry.gen.Bullet b) - Overrides:
updateTrailin classBulletType
-
updateBulletInterval
public void updateBulletInterval(mindustry.gen.Bullet b) - Overrides:
updateBulletIntervalin classBulletType
-