group1.view
Class Sprite

java.lang.Object
  extended by group1.view.Sprite

public class Sprite
extends java.lang.Object


Constructor Summary
Sprite()
          The default constructor
Sprite(java.awt.Rectangle r)
          The constructor given boundaries
 
Method Summary
 void addImage(javax.swing.ImageIcon i)
           
static void main(java.lang.String[] args)
          The main method is just for testing purposes
 javax.swing.ImageIcon nextPicture()
          This method returns the next picture in the animation order, and updates the currentPicture
 void setBoundaries(int x, int y, int width, int height)
           
 void setBoundaries(java.awt.Rectangle r)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sprite

public Sprite()
The default constructor


Sprite

public Sprite(java.awt.Rectangle r)
The constructor given boundaries

Parameters:
r -
Method Detail

setBoundaries

public void setBoundaries(java.awt.Rectangle r)

setBoundaries

public void setBoundaries(int x,
                          int y,
                          int width,
                          int height)

addImage

public void addImage(javax.swing.ImageIcon i)

nextPicture

public javax.swing.ImageIcon nextPicture()
This method returns the next picture in the animation order, and updates the currentPicture

Returns:

main

public static void main(java.lang.String[] args)
The main method is just for testing purposes

Parameters:
args -