001 package fang;
002
003
004 public interface Bounceable
005 {
006 /**
007 * makes the current sprite bounce off of the
008 * other sprite. Calling this method has no
009 * effect on the sprite other, but may have the
010 * effect of changing the tracker of current.
011 * @param current the sprite that may change
012 * direction due to bouncing off of other
013 * @param other the sprite that is used to
014 * determine if current should bounce
015 */
016 public void bounce(Sprite current, Sprite other);
017 }