/// <summary> /// Default constructor /// </summary> public Unit() { DisplayName = new SUEString(); ModelName = new SUEString(); ClassName = new SUEString(); Flag1Or3 = 1; // Default to 1, because most units are 1 CanBuyFlag = 0; Cost = 0; GasTank = 0; Speed = 0; AttackRange = 0; IsIndirect = 0; IsSingleUse = 0; IsNotKept = 0; FlagZero = 0; Vision = 0; AirAttack = 0; ArmorAttack = 0; InfAttack = 0; Defense = 0; CollateralDamage = 0; HitPoints = 0; Flag2Zero = 0; Flag803F = 0; MoveCat = UnitMovementClass.Footl; // Default to first UnitMovementClass value UnitCat = UnitArmorClass.Air; // Default to the first UnitArmorClass value UnkFlag1 = 0; Faction = UnitFaction.NEA; // Default to first UnitFaction value UnkFlag2 = 0; UnkFlag3 = 0; }
// Constructors public Unit(SUEString dn) : this() { DisplayName = new SUEString(dn); }