示例#1
0
 public UnitTrans(HmFriend pForm, HmFriend pLatt, Godirum pGod)
 {
     mForm = pForm;
     mLatt = pLatt;
     mGod  = pGod;
     Show();
 }
示例#2
0
    public void SetItemInt(int pVal, Vector3 pAe)   // 35
    {
        HmEquation nObj = new HmEquation();

        arrItem.Add(nObj);

        nObj.mJarisoo = pVal.Jarisoo();
        (" HmEquation :: SetItemInt   >> jari = " + nObj.mJarisoo).HtLog();

        for (int k = 0; k < nObj.mJarisoo; k++)
        {
            HmFriend obj = new HmFriend(pVal.NthNum(k), new Vector3(pAe.x + k * JJ.mgWidthOfFriend, pAe.y, pAe.z));
            (" HmEquation :: SetItemInt  >>>>  Add Unit Number   " + obj.mName).HtLog();
            nObj.arrItem.Add(obj);
        }
    }
示例#3
0
    public override void Transform()
    {
        Ag.LogString("  HmEquation :: Transform   !! arrItem Num :: " + arrItem.Count);
        if (!IsUnitEquation())
        {
            Ag.LogString("  HmEquation :: Transform   I'm NOT UnitEquation   iteration arrItem..  >>>>>  ");
            foreach (MpsModel item in arrItem)
            {
                item.Transform();
            }
            return;
        }

        Ag.LogString("  HmEquation :: Transform   I'm UnitEquation   iteration arrItem.. ");   // Unit Equation Case ..

        Godirum curGod = CurrentGod();
        int     max    = MaxJarisu();

        switch (curGod)
        {
        case Godirum.PLU:
            for (int j = 0; j < max; j++)
            {
                HmFriend  latt = (HmFriend)((HmEquation)arrItem[2]).GetFriend(j);
                UnitTrans unit = new UnitTrans(((HmEquation)arrItem[0]).GetFriend(j), latt, ((HmGod)arrItem[1]).mIrum);

                // Set Position
                unit.SetResultPosi(latt.arrJinsim[0].transform.position);

                // Over 10 case ... Ceremony ... >>>


                arrTransUnit.Add(unit);
            }
            break;

        case Godirum.MUL:

            break;
        }
    }
示例#4
0
 public HmJinsimManager(Godirum pGod, HmFriend pForm, HmFriend pLatt)
 {
     mGod  = pGod;
     mForm = pForm;
     mLatt = pLatt;
 }
示例#5
0
    // 35
    public void SetItemInt(int pVal, Vector3 pAe)
    {
        HmEquation nObj = new HmEquation ();
        arrItem.Add (nObj);

        int jari = pVal.Jarisoo ();
        (" HmEquation :: SetItemInt   >> jari = " + jari).HtLog ();

        for (int k=0; k<jari; k++) {
            HmFriend obj = new HmFriend(pVal.NthNum(k), new Vector3(pAe.x + k * Cns.mgWidthOfFriend, pAe.y, pAe.z) );
            (" HmEquation :: SetItemInt  >>>>  Add Unit Number   " + obj.mName).HtLog();
            nObj.arrItem.Add(obj);
        }
    }
示例#6
0
 public UnitTrans(HmFriend pForm, HmFriend pLatt, Godirum pGod)
 {
     mForm = pForm;
     mLatt = pLatt;
     mGod = pGod;
     Show ();
 }
示例#7
0
 public HmJinsimManager(Godirum pGod, HmFriend pForm, HmFriend pLatt)
 {
     mGod = pGod;
     mForm = pForm;
     mLatt = pLatt;
 }