Moved the getSpriteIndex function to ThingType.
Moved the getTextureIndex to ThingType.