struct Explosive

Overview

component on shot, also present on explosion

Defined in:

mechanics/explosion.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(radius : Float64, damage : Int32) #

[View source]

Class Method Detail

def self.component_index #

component on shot, also present on explosion


Instance Method Detail

def clone #

[View source]
def copy_with(radius _radius = @radius, damage _damage = @damage) #

[View source]
def damage : Int32 #

def radius : Float64 #