Genuts API

com.genuts.gameui
Class LCDSimplePictureSprite

java.lang.Object
  |
  +--com.genuts.gameui.Sprite
        |
        +--com.genuts.gameui.ImageSequenceSprite
              |
              +--com.genuts.gameui.LCDSimplePictureSprite

public class LCDSimplePictureSprite
extends ImageSequenceSprite

This object is the representation of a part of an LCDSprite when the continuity is enabled.

See Also:
LCDSprite.setContinuity(boolean)

Constructor Summary
LCDSimplePictureSprite(java.awt.Image seq, int nbh, int nbv, int n, int x, int y)
          Initializes the sprite, with an sequence image.
 
Methods inherited from class com.genuts.gameui.ImageSequenceSprite
getCurrentPictureNumber, getHorizontalPicture, getHorizontalPicturesCount, getPicturesCount, getSequence, getVerticalPicture, getVerticalPicturesCount, isSequenceEnded, isSequenceLoop, nextPicture, paint, previousPicture, sequenceEnded, setCurrentPictureNumber, setHorizontalPicture, setSequence, setSequenceEnded, setSequenceLoop, setVerticalPicture
 
Methods inherited from class com.genuts.gameui.Sprite
checkCollision, collisionWith, getActionSprite, getBackground, getBottomCollisionOffset, getBounds, getFinalActionSprite, getFinalWrapper, getHeight, getId, getImage, getLeftCollisionOffset, getParent, getPosition, getRightCollisionOffset, getSize, getTopCollisionOffset, getWidth, getWrapper, getX, getY, invalidate, isBackgroundSprite, isPremode, isSpriteAt, isValidate, isVisible, preCollisionWith, repaint, setBackground, setBackgroundSprite, setBottomCollisionOffset, setBounds, setBounds, setId, setImage, setLeftCollisionOffset, setParent, setPosition, setPremode, setRightCollisionOffset, setSize, setTopCollisionOffset, setVisible, setWrapper, toString, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LCDSimplePictureSprite

public LCDSimplePictureSprite(java.awt.Image seq,
                              int nbh,
                              int nbv,
                              int n,
                              int x,
                              int y)
Initializes the sprite, with an sequence image.
The image is composed with all pictures of the sequence.

Parameters:
seq - An image containing all pictures of the sequence.
nbh - Horizontaly number of pictures in the image.
nbv - Verticaly number of pictures in the image.
n - The current picture position in the sequence.
x - X position for this picture.
y - Y position for this picture.

Genuts API

Genuts API