Class AimBand

  • All Implemented Interfaces:
    Component


    public class AimBand
    extends java.lang.Object
    implements Component
    A band which points to a point or entity. It most only be updated to work. It should eb disposed if not used any more.
    • Constructor Detail

      • AimBand

        public AimBand​(Position goal)
        Parameters:
        goal -
      • AimBand

        public AimBand​(AbstractEntity target)
        Parameters:
        target -
      • AimBand

        public AimBand​(Position start,
                       Position end)
        Parameters:
        start -
        end -
    • Method Detail

      • update

        public void update​(float dt)
        Specified by:
        update in interface Component
        Parameters:
        dt -
      • setTarget

        public void setTarget​(Position goal)
        Parameters:
        goal -
      • setTarget

        public void setTarget​(AbstractEntity target)
        Parameters:
        target -
      • dispose

        public void dispose​()
        Description copied from interface: Component
        removes itself from parent
        Specified by:
        dispose in interface Component