Module org.refcodes.checkerboard
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
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.struct.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.Set<S>
states()
States.Collection<IMG>
values()
Values.SPS
withSprite(org.refcodes.struct.Relation<S,IMG> aRelation)
With sprite.SPS
withSprite(S aStatus, IMG aSprite)
With sprite.
-
Method Details
-
withSprite
With sprite.- Parameters:
aRelation
- the relation- Returns:
- the sps
-
withSprite
With sprite.- Parameters:
aStatus
- the statusaSprite
- the sprite- Returns:
- the sps
-
removeSprite
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
Collection<IMG> values()Values.- Returns:
- the collection
-
states
States.- Returns:
- the sets the
-
getSprite
Gets the sprite.- Parameters:
aStatus
- the status- Returns:
- the sprite
-
containsSprite
Contains sprite.- Parameters:
aStatus
- the status- Returns:
- true, if successful
-
putSprite
Put sprite.- Parameters:
aRelation
- the relation- Returns:
- the img
-
putSprite
Put sprite.- Parameters:
aStatus
- the statusaSprite
- the sprite- Returns:
- the img
-