Added support to tell whether an enemy sprite is a boss.

I also revised the API a little.