added class identifier with get_type function, types are NONE, HQ, TURRET, UNIT, starting from 0