public void play(String animationName)
  {
    this.isPlaying = true;
    this.currentFrames = (int[])animations.get(animationName);
    this.currentAnimationFrame = 0;
    this.currentFrame = currentFrames[0];
  }