Package mindustry.entities.bullet
Class RailBulletType
java.lang.Object
mindustry.ctype.Content
mindustry.entities.bullet.BulletType
mindustry.entities.bullet.RailBulletType
- All Implemented Interfaces:
Cloneable
,Comparable<Content>
-
Nested Class Summary
Nested classes/interfaces inherited from class mindustry.ctype.Content
Content.ModContentInfo
-
Field Summary
Modifier and TypeFieldDescriptionfloat
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 TypeMethodDescriptionprotected float
void
handlePierce
(mindustry.gen.Bullet b, float initialHealth, float x, float y) void
hitTile
(mindustry.gen.Bullet b, mindustry.gen.Building build, float x, float y, float initialHealth, boolean direct) If direct is false, this is an indirect hit and the tile was already damaged.void
init
(mindustry.gen.Bullet b) boolean
testCollision
(mindustry.gen.Bullet bullet, mindustry.gen.Building tile) Methods inherited from class mindustry.entities.bullet.BulletType
continuousDamage, 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, estimateDPS, getContentType, heals, hit, hit, hitEntity, init, load, removed, update, updateBulletInterval, updateHoming, updateTrail, updateTrailEffects, updateWeaving
-
Field Details
-
pierceEffect
-
pointEffect
-
lineEffect
-
endEffect
-
length
public float length -
pointEffectSpace
public float pointEffectSpace
-
-
Constructor Details
-
RailBulletType
public RailBulletType()
-
-
Method Details
-
calculateRange
protected float calculateRange()- Overrides:
calculateRange
in classBulletType
- Returns:
- maximum distance the bullet this bullet type has can travel.
-
handlePierce
public void handlePierce(mindustry.gen.Bullet b, float initialHealth, float x, float y) - Overrides:
handlePierce
in classBulletType
-
init
public void init(mindustry.gen.Bullet b) - Overrides:
init
in classBulletType
-
testCollision
public boolean testCollision(mindustry.gen.Bullet bullet, mindustry.gen.Building tile) - Overrides:
testCollision
in classBulletType
-
hitTile
public void hitTile(mindustry.gen.Bullet b, mindustry.gen.Building build, float x, float y, float initialHealth, boolean direct) Description copied from class:BulletType
If direct is false, this is an indirect hit and the tile was already damaged. TODO this is a mess.- Overrides:
hitTile
in classBulletType
-