示例#1
0
        public void initNewData()
        {
            //erster Debugtype
            clsUnitType newType = new clsUnitType();
            newType.strBez = "böhmische Dragonerschwadron";
            newType.intMovement = 2;
            newType.intSichtweite = 1;

            this.Add(newType);
        }
示例#2
0
 public clsSubUnit(clsUnitType objUnitType, int ID)
 {
     this.ID = ID;
     this.m_objUnitType = objUnitType;
 }
 public int UnitType_addNew(clsUnitType newUnit)
 {
     return clsUnit.objUnitTypeFountain.addNewType(newUnit);
 }
示例#4
0
        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);
        }
示例#5
0
文件: clsUnit.cs 项目: hche/GCML
 public clsUnit(clsUnitType UnitType)
 {
     init(Guid.NewGuid().ToString(), UnitType);
 }
示例#6
0
文件: clsUnit.cs 项目: hche/GCML
 public clsUnit(string unitId, clsUnitType UnitType)
 {
     init(unitId, UnitType);
 }
示例#7
0
文件: clsUnit.cs 项目: hche/GCML
 public clsUnit(string unitId, int intUnitTypeID)
 {
     m_strId = unitId;
     m_objUnitType = objUnitTypeFountain.getUnitType(intUnitTypeID);
     m_strBezeichnung = UnitType.strBez + " " + unitId.ToString();
 }
示例#8
0
文件: clsUnit.cs 项目: hche/GCML
 private void init(string unitId, clsUnitType UnitType)
 {
     m_strId = unitId;
     m_objUnitType = UnitType;
     m_strBezeichnung = UnitType.strBez + " " + unitId.ToString();
 }
示例#9
0
 public int Add(clsUnitType testtyp)
 {
     int index = dicUnitTypeData.Count;
     dicUnitTypeData.Add(index.ToString(), testtyp);
     return index;
 }