Animation class is now used.

The animation used for units is now defined in the xml file.