Package mindustry.world.draw
Class DrawTurret
java.lang.Object
mindustry.world.draw.DrawBlock
mindustry.world.draw.DrawTurret
Extend to implement custom drawing behavior for a turret.
-
Field Summary
FieldsModifier and TypeFieldDescriptionarc.graphics.g2d.TextureRegion
Prefix to use when loading base region.arc.graphics.g2d.TextureRegion
float
arc.graphics.g2d.TextureRegion
Overrides the liquid to draw in the liquid region.arc.graphics.g2d.TextureRegion
arc.struct.Seq<DrawPart>
arc.graphics.g2d.TextureRegion
protected static final arc.math.Rand
float
arc.graphics.g2d.TextureRegion
float
Fields inherited from class mindustry.world.draw.DrawBlock
iconOverride
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
draw
(mindustry.gen.Building build) Draws the block itself.void
drawHeat
(Turret block, Turret.TurretBuild build) void
Draws the planned version of this block.void
drawTurret
(Turret block, Turret.TurretBuild build) void
getRegionsToOutline
(Block block, arc.struct.Seq<arc.graphics.g2d.TextureRegion> out) arc.graphics.g2d.TextureRegion[]
void
Load any relevant texture regions.Methods inherited from class mindustry.world.draw.DrawBlock
drawLight, expectCrafter, finalIcons
-
Field Details
-
rand
protected static final arc.math.Rand rand -
parts
-
basePrefix
Prefix to use when loading base region. -
liquidDraw
Overrides the liquid to draw in the liquid region. -
turretLayer
public float turretLayer -
shadowLayer
public float shadowLayer -
heatLayer
public float heatLayer -
base
public arc.graphics.g2d.TextureRegion base -
liquid
public arc.graphics.g2d.TextureRegion liquid -
top
public arc.graphics.g2d.TextureRegion top -
heat
public arc.graphics.g2d.TextureRegion heat -
preview
public arc.graphics.g2d.TextureRegion preview -
outline
public arc.graphics.g2d.TextureRegion outline
-
-
Constructor Details
-
DrawTurret
-
DrawTurret
public DrawTurret()
-
-
Method Details
-
getRegionsToOutline
- Overrides:
getRegionsToOutline
in classDrawBlock
-
drawPlan
Description copied from class:DrawBlock
Draws the planned version of this block. -
draw
public void draw(mindustry.gen.Building build) Description copied from class:DrawBlock
Draws the block itself. -
drawTurret
-
drawHeat
-
load
Load any relevant texture regions. -
icons
-