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 TypeMethodDescriptionvoid
Clear sprites.boolean
containsSprite
(S aStatus) Contains sprite.Gets the sprite.boolean
Checks for sprites.Put sprite.Put sprite.removeSprite
(S aStatus) Removes the sprite.int
Sprite count.states()
States.values()
Values.withSprite
(org.refcodes.struct.Relation<S, IMG> aRelation) With sprite.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
-