A classification of classical billiard trajectories