made UnitOrHeroDefinition class public