コード例 #1
0
ファイル: MpsObjects.cs プロジェクト: JamesTTMoon/Mps3ft
 public UnitTrans(HmFriend pForm, HmFriend pLatt, Godirum pGod)
 {
     mForm = pForm;
     mLatt = pLatt;
     mGod  = pGod;
     Show();
 }
コード例 #2
0
    public void SetProperty(Godirum pGod, bool pIsForm, Vector3 pFinPosi, Vector3 pFinRot, float pLimitMilSec = 2000)
    {
        mGod      = pGod;
        mIsFormer = pIsForm;
        mFinPosi  = pFinPosi;
        mFinRot   = pFinRot;

        switch (mGod)
        {
        case Godirum.PLU:
            mRotValue = new Vector3(0, 0, 0.01f);
            break;

        case Godirum.MUL:
            int ranN = AgUtil.RandomInclude(30, 50);
            if (mIsFormer)
            {
                mRotValue = new Vector3(0, 0, ranN * 0.01f);
            }
            else
            {
                mRotValue = new Vector3(0, 0, -ranN * 0.002f);
            }
            break;
        }

        mLimit = pLimitMilSec;
    }
コード例 #3
0
    //  ////////////////////////////////////////////////    Creation ...
    public MdFormatter(int pForm, int pLatt, Godirum pGod)
    {
        mGod = pGod;
        mFm  = new MdIntObj(pForm, true, pGod);
        mLt  = new MdIntObj(pLatt, true, pGod);

        InitGenerateChubang();
    }
コード例 #4
0
ファイル: MpsObjects.cs プロジェクト: JamesTTMoon/Mps3ft
    public HmGod(Godirum pIrum)
    {
        mIrum = pIrum;

        // Create Position Setting...
        manInitAe = new Vector3(0, 0, 0);
        manDora   = new Vector3(0, 0, 180);

        mRsrcMan.SetInstantComPrefab("God", this);
    }
コード例 #5
0
    //  ////////////////////////////////////////////////    Simple Sub Methods ...

    public void AddSimpleOperation(int pF, int pL, Godirum pGod)   // 35 78 Plus ...
    {
        Ag.LogIntense(3, true);
        (" HmEquation :: AddSimpleOperation  " + pF + "  " + pGod.ToString() + "  " + pL).HtLog();
        SetItemInt(pF, new Vector3(-7, 0, 0));    // Equa, God, Equa...
        SetGod(pGod, new Vector3(0, 0, 0));
        SetItemInt(pL, new Vector3(7, 0, 0));
        (" HmEquation :: AddSimpleOperation  ___________ End ").HtLog();
        Ag.LogIntense(3, false);
    }
コード例 #6
0
ファイル: MpsObjects.cs プロジェクト: JamesTTMoon/Mps3ft
    public HmGod(Godirum pIrum)
    {
        mIrum = pIrum;

        // Create Position Setting...
        manInitAe = new Vector3 (0, 0, 0);
        manDora = new Vector3 (0, 0, 180);

        mRsrcMan.SetInstantComPrefab("God", this);
    }
コード例 #7
0
    List<MpsModel> arrItem = new List<MpsModel>(); // 23 + 43 * 2 ...

    #endregion Fields

    #region Methods

    // 35 78 Plus ...
    //  ////////////////////////////////////////////////    Simple Sub Methods ...
    public void AddSimpleOperation(int pF, int pL, Godirum pGod)
    {
        Ag.LogIntense (3, true);
        (" HmEquation :: AddSimpleOperation  " + pF + "  " + pGod.ToString () + "  " + pL).HtLog ();
        SetItemInt (pF, new Vector3(-7, 0, 0) );
        SetGod (pGod, new Vector3 (0, 0, 0));
        SetItemInt (pL, new Vector3 (7, 0, 0));
        (" HmEquation :: AddSimpleOperation  ___________ End ").HtLog();
        Ag.LogIntense (3, false);
    }
コード例 #8
0
    public GameObject SetGod(Godirum  pGod)
    {
        GameObject theGod = null;
        switch (pGod) {
        case Godirum.PLU:
            theGod = mRscrcMan.GetComPrefab("", "PLUS"); // Friends Show
            theGod.transform.position =  new Vector3 (1, 9, 0);
            //theGod.transform.Rotate(new Vector3(0, 0, 180 ));

            break;
        }
        return theGod;
    }
コード例 #9
0
ファイル: ExtMpsRlted.cs プロジェクト: JamesTTMoon/Mps3ft
 public static int DoCalculate(this int pThis, int pThat, Godirum pGod)
 {
     //(" Do Calcuate :: " + pThat + "  ,  " + pThat).HtLog ();
     switch (pGod) {
     case Godirum.PLU:
         return pThis + pThat;
     case Godirum.MUL:
         return pThis * pThat;
     case Godirum.MIN:
         return pThis - pThat;
     }
     return 0;
 }
コード例 #10
0
ファイル: MpsOperator.cs プロジェクト: JamesTTMoon/Mps3ft
 public void SetGod(Godirum pGod)
 {
     if (mForm != null)
         mForm.GetComponent<HtIndvBase> ().SetGod (pGod);
     if (mLatt != null)
         mLatt.GetComponent<HtIndvBase> ().SetGod (pGod);
     if (mHon != null)
         mHon.GetComponent<HtIndvBase> ().SetGod (pGod);
     foreach (GameObject obj in arrJsObj) {
         obj.GetComponent<HtIndvBase> ().SetGod (pGod);
     }
     foreach (GameObject obj in arrEyeObj) {
         obj.GetComponent<HtIndvBase> ().SetGod (pGod);
     }
 }
コード例 #11
0
    public GameObject SetGod(Godirum pGod)
    {
        GameObject theGod = null;

        switch (pGod)
        {
        case Godirum.PLU:
            theGod = mRscrcMan.GetComPrefab("", "PLUS"); // Friends Show
            theGod.transform.position = new Vector3(1, 9, 0);
            //theGod.transform.Rotate(new Vector3(0, 0, 180 ));

            break;
        }
        return(theGod);
    }
コード例 #12
0
ファイル: ExtMpsRlted.cs プロジェクト: JamesTTMoon/Mps3ft
    public static int DoCalculate(this int pThis, int pThat, Godirum pGod)
    {
        //(" Do Calcuate :: " + pThat + "  ,  " + pThat).HtLog ();
        switch (pGod)
        {
        case Godirum.PLU:
            return(pThis + pThat);

        case Godirum.MUL:
            return(pThis * pThat);

        case Godirum.MIN:
            return(pThis - pThat);
        }
        return(0);
    }
コード例 #13
0
    //  ////////////////////////////////////////////////    Creation ...
    public MdIntObj(int pValue, bool pIsTotal, Godirum pGod)  // 10 , 5 , ...
    {
        // MdIntObj intObj = new MdIntObj (1045, true);  1000, 0, 40, 5 ...
        //("MdIntObj :: MdIntObj   " + pValue + " ,  Total ? " + pIsTotal).HtLog ();
        mTotalValue = pValue;
        mGod        = pGod;
        if (!pIsTotal)
        {
            return;
        }
        arrIntObj = new List <MdIntObj> ();
        int jarisoo = pValue.Jarisoo(), cur10e = jarisoo;

        for (int k = 0; k < jarisoo; k++)
        {
            int curN = pValue.NthNum(k);
            arrIntObj.Add(new MdIntObj((int)(curN * Math.Pow(10, --cur10e)), false, pGod));
        }
        //(" arrIntObj  count " + arrIntObj.Count).HtLog ();
    }
コード例 #14
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;
        }
    }
コード例 #15
0
ファイル: EfctTrans.cs プロジェクト: JamesTTMoon/Mps3ft
    public void SetProperty(Godirum pGod, bool pIsForm, Vector3 pFinPosi, Vector3 pFinRot, float pLimitMilSec = 2000 )
    {
        mGod = pGod;
        mIsFormer = pIsForm;
        mFinPosi = pFinPosi;
        mFinRot = pFinRot;

        switch (mGod) {
        case Godirum.PLU:
            mRotValue = new Vector3 (0, 0, 0.01f);
            break;
        case Godirum.MUL:
            int ranN = AgUtil.RandomInclude (30, 50);
            if (mIsFormer)
                mRotValue = new Vector3 (0, 0, ranN * 0.01f);
            else
                mRotValue = new Vector3 (0, 0, -ranN * 0.002f);
            break;
        }

        mLimit = pLimitMilSec;
    }
コード例 #16
0
 public void SetGod(Godirum pGod)
 {
     if (mForm != null)
     {
         mForm.GetComponent <HtIndvBase> ().SetGod(pGod);
     }
     if (mLatt != null)
     {
         mLatt.GetComponent <HtIndvBase> ().SetGod(pGod);
     }
     if (mHon != null)
     {
         mHon.GetComponent <HtIndvBase> ().SetGod(pGod);
     }
     foreach (GameObject obj in arrJsObj)
     {
         obj.GetComponent <HtIndvBase> ().SetGod(pGod);
     }
     foreach (GameObject obj in arrEyeObj)
     {
         obj.GetComponent <HtIndvBase> ().SetGod(pGod);
     }
 }
コード例 #17
0
ファイル: MdFormatter.cs プロジェクト: JamesTTMoon/Mps3ft
    public Rect mPerfArea; // = new Rect(1, 1, 2, 2); // Performance Area ..

    #endregion Fields

    #region Constructors

    //  ////////////////////////////////////////////////    Creation ...
    public MdFormatter(int pForm, int pLatt, Godirum pGod)
    {
        mGod = pGod;
        mFm = new MdIntObj (pForm, true, pGod);
        mLt = new MdIntObj (pLatt, true, pGod);

        InitGenerateChubang ();
    }
コード例 #18
0
 public void SetGod(Godirum pGod)
 {
     mGod = pGod;
 }
コード例 #19
0
ファイル: MpsObjects.cs プロジェクト: JamesTTMoon/Mps3ft
 public UnitTrans(HmFriend pForm, HmFriend pLatt, Godirum pGod)
 {
     mForm = pForm;
     mLatt = pLatt;
     mGod = pGod;
     Show ();
 }
コード例 #20
0
 public HmJinsimManager(Godirum pGod, HmFriend pForm, HmFriend pLatt)
 {
     mGod  = pGod;
     mForm = pForm;
     mLatt = pLatt;
 }
コード例 #21
0
 public MdUnitOperation(int pF, int pL, Godirum pGod)
 {
     mForm = pF;
     mLatt = pL;
     mGod  = pGod;
 }
コード例 #22
0
 public void SetGod( Godirum pIrum, Vector3 pAe )
 {
     HmGod nObj = new HmGod (pIrum);
     arrItem.Add (nObj);
 }
コード例 #23
0
 public void SetOperation(int pF, int pL, Godirum pGod)
 {
     mEq.AddSimpleOperation (pF, pL, pGod);
 }
コード例 #24
0
ファイル: HmJinsimManager.cs プロジェクト: JamesTTMoon/Mps3ft
 public HmJinsimManager(Godirum pGod, HmFriend pForm, HmFriend pLatt)
 {
     mGod = pGod;
     mForm = pForm;
     mLatt = pLatt;
 }
コード例 #25
0
ファイル: MdFormatter.cs プロジェクト: JamesTTMoon/Mps3ft
    public int mTotalValue; // 123 / 100 / 20 / 3 ...

    #endregion Fields

    #region Constructors

    // 10 , 5 , ...
    //  ////////////////////////////////////////////////    Creation ...
    public MdIntObj(int pValue, bool pIsTotal, Godirum pGod)
    {
        // MdIntObj intObj = new MdIntObj (1045, true);  1000, 0, 40, 5 ...
        //("MdIntObj :: MdIntObj   " + pValue + " ,  Total ? " + pIsTotal).HtLog ();
        mTotalValue = pValue;
        mGod = pGod;
        if (!pIsTotal)
            return;
        arrIntObj = new List<MdIntObj> ();
        int jarisoo = pValue.Jarisoo (), cur10e = jarisoo;
        for (int k=0; k<jarisoo; k++) {
            int curN = pValue.NthNum (k);
            arrIntObj.Add (new MdIntObj ((int)(curN * Math.Pow (10, --cur10e)), false, pGod));
        }
        //(" arrIntObj  count " + arrIntObj.Count).HtLog ();
    }
コード例 #26
0
    public void SetGod(Godirum pIrum, Vector3 pAe)
    {
        HmGod nObj = new HmGod(pIrum);

        arrItem.Add(nObj);
    }
コード例 #27
0
ファイル: MdFormatter.cs プロジェクト: JamesTTMoon/Mps3ft
 public MdUnitOperation(int pF, int pL, Godirum pGod)
 {
     mForm = pF;
     mLatt = pL;
     mGod = pGod;
 }
コード例 #28
0
 public void SetGod(Godirum pGod)
 {
     mGod = pGod;
 }