|
Genuts API | ||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Sprite | |
com.genuts.gameui | Contains all of the classes for creating sprite-based games. |
Uses of Sprite in com.genuts.gameui |
Subclasses of Sprite in com.genuts.gameui | |
class |
AnimatedSprite
This sprite is an animation of pictures in one image. |
class |
ImageSequenceSprite
This sprite is a sequence of pictures from one image. |
class |
LCDAnimatedSprite
This sprite is an animation of pictures of a LCDSprite. |
class |
LCDSimplePictureSprite
This object is the representation of a part of an LCDSprite when the continuity is enabled. |
class |
LCDSprite
This sprite is specially designed for games where is has definite positions. |
class |
MovingPrecisionSpriteWrapper
Sprite wrapper with the ability to move with precision positions. |
class |
MovingSpriteWrapper
Sprite wrapper with the ability to move. |
class |
ScrollingImageSprite
A scrolling image sprite is a background sprite in which an image scrolls with a given speed. |
class |
ScrollingTransparentImageSprite
A scrolling image sprite is a background sprite in which an image scrolls with a given speed. |
class |
SimpleAnimationSprite
A simple animation sprite provides a sprite for an animated picture with several cycles of animation. |
class |
SpotSprite
This sprite is a pink disk, it is only used in TraceSpriteWrapper |
class |
SpriteCounter
This object is for representation of all counter types such player's score. |
class |
SpriteImageCounter
This object is for representation of all counter type such player's score with an image. |
class |
SpriteLabel
A Label object is a sprite for placing text in a playfield. |
class |
SpriteWrapper
This Sprite is a special sprite, its goal is only to wrap another Sprite Object. |
class |
TraceSpriteWrapper
Still in development. |
Methods in com.genuts.gameui that return Sprite | |
Sprite |
SpriteWrapper.getFinalActionSprite()
|
Sprite |
SpriteWrapper.getActionSprite()
Returns the action sprite. |
Sprite |
SpriteWrapper.cloneSprite()
Creates a new sprite wrapper of the same class as this sprite. |
Sprite |
SpriteCollisionManager.getSpriteAt(int x,
int y)
Locates the first Sprite that contains the x,y position. |
Sprite |
SpriteCollisionManager.getSpriteAtCell(int x,
int y)
Locates the first Sprite which is contained in cell x,y of the array of sprites. |
Sprite |
Sprite.getWrapper()
Gets the wrapper sprite of this sprite. |
Sprite |
Sprite.getFinalWrapper()
Gets the final wrapper sprite of this sprite. |
Sprite |
Sprite.getFinalActionSprite()
Returns the first action sprite contained in this sprite that is not a SpriteWrapper . |
Sprite |
Sprite.getActionSprite()
Returns the action sprite. |
Sprite |
Sprite.cloneSprite()
Creates a new sprite of the same class as this sprite. |
Sprite |
PlayField.getSprite(int n)
Gets the nth sprite in this playfield. |
Methods in com.genuts.gameui with parameters of type Sprite | |
void |
SpriteWrapper.setActionSprite(Sprite sprite)
Sets the action sprite. |
boolean |
SpriteWrapper.checkCollision(Sprite sprite)
Checks collision of the action sprite with another action sprite or with the edges of the playfield. |
protected boolean |
SpriteWrapper.preCollisionWith(Sprite s)
Propagations of the pre-collision event to the action event. |
protected void |
SpriteWrapper.collisionWith(Sprite s)
Propagations of the collision event to the action event. |
void |
SpriteDisplayManager.addSprite(Sprite sprite)
|
void |
SpriteDisplayManager.removeSprite(Sprite sprite)
|
void |
SpriteDisplayManager.invalidateSprite(Sprite sprite)
|
void |
SpriteDisplayManager.validateSprite(Sprite sprite)
|
void |
SpriteCollisionManager.addSprite(Sprite sprite)
|
void |
SpriteCollisionManager.removeSprite(Sprite sprite)
|
void |
SpriteCollisionManager.invalidateSprite(Sprite sprite)
|
void |
SpriteCollisionManager.validateSprite(Sprite sprite)
|
boolean |
SpriteCollisionManager.preCheckCollision(Sprite sprite)
|
void |
SpriteCollisionManager.checkCollision(Sprite sprite)
|
boolean |
Sprite.checkCollision(Sprite sprite)
Checks collision of this sprite with another sprite or with the edges of the playfield. |
protected boolean |
Sprite.preCollisionWith(Sprite s)
Receives the event that this sprite is in pre-collision with another sprite. |
protected void |
Sprite.collisionWith(Sprite s)
Receives the event that this sprite is collision with another sprite. |
void |
PlayField.addSprite(Sprite s,
int index)
Adds the specified sprite to this playfield at the given position. |
void |
PlayField.addSprite(Sprite s)
Adds the specified sprite to the end of this playfield. |
void |
PlayField.removeSprite(Sprite s)
Removes the specified sprite from this playfield |
boolean |
PlayField.preCheckCollision(Sprite sprite)
Checks pre-collision of the given sprite with all other sprites in this playfield, and with the edges of this playfield. |
void |
PlayField.checkCollision(Sprite sprite)
Checks collision of the given sprite with all other sprites in this playfield, and with the edges of this playfield. |
void |
PlayField.invalidateSprite(Sprite sprite)
Invalidates a sprite for this playfield. |
void |
PlayField.validateSprite(Sprite sprite)
Validates a sprite for this playfield. |
int |
PlayField.getSpriteIndex(Sprite sprite)
Returns the index of the given sprite in this playfield. |
protected boolean |
PlayField.firePreCollisionEvent(Sprite s1,
Sprite s2)
Fires pre-collision event to sprite. |
protected boolean |
PlayField.firePreCollisionEvent(Sprite s1,
Sprite s2)
Fires pre-collision event to sprite. |
protected void |
PlayField.fireCollisionEvent(Sprite s1,
Sprite s2)
Fires collision event to both sprites. |
protected void |
PlayField.fireCollisionEvent(Sprite s1,
Sprite s2)
Fires collision event to both sprites. |
void |
MovingPrecisionSpriteWrapper.setActionSprite(Sprite sprite)
Sets the action sprite. |
boolean |
LCDSprite.checkCollision(Sprite sprite)
Checks collision position of this sprite with another collision from the other sprite. |
boolean |
LCDCollisionManager.preCheckCollision(Sprite sprite)
|
void |
LCDCollisionManager.checkCollision(Sprite sprite)
|
void |
LCDCollisionManager.addSprite(Sprite sprite)
|
void |
LCDCollisionManager.removeSprite(Sprite sprite)
|
void |
LCDCollisionManager.invalidateSprite(Sprite sprite)
|
void |
LCDCollisionManager.validateSprite(Sprite sprite)
|
void |
DisplayManager.addSprite(Sprite sprite)
Adds a sprite in the display list of this display manager. |
void |
DisplayManager.removeSprite(Sprite sprite)
Removes a sprite from the display list of this display manager. |
void |
DisplayManager.invalidateSprite(Sprite sprite)
Performs actions when a sprite is invalidate. |
void |
DisplayManager.validateSprite(Sprite sprite)
Performs actions when a sprite is validate. |
boolean |
CollisionManager.preCheckCollision(Sprite sprite)
Checks pre-collision of the given sprite with all other sprites in this playfield, and with the edges of this playfield. |
void |
CollisionManager.checkCollision(Sprite sprite)
Checks collision of the given sprite with all other sprites in the playfield, and with the edges of the playfield. |
void |
CollisionManager.addSprite(Sprite sprite)
Adds a sprite in the check list of this collision manager. |
void |
CollisionManager.removeSprite(Sprite sprite)
Removes a sprite from the check list of this collision manager. |
void |
CollisionManager.invalidateSprite(Sprite sprite)
Performs actions when a sprite is invalidate. |
void |
CollisionManager.validateSprite(Sprite sprite)
Performs actions when a sprite is validate. |
Constructors in com.genuts.gameui with parameters of type Sprite | |
TraceSpriteWrapper(Sprite sprite)
|
|
SpriteWrapper(Sprite sprite)
Initializes the wrapper sprite. |
|
MovingSpriteWrapper(Sprite sprite)
Initializes the moving sprite with an action sprite. |
|
MovingPrecisionSpriteWrapper(Sprite sprite)
Initializes the moving precision sprite with an action sprite. |
|
Genuts API | ||||||||||
PREV NEXT | FRAMES NO FRAMES |