/****************************************************
 *    6.837 Project 1:  Sprite-based Applets        *
 *    Created by:  Rielyn Sarabia                   *
 *    September 28, 1998                            *
 ****************************************************/


package project1;

class Frame {
  //Frame contains all the information relevant to a particular frame in a 
  //track used by the class AnimatedSprite.

  //private variables:
  private int frameNum;  //number of the frame
  private int ticks;     //number of tick periods to display the frame
  private int dx;        //change in x-axis for next frame in track
  private int dy;        //change in y-axis for next frame in track

  public Frame () {}  //empty constructor

  public Frame (int frame, int ticks, int dx, int dy) {
    //constructor to initialize all private variables
    frameNum = frame;
    this.ticks = ticks;
    this.dx = dx;
    this.dy = dy;
  }
  
  public int getFrameNum () {
    //returns the number of this frame
    return frameNum;
  }

  public int getTicks () {
    //returns the number of ticks this frame is to be displayed
    return ticks;
  } 

  public int getDx () {
    //returns the change in x for the next frame
    return dx;
  }

  public int getDy () {
    //returns the change in y for the next frame
    return dy;
  }

}
