Class Attractor

  • All Implemented Interfaces:
    IForce
    Direct Known Subclasses:
    DirectedAttractor

    public class Attractor
    extends java.lang.Object
    implements IForce
    • Field Summary

      • Fields inherited from interface teilchen.force.IForce

        ID
    • Constructor Summary

      Constructors 
      Constructor Description
      Attractor()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean active()  
      void active​(boolean pActiveState)  
      void apply​(float pDeltaTime, Physics pParticleSystem)  
      boolean dead()  
      void dead​(boolean pDead)  
      long ID()  
      processing.core.PVector position()  
      float radius()  
      void radius​(float pRadius)  
      void setPositionRef​(processing.core.PVector pPosition)  
      float strength()  
      void strength​(float pStrength)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Attractor

        public Attractor()
    • Method Detail

      • position

        public processing.core.PVector position()
      • setPositionRef

        public void setPositionRef​(processing.core.PVector pPosition)
      • strength

        public float strength()
      • strength

        public void strength​(float pStrength)
      • radius

        public float radius()
      • radius

        public void radius​(float pRadius)
      • apply

        public void apply​(float pDeltaTime,
                          Physics pParticleSystem)
        Specified by:
        apply in interface IForce
      • dead

        public boolean dead()
        Specified by:
        dead in interface IForce
      • dead

        public void dead​(boolean pDead)
        Specified by:
        dead in interface IForce
      • active

        public boolean active()
        Specified by:
        active in interface IForce
      • active

        public void active​(boolean pActiveState)
        Specified by:
        active in interface IForce
      • ID

        public long ID()
        Specified by:
        ID in interface IForce