fang
Interface Bounceable

All Known Implementing Classes:
ProjectileTracker, ProjectileTransformer

public interface Bounceable


Method Summary
 void bounce(Sprite current, Sprite other)
          makes the current sprite bounce off of the other sprite.
 

Method Detail

bounce

void bounce(Sprite current,
            Sprite other)
makes the current sprite bounce off of the other sprite. Calling this method has no effect on the sprite other, but may have the effect of changing the tracker of current.

Parameters:
current - the sprite that may change direction due to bouncing off of other
other - the sprite that is used to determine if current should bounce