Package mindustry.entities.bullet
Class ContinuousBulletType
java.lang.Object
mindustry.ctype.Content
mindustry.entities.bullet.BulletType
mindustry.entities.bullet.ContinuousBulletType
- All Implemented Interfaces:
Cloneable
,Comparable<Content>
- Direct Known Subclasses:
ContinuousFlameBulletType
,ContinuousLaserBulletType
Basic continuous (line) bullet type that does not draw itself. Essentially abstract.
-
Nested Class Summary
Nested classes/interfaces inherited from class mindustry.ctype.Content
Content.ModContentInfo
-
Field Summary
Modifier and TypeFieldDescriptionboolean
float
boolean
float
float
Fields inherited from class mindustry.entities.bullet.BulletType
absorbable, ammoMultiplier, backMove, buildingDamageMultiplier, bulletInterval, chargeEffect, collideFloor, collides, collidesAir, collidesGround, collidesTeam, collidesTiles, collideTerrain, createChance, damage, despawnEffect, despawnHit, despawnShake, despawnSound, despawnUnit, despawnUnitChance, despawnUnitCount, despawnUnitRadius, displayAmmoMultiplier, drag, drawSize, faceOutwards, fragAngle, fragBullet, fragBullets, fragLifeMax, fragLifeMin, fragOnAbsorb, fragOnHit, fragRandomSpread, fragSpread, fragVelocityMax, fragVelocityMin, healAmount, healColor, healEffect, healPercent, hitColor, hitEffect, hitShake, hitSize, hitSound, hitSoundPitch, hitSoundVolume, hittable, homingDelay, homingPower, homingRange, ignoreSpawnAngle, impact, inaccuracy, incendAmount, incendChance, incendSpread, instantDisappear, intervalAngle, intervalBullet, intervalBullets, intervalDelay, intervalRandomSpread, intervalSpread, keepVelocity, killShooter, knockback, laserAbsorb, layer, lifetime, lightColor, lightning, lightningAngle, lightningColor, lightningCone, lightningDamage, lightningLength, lightningLengthRand, lightningType, lightOpacity, lightRadius, makeFire, maxRange, optimalLifeFract, parts, pierce, pierceArmor, pierceBuilding, pierceCap, pierceDamageFactor, puddleAmount, puddleLiquid, puddleRange, puddles, range, rangeChange, rangeOverride, recoil, reflectable, reloadMultiplier, removeAfterPierce, scaledSplashDamage, scaleLife, setDefaults, shootEffect, smokeEffect, spawnBullets, spawnUnit, speed, splashDamage, splashDamagePierce, splashDamageRadius, status, statusDuration, suppressionDuration, suppressionEffectChance, suppressionRange, trailChance, trailColor, trailEffect, trailInterp, trailInterval, trailLength, trailParam, trailRotation, trailSinMag, trailSinScl, trailWidth, weaveMag, weaveRandom, weaveScale
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applyDamage
(mindustry.gen.Bullet b) protected float
float
float
currentLength
(mindustry.gen.Bullet b) float
void
init()
Called after all content and modules are created.void
init
(mindustry.gen.Bullet b) void
update
(mindustry.gen.Bullet b) Methods inherited from class mindustry.entities.bullet.BulletType
copy, create, create, create, create, create, create, create, create, create, create, create, create, createBullet, createFrags, createIncend, createNet, createPuddles, createSplashDamage, createUnits, damageMultiplier, despawned, draw, drawLight, drawParts, drawTrail, getContentType, handlePierce, heals, hit, hit, hitEntity, hitTile, load, removed, testCollision, updateBulletInterval, updateHoming, updateTrail, updateTrailEffects, updateWeaving
-
Field Details
-
length
public float length -
shake
public float shake -
damageInterval
public float damageInterval -
largeHit
public boolean largeHit -
continuous
public boolean continuous
-
-
Constructor Details
-
ContinuousBulletType
public ContinuousBulletType()
-
-
Method Details
-
continuousDamage
public float continuousDamage()- Overrides:
continuousDamage
in classBulletType
- Returns:
- continuous damage in damage/sec, or -1 if not continuous.
-
estimateDPS
public float estimateDPS()- Overrides:
estimateDPS
in classBulletType
- Returns:
- estimated damage per shot. this can be very inaccurate.
-
calculateRange
protected float calculateRange()- Overrides:
calculateRange
in classBulletType
- Returns:
- maximum distance the bullet this bullet type has can travel.
-
init
public void init()Description copied from class:Content
Called after all content and modules are created. Do not use to load regions or texture data!- Overrides:
init
in classBulletType
-
init
public void init(mindustry.gen.Bullet b) - Overrides:
init
in classBulletType
-
update
public void update(mindustry.gen.Bullet b) - Overrides:
update
in classBulletType
-
applyDamage
public void applyDamage(mindustry.gen.Bullet b) -
currentLength
public float currentLength(mindustry.gen.Bullet b)
-