Class DarkMatter

    • Constructor Detail

      • DarkMatter

        public DarkMatter()
    • Method Detail

      • create

        public void create​(UUID uuid,
                           CoordI2 position,
                           CoordI2 dimension)
        Description copied from class: AbstractCompositeEntity
        Called upon initial creation of this composite entity. This method is not called locally (i.e. when the composite has been transferred from server to client), so only initialize non-transient fields here. See also localInit()
        Overrides:
        create in class AbstractCompositeEntity
      • damageWave

        public void damageWave​(GameSession gameSession,
                               DamageWaveOptions damageWaveOptions,
                               List<AbstractEntity> damagedEntities)
        Description copied from class: AbstractCompositeEntity
        Distributes incoming damage on entities.
        There are certain aspects relevant for the calculation:
        * A tiles consists of several layered entities
        * An entity only absorbs a certain amount of damage (plateaus), which is also dependent on the weapon
        * A tile can be protected by shields
        * Also shields have plateaus
        * Damage that is not absorbed propagates to nearby tiles
        * Damage cannot propagate through some tiles in certain directions, i.e. walls, unless the entity is destroyed
        * Propagated damage is dampened
        * Damage handlers for tiles are pluggable
        Overrides:
        damageWave in class AbstractCompositeEntity
      • getGravityRangeDist0

        public double getGravityRangeDist0()
      • setGravityRangeDist0

        public void setGravityRangeDist0​(double gravityRangeDist0)
      • getGravityRangeDist1

        public double getGravityRangeDist1()
      • setGravityRangeDist1

        public void setGravityRangeDist1​(double gravityRangeDist1)
      • getGravityRange1

        public CoordI2 getGravityRange1()
      • setGravityRange1

        public void setGravityRange1​(CoordI2 gravityRange1)
      • getGravityPotential

        public double getGravityPotential()
      • setGravityPotential

        public void setGravityPotential​(double gravityPotential)
      • getGravityAccel

        public double getGravityAccel()
      • setGravityAccel

        public void setGravityAccel​(double gravityAccel)