Package name.moore.kevin.ze.components
Class physical
java.lang.Object
name.moore.kevin.ze.components.physical
- All Implemented Interfaces:
com.simsilica.es.EntityComponent
A component that holds static physical properties such as size or mass. Not all
fields will be relevant but all will have default values if not set.
- Author:
- Kevin Moore
<dev@kevin.moore.name>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.jscience.physics.amount.Amount<javax.measure.quantity.Energy>An amount of energy.private org.jscience.physics.amount.Amount<javax.measure.quantity.Mass>An actual real world mass, defaulted to 0kgprivate FloatA relative size, typically held in a <size> XML element -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
size
A relative size, typically held in a <size> XML element -
mass
private org.jscience.physics.amount.Amount<javax.measure.quantity.Mass> massAn actual real world mass, defaulted to 0kg -
energy
private org.jscience.physics.amount.Amount<javax.measure.quantity.Energy> energyAn amount of energy. This may have different effects depending on the entity using it. eg a shield will use this as the maximum amount of energy it can absorb. Defaulted to 0J
-
-
Constructor Details
-
physical
- Parameters:
s-
-
physical
- Parameters:
s-m-
-
physical
public physical(Float s, org.jscience.physics.amount.Amount<javax.measure.quantity.Mass> m, org.jscience.physics.amount.Amount<javax.measure.quantity.Energy> e)- Parameters:
s-m-e-
-
physical
public physical()
-
-
Method Details