Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
A
C
D
F
G
I
M
N
P
R
S
T
U
V
A
AnimatedSprite
- class com.genuts.gameui.
AnimatedSprite
.
This sprite is an animation of pictures in one image.
AnimatedSprite(Image, int, int, int)
- Constructor for class com.genuts.gameui.
AnimatedSprite
Initializes the sprite, with an animation image.
addSprite(Sprite)
- Method in interface com.genuts.gameui.
CollisionManager
Adds a sprite in the check list of this collision manager.
addSprite(Sprite)
- Method in interface com.genuts.gameui.
DisplayManager
Adds a sprite in the display list of this display manager.
addSprite(Sprite, int)
- Method in class com.genuts.gameui.
PlayField
Adds the specified sprite to this playfield at the given position.
addSprite(Sprite)
- Method in class com.genuts.gameui.
PlayField
Adds the specified sprite to the end of this playfield.
addSprite(Sprite)
- Method in class com.genuts.gameui.
SpriteCollisionManager
addSprite(Sprite)
- Method in class com.genuts.gameui.
SpriteDisplayManager
addTickable(Tickable)
- Method in class com.genuts.gameui.
PlayField
Adds a tickable object to this playfield to the end of list.
addTickable(Tickable, int)
- Method in class com.genuts.gameui.
PlayField
Adds a tickable object to this playfield at the given position in the list.
addValue(int)
- Method in class com.genuts.gameui.
SpriteCounter
Adds a value to the value of this counter.
animate(int)
- Method in class com.genuts.gameui.
AnimatedSprite
Animates the sprite as desired.
C
CollisionManager
- interface com.genuts.gameui.
CollisionManager
.
Defines an interface for classes that know how to check collision between sprites.
checkAllCollisions()
- Method in interface com.genuts.gameui.
CollisionManager
Checks collisions of sprites with all other sprites in the playfield, and with the edges of the playfield.
checkAllCollisions()
- Method in class com.genuts.gameui.
PlayField
Checks collisions of sprites with all other sprites in this playfield, and with the edges of this playfield.
checkAllCollisions()
- Method in class com.genuts.gameui.
SpriteCollisionManager
checkCollision(Sprite)
- Method in interface com.genuts.gameui.
CollisionManager
Checks collision of the given sprite with all other sprites in the playfield, and with the edges of the playfield.
checkCollision(Sprite)
- Method in class com.genuts.gameui.
PlayField
Checks collision of the given sprite with all other sprites in this playfield, and with the edges of this playfield.
checkCollision(Sprite)
- Method in class com.genuts.gameui.
Sprite
Checks collision of this sprite with another sprite or with the edges of the playfield.
checkCollision(Sprite)
- Method in class com.genuts.gameui.
SpriteCollisionManager
checkCollision(Sprite)
- Method in class com.genuts.gameui.
SpriteWrapper
Checks collision of the action sprite with another action sprite or with the edges of the playfield.
collisionWith(Sprite)
- Method in class com.genuts.gameui.
Sprite
Receives the event that this sprite is collision with another sprite.
collisionWith(Sprite)
- Method in class com.genuts.gameui.
SpriteWrapper
Propagations of the collision event to the action event.
com.genuts.gameui
- package com.genuts.gameui
Contains all of the classes for creating sprite-based games.
D
DebugPlayField
- class com.genuts.gameui.
DebugPlayField
.
A Debugging playfield.
DebugPlayField(CollisionManager, DisplayManager, int, int)
- Constructor for class com.genuts.gameui.
DebugPlayField
Initializes the playfield with a collision manager and a size.
DebugPlayField(CollisionManager)
- Constructor for class com.genuts.gameui.
DebugPlayField
Initializes the simple playfield with a collision manager.
DebugPlayField(DisplayManager)
- Constructor for class com.genuts.gameui.
DebugPlayField
Initializes the simple playfield with a display manager.
DebugPlayField(int, int)
- Constructor for class com.genuts.gameui.
DebugPlayField
Initializes the playfield with a size.
DebugPlayField(CollisionManager, int, int)
- Constructor for class com.genuts.gameui.
DebugPlayField
Initializes the playfield with a size.
DebugPlayField(DisplayManager, int, int)
- Constructor for class com.genuts.gameui.
DebugPlayField
Initializes the playfield with a size.
DebugPlayField()
- Constructor for class com.genuts.gameui.
DebugPlayField
Initializes the simple playfield.
DisplayManager
- interface com.genuts.gameui.
DisplayManager
.
Defines an interface for classes that know how to paint sprites.
drawDebug(Graphics)
- Method in interface com.genuts.gameui.
CollisionManager
Draws debug informations for this collision manager.
drawDebug(Graphics)
- Method in interface com.genuts.gameui.
DisplayManager
Draws debug informations for this display manager.
drawDebug(Graphics)
- Method in class com.genuts.gameui.
SpriteCollisionManager
drawDebug(Graphics)
- Method in class com.genuts.gameui.
SpriteDisplayManager
F
fireCollisionEvent(Sprite, Sprite)
- Method in class com.genuts.gameui.
PlayField
Fires collision event to both sprites.
firePreCollisionEvent(Sprite, Sprite)
- Method in class com.genuts.gameui.
PlayField
Fires pre-collision event to sprite.
G
getActionSprite()
- Method in class com.genuts.gameui.
Sprite
Returns the action sprite.
getActionSprite()
- Method in class com.genuts.gameui.
SpriteWrapper
Returns the action sprite.
getBackground()
- Method in class com.genuts.gameui.
PlayField
Gets the background color of this sprite.
getBackground()
- Method in class com.genuts.gameui.
Sprite
Gets the background color of this sprite.
getBackground()
- Method in class com.genuts.gameui.
SpriteWrapper
Gets the background color of the action sprite.
getBackgroundImage()
- Method in class com.genuts.gameui.
PlayField
Returns the background image of this playfield.
getBaseline()
- Method in class com.genuts.gameui.
SpriteLabel
Gets the baseline of this label.
getBottomCollisionOffset()
- Method in class com.genuts.gameui.
Sprite
Gets the offset on the bottom side for which the collision must not be considered.
getBottomCollisionOffset()
- Method in class com.genuts.gameui.
SpriteWrapper
Gets the offset on the bottom side for which the collision must not be considered.
getCollisionManager()
- Method in class com.genuts.gameui.
PlayField
Gets the collision manager of this playfield.
getCollisionStep()
- Method in class com.genuts.gameui.
SpriteCollisionManager
Returns the collision step check of this collision manager.
getColor()
- Method in class com.genuts.gameui.
SpriteLabel
Gets the color of this label.
getCurrentPictureNumber()
- Method in class com.genuts.gameui.
ImageSequenceSprite
Gets the current picture index in the image sequence.
getCurrentRemindTick()
- Method in class com.genuts.gameui.
AnimatedSprite
Gets the number of ticks to way before the next picture will be displayed.
getCycles()
- Method in class com.genuts.gameui.
SimpleAnimationSprite
Gets the number of cycles of this animation.
getDigitsCount()
- Method in class com.genuts.gameui.
SpriteCounter
Gets the number of digits to display.
getDigitsImage()
- Method in class com.genuts.gameui.
SpriteImageCounter
Gets the digits from the image for this counter.
getDisplayManager()
- Method in class com.genuts.gameui.
PlayField
Gets the display manager of this playfield.
getDisplayStep()
- Method in class com.genuts.gameui.
SpriteDisplayManager
Returns the display step check of this display manager.
getDoneCycles()
- Method in class com.genuts.gameui.
SimpleAnimationSprite
Gets the number of done cycles of this animation.
getFinalActionSprite()
- Method in class com.genuts.gameui.
Sprite
Returns the first action sprite contained in this sprite that is not a
SpriteWrapper
.
getFinalActionSprite()
- Method in class com.genuts.gameui.
SpriteWrapper
getFinalWrapper()
- Method in class com.genuts.gameui.
Sprite
Gets the final wrapper sprite of this sprite.
getFont()
- Method in class com.genuts.gameui.
SpriteLabel
Gets the font of this label.
getFrequence()
- Method in class com.genuts.gameui.
AnimatedSprite
Returns the number of ticks to wait between two pictures of the animation.
getHeight()
- Method in class com.genuts.gameui.
Sprite
Gets the height of the sprite.
getHeight()
- Method in class com.genuts.gameui.
SpriteWrapper
Gets the height of the action sprite.
getHorizontalPicture()
- Method in class com.genuts.gameui.
ImageSequenceSprite
Returns the current horizontal index of the displayed picture in the image.
getHorizontalPictures()
- Method in class com.genuts.gameui.
SpriteImageCounter
Gets the number of pictures contained horizontally in the image of digits.
getHorizontalPicturesCount()
- Method in class com.genuts.gameui.
ImageSequenceSprite
Gets the number of pictures contained horizontally in the sequence image.
getId()
- Method in class com.genuts.gameui.
Sprite
Gets the id of this sprite.
getId()
- Method in class com.genuts.gameui.
SpriteWrapper
Gets the id of the action sprite.
getImage()
- Method in class com.genuts.gameui.
Sprite
Gets the image of this sprite.
getImage()
- Method in class com.genuts.gameui.
SpriteWrapper
Gets the image of the action sprite.
getLeftCollisionOffset()
- Method in class com.genuts.gameui.
Sprite
Gets the offset on the left side for which the collision must not be considered.
getLeftCollisionOffset()
- Method in class com.genuts.gameui.
SpriteWrapper
Gets the offset on the left side for which the collision must not be considered.
getMaximumValue()
- Method in class com.genuts.gameui.
SpriteCounter
Gets the maximum value of this counter.
getParent()
- Method in class com.genuts.gameui.
Sprite
Gets the parent playfield of this sprite.
getParent()
- Method in class com.genuts.gameui.
SpriteWrapper
Gets the parent playfield of the action sprite.
getPicturesCount()
- Method in class com.genuts.gameui.
ImageSequenceSprite
Gets the number of pictures contained in the sequence image.
getPlayfield()
- Method in interface com.genuts.gameui.
CollisionManager
Returns the playfield associated with this collision manager.
getPlayfield()
- Method in interface com.genuts.gameui.
DisplayManager
Returns the playfield associated with this display manager.
getPlayfield()
- Method in class com.genuts.gameui.
SpriteCollisionManager
getPlayfield()
- Method in class com.genuts.gameui.
SpriteDisplayManager
getPrecision()
- Method in class com.genuts.gameui.
MovingPrecisionSpriteWrapper
Gets the precision value of the object.
getPrecisionX()
- Method in class com.genuts.gameui.
MovingPrecisionSpriteWrapper
Gets the X position of the action sprite in the playfield with
int
type value.
getPrecisionY()
- Method in class com.genuts.gameui.
MovingPrecisionSpriteWrapper
Gets the Y position of the action sprite in the playfield with
int
type value.
getPreferredHeight()
- Method in class com.genuts.gameui.
PlayField
Returns the preferred height of this playfield.
getPreferredWidth()
- Method in class com.genuts.gameui.
PlayField
Returns the preferred width of this playfield.
getRightCollisionOffset()
- Method in class com.genuts.gameui.
Sprite
Gets the offset on the right side for which the collision must not be considered.
getRightCollisionOffset()
- Method in class com.genuts.gameui.
SpriteWrapper
Gets the offset on the right side for which the collision must not be considered.
getSequence()
- Method in class com.genuts.gameui.
ImageSequenceSprite
Gets the sequence image for this sprite.
getSleepTime()
- Method in class com.genuts.gameui.
PlayField
Returns the time delay between 2 ticks.
getSprite(int)
- Method in class com.genuts.gameui.
PlayField
Gets the n
th
sprite in this playfield.
getSpriteAt(int, int)
- Method in class com.genuts.gameui.
SpriteCollisionManager
Locates the first Sprite that contains the x,y position.
getSpriteAtCell(int, int)
- Method in class com.genuts.gameui.
SpriteCollisionManager
Locates the first Sprite which is contained in cell x,y of the array of sprites.
getSpriteCount()
- Method in class com.genuts.gameui.
PlayField
Gets the number of sprites in this playfield.
getSpriteIndex(Sprite)
- Method in class com.genuts.gameui.
PlayField
Returns the index of the given sprite in this playfield.
getText()
- Method in class com.genuts.gameui.
SpriteLabel
Gets the text of this label.
getTicks()
- Method in class com.genuts.gameui.
PlayField
Returns the number of ticks from the start of the this playfield.
getTopCollisionOffset()
- Method in class com.genuts.gameui.
Sprite
Gets the offset on the top side for which the collision must not be considered.
getTopCollisionOffset()
- Method in class com.genuts.gameui.
SpriteWrapper
Gets the offset on the top side for which the collision must not be considered.
getValue()
- Method in class com.genuts.gameui.
SpriteCounter
Gets the value of this counter.
getVerticalPicture()
- Method in class com.genuts.gameui.
ImageSequenceSprite
Returns the current vertical index of the displayed picture in the image.
getVerticalPictures()
- Method in class com.genuts.gameui.
SpriteImageCounter
Gets the number of pictures contained vertically in the image of digits.
getVerticalPicturesCount()
- Method in class com.genuts.gameui.
ImageSequenceSprite
Gets the number of pictures contained vertically in the sequence image.
getWidth()
- Method in class com.genuts.gameui.
Sprite
Gets the width of the sprite.
getWidth()
- Method in class com.genuts.gameui.
SpriteWrapper
Gets the width of the action sprite.
getWrapper()
- Method in class com.genuts.gameui.
Sprite
Gets the wrapper sprite of this sprite.
getX()
- Method in class com.genuts.gameui.
Sprite
Gets the X coordinate of the sprite.
getX()
- Method in class com.genuts.gameui.
SpriteWrapper
Gets the X coordinate of the action sprite.
getXOffset()
- Method in class com.genuts.gameui.
PlayField
Gets the X offset of the display image.
getY()
- Method in class com.genuts.gameui.
Sprite
Gets the Y coordinate of the sprite.
getY()
- Method in class com.genuts.gameui.
SpriteWrapper
Gets the Y coordinate of the action sprite.
getYOffset()
- Method in class com.genuts.gameui.
PlayField
Gets the Y offset of the display image.
I
ImageSequenceSprite
- class com.genuts.gameui.
ImageSequenceSprite
.
This sprite is a sequence of pictures from one image.
ImageSequenceSprite(Image, int, int)
- Constructor for class com.genuts.gameui.
ImageSequenceSprite
Initializes the sprite, with a sequence image.
initSprite()
- Method in class com.genuts.gameui.
SpriteCounter
Initializes the counter sprite.
initSprite()
- Method in class com.genuts.gameui.
SpriteImageCounter
initSprite()
- Method in class com.genuts.gameui.
SpriteLabel
Initializes the label sprite.
invalidate()
- Method in class com.genuts.gameui.
PlayField
Invalidates this playfield.
invalidate()
- Method in class com.genuts.gameui.
Sprite
Invalidates this sprite.
invalidate()
- Method in class com.genuts.gameui.
SpriteWrapper
Invalidates the action sprite.
invalidateSprite(Sprite)
- Method in interface com.genuts.gameui.
CollisionManager
Performs actions when a sprite is invalidate.
invalidateSprite(Sprite)
- Method in interface com.genuts.gameui.
DisplayManager
Performs actions when a sprite is invalidate.
invalidateSprite(Sprite)
- Method in class com.genuts.gameui.
PlayField
Invalidates a sprite for this playfield.
invalidateSprite(Sprite)
- Method in class com.genuts.gameui.
SpriteCollisionManager
invalidateSprite(Sprite)
- Method in class com.genuts.gameui.
SpriteDisplayManager
isBackgroundSprite()
- Method in class com.genuts.gameui.
Sprite
Is this sprite a piece of the background?
isBackgroundSprite()
- Method in class com.genuts.gameui.
SpriteWrapper
Is the action sprite a part of the background?
isDisplayAllDigits()
- Method in class com.genuts.gameui.
SpriteCounter
Indicates if all digits are displayed.
isPaused()
- Method in class com.genuts.gameui.
AnimatedSprite
Gets pause state for this animated sprite.
isPaused()
- Method in class com.genuts.gameui.
PlayField
Gets pause state for this playfield.
isPremode()
- Method in class com.genuts.gameui.
Sprite
Returns the pre-collision mode state for this sprite.
isPremode()
- Method in class com.genuts.gameui.
SpriteWrapper
Returns the pre-collision mode state for the action sprite.
isRunning()
- Method in class com.genuts.gameui.
PlayField
Indicates if the playfield is running or not.
isSequenceEnded()
- Method in class com.genuts.gameui.
ImageSequenceSprite
Indicates that the sequence loop ended.
isSequenceEnded()
- Method in class com.genuts.gameui.
SimpleAnimationSprite
Indicates if the animation for this object has ended.
isSequenceLoop()
- Method in class com.genuts.gameui.
ImageSequenceSprite
Is the sequence loops continously or stop on the last image?
isSpriteAt(int, int)
- Method in class com.genuts.gameui.
Sprite
Indicates if this sprite is under (x,y) coordinates.
isSpriteAt(int, int)
- Method in class com.genuts.gameui.
SpriteWrapper
Indicates if the action sprite is under (x,y) coordinates.
isValidate()
- Method in class com.genuts.gameui.
Sprite
Indicates if this sprite as been valideted by its parent.
isValidate()
- Method in class com.genuts.gameui.
SpriteWrapper
Indicates if the action sprite as been valideted by its parent.
isVisible()
- Method in class com.genuts.gameui.
Sprite
Indicates if the sprite is visible.
isVisible()
- Method in class com.genuts.gameui.
SpriteWrapper
Is the action sprite visible?
M
MovingPrecisionSpriteWrapper
- class com.genuts.gameui.
MovingPrecisionSpriteWrapper
.
Sprite wrapper with the ability to move with precision positions.
MovingPrecisionSpriteWrapper(Sprite)
- Constructor for class com.genuts.gameui.
MovingPrecisionSpriteWrapper
Initializes the moving precision sprite with an action sprite.
MovingSpriteWrapper
- class com.genuts.gameui.
MovingSpriteWrapper
.
Sprite wrapper with the ability to move.
MovingSpriteWrapper(Sprite)
- Constructor for class com.genuts.gameui.
MovingSpriteWrapper
Initializes the moving sprite with an action sprite.
move(int)
- Method in class com.genuts.gameui.
MovingSpriteWrapper
Moves the sprite as desired.
N
nextPicture()
- Method in class com.genuts.gameui.
ImageSequenceSprite
Changes the current displayed picture to the next one.
P
PlayField
- class com.genuts.gameui.
PlayField
.
A playfield is a Canvas Component that can contain Sprite objects.
PlayField(CollisionManager, DisplayManager, int, int)
- Constructor for class com.genuts.gameui.
PlayField
Initializes the playfield with a collision manager and a preferred size.
PlayField(CollisionManager)
- Constructor for class com.genuts.gameui.
PlayField
Initializes the simple playfield with a collision manager.
PlayField(DisplayManager)
- Constructor for class com.genuts.gameui.
PlayField
Initializes the simple playfield with a display manager.
PlayField(int, int)
- Constructor for class com.genuts.gameui.
PlayField
Initializes the playfield with a preferred size.
PlayField(CollisionManager, int, int)
- Constructor for class com.genuts.gameui.
PlayField
Initializes the playfield with a preferred size and a collision manager.
PlayField(DisplayManager, int, int)
- Constructor for class com.genuts.gameui.
PlayField
Initializes the playfield with a preferred size and a display manager.
PlayField()
- Constructor for class com.genuts.gameui.
PlayField
Initializes the simple playfield.
paint(Graphics)
- Method in class com.genuts.gameui.
DebugPlayField
Paints debugging informations on this playfield.
paint(Graphics)
- Method in interface com.genuts.gameui.
DisplayManager
Displays all visible elements of the playfield.
paint(Graphics)
- Method in class com.genuts.gameui.
ImageSequenceSprite
Draws the current picture for this sprite.
paint(Graphics)
- Method in class com.genuts.gameui.
PlayField
Paints this playfield and all visible sprites.
paint(Graphics)
- Method in class com.genuts.gameui.
SpotSprite
Paints the disk of the sprite.
paint(Graphics)
- Method in class com.genuts.gameui.
Sprite
Draws the sprite.
paint(Graphics)
- Method in class com.genuts.gameui.
SpriteDisplayManager
Displays all visible elements of the playfield.
paint(Graphics)
- Method in class com.genuts.gameui.
SpriteImageCounter
Paint this counter.
paint(Graphics)
- Method in class com.genuts.gameui.
SpriteLabel
Paint this label.
paint(Graphics)
- Method in class com.genuts.gameui.
SpriteWrapper
Paints the action sprite.
paintPlayField(Graphics)
- Method in class com.genuts.gameui.
DebugPlayField
Paints cells for collisions.
paintPlayField(Graphics)
- Method in class com.genuts.gameui.
PlayField
Paints this playfield.
playfieldSizeChanged()
- Method in interface com.genuts.gameui.
CollisionManager
Informs that the size of the playfield has changed.
playfieldSizeChanged()
- Method in interface com.genuts.gameui.
DisplayManager
Informs that the size of the playfield has changed.
playfieldSizeChanged()
- Method in class com.genuts.gameui.
SpriteCollisionManager
Informs that the size of the playfield has changed.
playfieldSizeChanged()
- Method in class com.genuts.gameui.
SpriteDisplayManager
Informs that the size of the playfield has changed.
preCheckCollision(Sprite)
- Method in interface com.genuts.gameui.
CollisionManager
Checks pre-collision of the given sprite with all other sprites in this playfield, and with the edges of this playfield.
preCheckCollision(Sprite)
- Method in class com.genuts.gameui.
PlayField
Checks pre-collision of the given sprite with all other sprites in this playfield, and with the edges of this playfield.
preCheckCollision(Sprite)
- Method in class com.genuts.gameui.
SpriteCollisionManager
preCollisionWith(Sprite)
- Method in class com.genuts.gameui.
Sprite
Receives the event that this sprite is in pre-collision with another sprite.
preCollisionWith(Sprite)
- Method in class com.genuts.gameui.
SpriteWrapper
Propagations of the pre-collision event to the action event.
previousPicture()
- Method in class com.genuts.gameui.
ImageSequenceSprite
Changes the current displayed picture to the previous one.
R
removeAllSprites()
- Method in class com.genuts.gameui.
PlayField
Removes all sprites from this playfield.
removeSprite(Sprite)
- Method in interface com.genuts.gameui.
CollisionManager
Removes a sprite from the check list of this collision manager.
removeSprite(Sprite)
- Method in interface com.genuts.gameui.
DisplayManager
Removes a sprite from the display list of this display manager.
removeSprite(int)
- Method in class com.genuts.gameui.
PlayField
Removes the sprite, specified by
index
, from this playfield.
removeSprite(Sprite)
- Method in class com.genuts.gameui.
PlayField
Removes the specified sprite from this playfield
removeSprite(Sprite)
- Method in class com.genuts.gameui.
SpriteCollisionManager
removeSprite(Sprite)
- Method in class com.genuts.gameui.
SpriteDisplayManager
removeTickable(Tickable)
- Method in class com.genuts.gameui.
PlayField
Removes a tickable object from this playfield.
repaint()
- Method in class com.genuts.gameui.
Sprite
Repaints this component.
repaint()
- Method in class com.genuts.gameui.
SpriteWrapper
Repaints the action component.
repaintCell(int, int)
- Method in class com.genuts.gameui.
SpriteDisplayManager
Repaints a cell and all sprites contained.
reset()
- Method in interface com.genuts.gameui.
CollisionManager
Resets cache datas for this CollisionManager.
reset()
- Method in interface com.genuts.gameui.
DisplayManager
Resets cache datas for this CollisionManager.
reset()
- Method in class com.genuts.gameui.
SpriteCollisionManager
reset()
- Method in class com.genuts.gameui.
SpriteDisplayManager
resetAnimation()
- Method in class com.genuts.gameui.
SimpleAnimationSprite
Reset the animation.
run()
- Method in class com.genuts.gameui.
PlayField
Used to send ticks.
S
SimpleAnimationSprite
- class com.genuts.gameui.
SimpleAnimationSprite
.
A simple animation sprite provides a sprite for an animated picture with several cycles of animation.
SimpleAnimationSprite(Image, int, int, int)
- Constructor for class com.genuts.gameui.
SimpleAnimationSprite
Initializes the sprite, with an animation image with one cycle of animation.
SimpleAnimationSprite(Image, int, int, int, int)
- Constructor for class com.genuts.gameui.
SimpleAnimationSprite
Initializes the sprite, with an animation image with several animations cycles.
SpotSprite
- class com.genuts.gameui.
SpotSprite
.
This sprite is a pink disk, it is only used in
TraceSpriteWrapper
SpotSprite(int, int)
- Constructor for class com.genuts.gameui.
SpotSprite
Initializes the sprite.
Sprite
- class com.genuts.gameui.
Sprite
.
A sprite is an object having a graphical representation that have its own behavior.
Sprite()
- Constructor for class com.genuts.gameui.
Sprite
Initialize a simple sprite.
Sprite(int, int)
- Constructor for class com.genuts.gameui.
Sprite
Initializes the sprite with a size.
Sprite(Image)
- Constructor for class com.genuts.gameui.
Sprite
Initializes the sprite with an image.
SpriteCollisionManager
- class com.genuts.gameui.
SpriteCollisionManager
.
The sprite collision manager checks collisions in the general case for sprites.
SpriteCollisionManager(int)
- Constructor for class com.genuts.gameui.
SpriteCollisionManager
Initializes this collision manager with a collision step.
SpriteCounter
- class com.genuts.gameui.
SpriteCounter
.
This object is for representation of all counter types such player's score.
SpriteCounter()
- Constructor for class com.genuts.gameui.
SpriteCounter
Initializes the counter.
SpriteCounter(int)
- Constructor for class com.genuts.gameui.
SpriteCounter
Initializes the counter with a specified number of digits to display.
SpriteDisplayManager
- class com.genuts.gameui.
SpriteDisplayManager
.
This display manager draws efficiently sprites in the playfield.
SpriteDisplayManager(int)
- Constructor for class com.genuts.gameui.
SpriteDisplayManager
Initializes this display manager with a display step.
SpriteImageCounter
- class com.genuts.gameui.
SpriteImageCounter
.
This object is for representation of all counter type such player's score with an image.
SpriteImageCounter(Image, int, int)
- Constructor for class com.genuts.gameui.
SpriteImageCounter
Initializes the counter with an image of digits.
SpriteImageCounter(Image, int, int, int)
- Constructor for class com.genuts.gameui.
SpriteImageCounter
Initializes the counter with an image of digits and a specified number of digits to display.
SpriteLabel
- class com.genuts.gameui.
SpriteLabel
.
A Label object is a sprite for placing text in a playfield.
SpriteLabel(String)
- Constructor for class com.genuts.gameui.
SpriteLabel
Initializes the label.
SpriteWrapper
- class com.genuts.gameui.
SpriteWrapper
.
This Sprite is a special sprite, its goal is only to wrap another Sprite Object.
SpriteWrapper()
- Constructor for class com.genuts.gameui.
SpriteWrapper
Initializes a default wrapper sprite.
SpriteWrapper(Sprite)
- Constructor for class com.genuts.gameui.
SpriteWrapper
Initializes the wrapper sprite.
sendTicks()
- Method in class com.genuts.gameui.
PlayField
Send a tick to all tickable objects in this playfield.
sequenceEnded()
- Method in class com.genuts.gameui.
ImageSequenceSprite
Indicates that the sequence ended.
sequenceEnded()
- Method in class com.genuts.gameui.
SimpleAnimationSprite
Indicate that all cycles of the animation are ended.
setActionSprite(Sprite)
- Method in class com.genuts.gameui.
MovingPrecisionSpriteWrapper
Sets the action sprite.
setActionSprite(Sprite)
- Method in class com.genuts.gameui.
SpriteWrapper
Sets the action sprite.
setBackground(int)
- Method in class com.genuts.gameui.
PlayField
Sets the background color for this sprite.
setBackground(int)
- Method in class com.genuts.gameui.
Sprite
Sets the background color for this sprite.
setBackground(int)
- Method in class com.genuts.gameui.
SpriteWrapper
Sets the background color for the action sprite.
setBackgroundImage(Image)
- Method in class com.genuts.gameui.
PlayField
Sets the background image for this playfield.
setBackgroundSprite(boolean)
- Method in class com.genuts.gameui.
Sprite
Sets if this sprite is a piece of the background.
setBackgroundSprite(boolean)
- Method in class com.genuts.gameui.
SpriteWrapper
Sets if the action sprite a part of the background.
setBaseline(int)
- Method in class com.genuts.gameui.
SpriteLabel
Sets the baseline for this label.
setBottomCollisionOffset(int)
- Method in class com.genuts.gameui.
Sprite
Sets the offset on the bottom side for which the collision must not be considered.
setBottomCollisionOffset(int)
- Method in class com.genuts.gameui.
SpriteWrapper
Sets the offset on the bottom side for which the collision must not be considered.
setBounds(int, int, int, int)
- Method in class com.genuts.gameui.
Sprite
Moves and resizes this sprite to conform to the new bounding rectangle.
setBounds(int, int, int, int)
- Method in class com.genuts.gameui.
SpriteWrapper
Moves and resizes this action sprite to conform to the new bounding rectangle.
setCollisionManager(CollisionManager)
- Method in class com.genuts.gameui.
PlayField
Sets the collision manager for this playfield.
setCollisionStep(int)
- Method in class com.genuts.gameui.
SpriteCollisionManager
Sets the collision step check of this collision manager.
setColor(int)
- Method in class com.genuts.gameui.
SpriteLabel
Sets the color for this label.
setCurrentPictureNumber(int)
- Method in class com.genuts.gameui.
ImageSequenceSprite
Sets the current picture position in the image sequence.
setCurrentRemindTick(int)
- Method in class com.genuts.gameui.
AnimatedSprite
Sets the number of ticks to way before the next picture will be displayed.
setCycles(int)
- Method in class com.genuts.gameui.
SimpleAnimationSprite
Sets the number of cycles for this animation.
setDigitsCount(int)
- Method in class com.genuts.gameui.
SpriteCounter
Sets the number of digits to display.
setDigitsImage(Image, int, int)
- Method in class com.genuts.gameui.
SpriteImageCounter
Sets the image of digits for this counter.
setDisplayAllDigits(boolean)
- Method in class com.genuts.gameui.
SpriteCounter
Are all digits displayed?
setDisplayManager(DisplayManager)
- Method in class com.genuts.gameui.
PlayField
Sets the display manager for this playfield.
setDisplayStep(int)
- Method in class com.genuts.gameui.
SpriteDisplayManager
Sets the display step check of this display manager.
setDoneCycles(int)
- Method in class com.genuts.gameui.
SimpleAnimationSprite
Sets the number of done cycles for this animation.
setFont(Font)
- Method in class com.genuts.gameui.
SpriteLabel
Gets the font for this label.
setFrequence(int)
- Method in class com.genuts.gameui.
AnimatedSprite
Sets the number of ticks to wait between two pictures of the animation.
setHorizontalPicture(int)
- Method in class com.genuts.gameui.
ImageSequenceSprite
Sets the current horizontal index of the displayed picture in the image.
setId(int)
- Method in class com.genuts.gameui.
Sprite
Sets this sprite's id.
setId(int)
- Method in class com.genuts.gameui.
SpriteWrapper
Sets the action sprite's id.
setImage(Image)
- Method in class com.genuts.gameui.
Sprite
Sets the image for this sprite.
setImage(Image)
- Method in class com.genuts.gameui.
SpriteWrapper
Sets the image for the action sprite.
setLeftCollisionOffset(int)
- Method in class com.genuts.gameui.
Sprite
Sets the offset on the left side for which the collision must not be considered.
setLeftCollisionOffset(int)
- Method in class com.genuts.gameui.
SpriteWrapper
Sets the offset on the left side for which the collision must not be considered.
setMaximumValue(int)
- Method in class com.genuts.gameui.
SpriteCounter
Sets the maximum value for this counter.
setOffset(int, int)
- Method in class com.genuts.gameui.
PlayField
Sets the paint offset of the display image.
setParent(PlayField)
- Method in class com.genuts.gameui.
SimpleAnimationSprite
Sets the parent playfield of this sprite.
setParent(PlayField)
- Method in class com.genuts.gameui.
Sprite
Sets the parent playfield of this sprite.
setParent(PlayField)
- Method in class com.genuts.gameui.
SpriteLabel
setParent(PlayField)
- Method in class com.genuts.gameui.
SpriteWrapper
Sets the parent playfield of the action sprite.
setParent(PlayField)
- Method in class com.genuts.gameui.
TraceSpriteWrapper
setPause(boolean)
- Method in class com.genuts.gameui.
AnimatedSprite
Sets pause state for this animated sprite.
setPause(int)
- Method in class com.genuts.gameui.
PlayField
Sets pause state for this playfield during n cycles.
setPause(boolean)
- Method in class com.genuts.gameui.
PlayField
Sets pause state for this playfield.
setPlayfield(PlayField)
- Method in interface com.genuts.gameui.
CollisionManager
Sets the playfield associated with this collision manager.
setPlayfield(PlayField)
- Method in interface com.genuts.gameui.
DisplayManager
Sets the playfield associated with this display manager.
setPlayfield(PlayField)
- Method in class com.genuts.gameui.
SpriteCollisionManager
setPlayfield(PlayField)
- Method in class com.genuts.gameui.
SpriteDisplayManager
setPosition(int, int)
- Method in class com.genuts.gameui.
MovingPrecisionSpriteWrapper
Sets the position of the action sprite in the playfield.
setPosition(int, int)
- Method in class com.genuts.gameui.
Sprite
Sets the position of this sprite in the playfield.
setPosition(int, int)
- Method in class com.genuts.gameui.
SpriteWrapper
Sets the position of the action sprite in the playfield.
setPrecision(int)
- Method in class com.genuts.gameui.
MovingPrecisionSpriteWrapper
Sets the precision value of the object.
setPrecisionPosition(int, int)
- Method in class com.genuts.gameui.
MovingPrecisionSpriteWrapper
Sets the position of the action sprite in the playfield with
int
type values.
setPreferredSize(int, int)
- Method in class com.genuts.gameui.
PlayField
Sets the preferred size for this playfield.
setPremode(boolean)
- Method in class com.genuts.gameui.
Sprite
Sets the pre-collision mode for this sprite.
setPremode(boolean)
- Method in class com.genuts.gameui.
SpriteWrapper
Sets the pre-collision mode for the action sprite.
setRightCollisionOffset(int)
- Method in class com.genuts.gameui.
Sprite
Sets the offset on the right side for which the collision must not be considered.
setRightCollisionOffset(int)
- Method in class com.genuts.gameui.
SpriteWrapper
Sets the offset on the right side for which the collision must not be considered.
setSequence(Image, int, int)
- Method in class com.genuts.gameui.
ImageSequenceSprite
Sets the pictures seqeunce for this sprite.
setSequenceEnded(boolean)
- Method in class com.genuts.gameui.
ImageSequenceSprite
Sets if the sequence loop ended.
setSequenceLoop(boolean)
- Method in class com.genuts.gameui.
ImageSequenceSprite
Sets if the sequence loops or stop on the last image.
setSize(int, int)
- Method in class com.genuts.gameui.
Sprite
Sets the size of this sprite.
setSize(int, int)
- Method in class com.genuts.gameui.
SpriteWrapper
Sets the size of the action sprite.
setSleepTime(int)
- Method in class com.genuts.gameui.
PlayField
Sets the time delay between 2 ticks.
setText(String)
- Method in class com.genuts.gameui.
SpriteLabel
Sets the text for this label.
setTicks(int)
- Method in class com.genuts.gameui.
PlayField
Sets the number of ticks from the start of the this playfield.
setTopCollisionOffset(int)
- Method in class com.genuts.gameui.
Sprite
Sets the offset on the top side for which the collision must not be considered.
setTopCollisionOffset(int)
- Method in class com.genuts.gameui.
SpriteWrapper
Sets the offset on the top side for which the collision must not be considered.
setValue(int)
- Method in class com.genuts.gameui.
SpriteCounter
Sets the value of this counter.
setVerticalPicture(int)
- Method in class com.genuts.gameui.
ImageSequenceSprite
Sets the current vertical index of the displayed picture in the image.
setVisible(boolean)
- Method in class com.genuts.gameui.
Sprite
Sets if the sprite is visible.
setVisible(boolean)
- Method in class com.genuts.gameui.
SpriteWrapper
Sets if the action sprite is visible.
setWrapper(SpriteWrapper)
- Method in class com.genuts.gameui.
Sprite
Sets the wrapper sprite of this sprite.
stop()
- Method in class com.genuts.gameui.
PlayField
Stops explicitly the execution of this playfield.
subValue(int)
- Method in class com.genuts.gameui.
SpriteCounter
Subs a value to the value of this counter.
T
Tickable
- interface com.genuts.gameui.
Tickable
.
When an object need to receive a tick, it has to implement this interface, and the playfield will call its method every ticks.
TraceSpriteWrapper
- class com.genuts.gameui.
TraceSpriteWrapper
.
Still in development.
TraceSpriteWrapper(Sprite)
- Constructor for class com.genuts.gameui.
TraceSpriteWrapper
tick(int)
- Method in class com.genuts.gameui.
AnimatedSprite
Receives a tick from the playfield to animate picture.
tick(int)
- Method in class com.genuts.gameui.
MovingSpriteWrapper
Commands to delagate the moving action to
move(int)
.
tick(int)
- Method in class com.genuts.gameui.
SpriteWrapper
Propagations of the tick event to the action event if it is an instance of
Tickable
.
tick(int)
- Method in interface com.genuts.gameui.
Tickable
The object receives a tick as desired.
tick(int)
- Method in class com.genuts.gameui.
TraceSpriteWrapper
toString()
- Method in class com.genuts.gameui.
Sprite
Returns a string representation of this Sprite.
U
update(Graphics)
- Method in class com.genuts.gameui.
PlayField
Overrides update to not erase the background before painting.
V
validate()
- Method in class com.genuts.gameui.
PlayField
Validates this playfield.
validate()
- Method in class com.genuts.gameui.
Sprite
Validates this sprite by its parent.
validate()
- Method in class com.genuts.gameui.
SpriteWrapper
Validates the action sprite by its parent.
validateSprite(Sprite)
- Method in interface com.genuts.gameui.
CollisionManager
Performs actions when a sprite is validate.
validateSprite(Sprite)
- Method in interface com.genuts.gameui.
DisplayManager
Performs actions when a sprite is validate.
validateSprite(Sprite)
- Method in class com.genuts.gameui.
PlayField
Validates a sprite for this playfield.
validateSprite(Sprite)
- Method in class com.genuts.gameui.
SpriteCollisionManager
validateSprite(Sprite)
- Method in class com.genuts.gameui.
SpriteDisplayManager
A
C
D
F
G
I
M
N
P
R
S
T
U
V
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes