Package org.refcodes.checkerboard
Interface Sprites<SPS extends Sprites<SPS,S,IMG>,S,IMG>
-
- Type Parameters:
SPS
- the generic typeS
- the generic typeIMG
- the generic type
public interface Sprites<SPS extends Sprites<SPS,S,IMG>,S,IMG>
The Interface Sprites.- Author:
- steiner
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
clearSprites()
Clear sprites.boolean
containsSprite(S aStatus)
Contains sprite.IMG
getSprite(S aStatus)
Gets the sprite.boolean
hasSprites()
Checks for sprites.IMG
putSprite(org.refcodes.structure.Relation<S,IMG> aRelation)
Put sprite.IMG
putSprite(S aStatus, IMG aSprite)
Put sprite.IMG
removeSprite(S aStatus)
Removes the sprite.int
spriteCount()
Sprite count.java.util.Set<S>
states()
States.java.util.Collection<IMG>
values()
Values.SPS
withSprite(org.refcodes.structure.Relation<S,IMG> aRelation)
With sprite.SPS
withSprite(S aStatus, IMG aSprite)
With sprite.
-
-
-
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 statusaSprite
- 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
-
-