Interface Sprites<SPS extends Sprites<SPS,S,IMG>,S,IMG>

  • Type Parameters:
    SPS - the generic type
    S - the generic type
    IMG - the generic type


    public interface Sprites<SPS extends Sprites<SPS,S,IMG>,S,IMG>
    The Interface Sprites.
    Author:
    steiner
    • Method Detail

      • withSprite

        SPS withSprite​(org.refcodes.structure.Relation<S,IMG> aRelation)
        With sprite.
        Parameters:
        aRelation - the relation
        Returns:
        the sps
      • withSprite

        SPS withSprite​(S aStatus,
                       IMG aSprite)
        With sprite.
        Parameters:
        aStatus - the status
        aSprite - the sprite
        Returns:
        the sps
      • removeSprite

        IMG removeSprite​(S aStatus)
        Removes the sprite.
        Parameters:
        aStatus - the status
        Returns:
        the img
      • clearSprites

        void clearSprites​()
        Clear sprites.
      • hasSprites

        boolean hasSprites​()
        Checks for sprites.
        Returns:
        true, if successful
      • spriteCount

        int spriteCount​()
        Sprite count.
        Returns:
        the int
      • values

        java.util.Collection<IMG> values​()
        Values.
        Returns:
        the collection
      • states

        java.util.Set<S> states​()
        States.
        Returns:
        the sets the
      • getSprite

        IMG getSprite​(S aStatus)
        Gets the sprite.
        Parameters:
        aStatus - the status
        Returns:
        the sprite
      • containsSprite

        boolean containsSprite​(S aStatus)
        Contains sprite.
        Parameters:
        aStatus - the status
        Returns:
        true, if successful
      • putSprite

        IMG putSprite​(org.refcodes.structure.Relation<S,IMG> aRelation)
        Put sprite.
        Parameters:
        aRelation - the relation
        Returns:
        the img
      • putSprite

        IMG putSprite​(S aStatus,
                      IMG aSprite)
        Put sprite.
        Parameters:
        aStatus - the status
        aSprite - the sprite
        Returns:
        the img