/** Solid objects. If a ship touches it, then the ship will be instantly destroyed! */ class Solid : AbstractRole { @Attribute( about="Only show if this.hardness <= Options.hardness" ) var hardness = 0 override fun begin() { if ( this.hardness > Options.instance.hardness ) { actor.die() } else { // We can indicated which rocks are optional by changing their opacity. // So set to fully opaque. actor.color.alpha = 1 } } override fun tick() { } }