Class AbstractCompositeEntity.CollisionCalculationResult
- java.lang.Object
-
- de.extio.spacecraft.shared.model.entity.AbstractCompositeEntity.CollisionCalculationResult
-
- Enclosing class:
- AbstractCompositeEntity
public static class AbstractCompositeEntity.CollisionCalculationResult extends Object
Result of a collision calculation
-
-
Field Summary
Fields Modifier and Type Field Description List<AbstractEntity>
collidingEntities
Entities directly involved in the collisiondouble
dmg0
Damage amount this composite receivesdouble
dmg1
Damage amount the other composite receivesAbstractCompositeEntity
otherCompositeEntity
Other composite involved in the collisionCoordD2
p0
Acceleration vector affecting this compositeCoordD2
p1
Acceleration vector affecting the other composite
-
Constructor Summary
Constructors Constructor Description CollisionCalculationResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
swap(AbstractCompositeEntity otherCompositeEntity, List<AbstractEntity> collidingEntities)
Swaps sidesString
toString()
-
-
-
Field Detail
-
otherCompositeEntity
public AbstractCompositeEntity otherCompositeEntity
Other composite involved in the collision
-
collidingEntities
public List<AbstractEntity> collidingEntities
Entities directly involved in the collision
-
p0
public CoordD2 p0
Acceleration vector affecting this composite
-
p1
public CoordD2 p1
Acceleration vector affecting the other composite
-
dmg0
public double dmg0
Damage amount this composite receives
-
dmg1
public double dmg1
Damage amount the other composite receives
-
-
Method Detail
-
swap
public void swap(AbstractCompositeEntity otherCompositeEntity, List<AbstractEntity> collidingEntities)
Swaps sides
-
-