Class Gravity

  • All Implemented Interfaces:
    IForce

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

      • Fields inherited from interface teilchen.force.IForce

        ID
    • Constructor Summary

      Constructors 
      Constructor Description
      Gravity()  
      Gravity​(float pForceX, float pForceY, float pForceZ)  
      Gravity​(processing.core.PVector pForce)  
    • 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)  
      processing.core.PVector force()  
      long ID()  
      • Methods inherited from class java.lang.Object

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

      • Gravity

        public Gravity()
      • Gravity

        public Gravity​(processing.core.PVector pForce)
      • Gravity

        public Gravity​(float pForceX,
                       float pForceY,
                       float pForceZ)
    • Method Detail

      • force

        public processing.core.PVector force()
      • 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