Add Animation class and fix MapObject error.