public void initNewData() { //erster Debugtype clsUnitType newType = new clsUnitType(); newType.strBez = "böhmische Dragonerschwadron"; newType.intMovement = 2; newType.intSichtweite = 1; this.Add(newType); }
public clsSubUnit(clsUnitType objUnitType, int ID) { this.ID = ID; this.m_objUnitType = objUnitType; }
public int UnitType_addNew(clsUnitType newUnit) { return clsUnit.objUnitTypeFountain.addNewType(newUnit); }
public void createNewUnitAndRegister(Player owner, clsUnitType newUnitType, Sektor targetSektor) { clsUnit newUnit = new clsUnit(newUnitType); newUnit.strOwnerID = owner.Id; owner.ListUnits.Add(newUnit); targetSektor.addUnit(newUnit); this.onTick += new delTick(newUnit.CampaignController_onTick); }
public clsUnit(clsUnitType UnitType) { init(Guid.NewGuid().ToString(), UnitType); }
public clsUnit(string unitId, clsUnitType UnitType) { init(unitId, UnitType); }
public clsUnit(string unitId, int intUnitTypeID) { m_strId = unitId; m_objUnitType = objUnitTypeFountain.getUnitType(intUnitTypeID); m_strBezeichnung = UnitType.strBez + " " + unitId.ToString(); }
private void init(string unitId, clsUnitType UnitType) { m_strId = unitId; m_objUnitType = UnitType; m_strBezeichnung = UnitType.strBez + " " + unitId.ToString(); }
public int Add(clsUnitType testtyp) { int index = dicUnitTypeData.Count; dicUnitTypeData.Add(index.ToString(), testtyp); return index; }