예제 #1
0
/// public メソッド
///---------------------------------------------------------------------------

        /// モデルの登録
        public void SetMdlHandle(Data.EffTypeId effTypeId)
        {
            objEff.SetMdlHandle(effTypeId);
            objEff.SetScale(1.0f);

            this.effTypeId = effTypeId;
        }
예제 #2
0
/// public メソッド
///---------------------------------------------------------------------------

        /// モデルの登録
        public void SetMdlHandle(Data.EffTypeId effTypeId)
        {
            objEff.SetMdlHandle(effTypeId);
            objEff.SetScale(0.1f);

            this.effTypeId = effTypeId;
            billFlg        = false;
            billYFlg       = false;

            /// 敵死亡エフェクトは大きめに表示
            if (effTypeId == Data.EffTypeId.Eff05)
            {
                objEff.SetScale(0.17f);
            }

            /// Y軸ビルボードで描画
            if (effTypeId == Data.EffTypeId.Eff03 || effTypeId == Data.EffTypeId.Eff04 || effTypeId == Data.EffTypeId.Eff05 || effTypeId == Data.EffTypeId.Eff11)
            {
                billYFlg = true;
            }

            /// ビルボードで描画
            else if (effTypeId == Data.EffTypeId.Eff08 || effTypeId == Data.EffTypeId.Eff09 || effTypeId == Data.EffTypeId.Eff12 || effTypeId == Data.EffTypeId.Eff13)
            {
                billFlg = true;
            }
        }
예제 #3
0
        /// 終了
        public override void End()
        {
            effTypeId = 0;
            DoEnd();

            Enable = false;
        }
예제 #4
0
        /// 終了
        public override void End()
        {
            effTypeId = 0;
            DoEnd();

            Enable = false;
        }
예제 #5
0
        /// 追従エフェクトの登録
        public bool EntryEffect(Data.EffTypeId effId, GameObjProduct trgObj)
        {
            ActorEffAttach actorEff = new ActorEffAttach();

            actorEff.Init();
            actorEff.Start();

            actorEff.SetMdlHandle(effId);
            actorEff.SetTrgObj(trgObj);

            actorEffList.Add(actorEff);

            return(true);
        }
예제 #6
0
        /// 通常エフェクトの登録
        public bool EntryEffect(Data.EffTypeId effId, Vector3 pos)
        {
            ActorEffNormal actorEff = new ActorEffNormal();

            actorEff.Init();
            actorEff.Start();
            actorEff.SetMdlHandle(effId);

            Matrix4 mtx = Matrix4.RotationY(0);

            Common.MatrixUtil.SetTranslate(ref mtx, pos);
            actorEff.SetPlace(mtx);

            actorEffList.Add(actorEff);

            return(true);
        }
예제 #7
0
/// public メソッド
///---------------------------------------------------------------------------

        /// モデルのセット
        public void SetMdlHandle(Data.EffTypeId effTypeId)
        {
            int effTypeIdx = (int)effTypeId;
            int mdlResId   = (int)Data.ModelResId.Eff00 + effTypeIdx;
            int texResId   = (int)Data.ModelTexResId.EffA;
            int shaResId   = (int)Data.ModelShaderReslId.Normal;

            switch (effTypeId)
            {
            case Data.EffTypeId.Eff00:    texResId = (int)Data.ModelTexResId.EffA;    break;

            case Data.EffTypeId.Eff01:    texResId = (int)Data.ModelTexResId.EffB;    break;

            case Data.EffTypeId.Eff02:    texResId = (int)Data.ModelTexResId.EffB;    break;

            case Data.EffTypeId.Eff03:    texResId = (int)Data.ModelTexResId.EffC;    break;

            case Data.EffTypeId.Eff04:    texResId = (int)Data.ModelTexResId.EffC;    break;

            case Data.EffTypeId.Eff05:    texResId = (int)Data.ModelTexResId.EffD;    break;

            case Data.EffTypeId.Eff06:    texResId = (int)Data.ModelTexResId.EffE;    break;

            case Data.EffTypeId.Eff07:    texResId = (int)Data.ModelTexResId.EffF;    break;

            case Data.EffTypeId.Eff08:    texResId = (int)Data.ModelTexResId.EffE;    break;

            case Data.EffTypeId.Eff09:    texResId = (int)Data.ModelTexResId.EffE;    break;

            case Data.EffTypeId.Eff10:    texResId = (int)Data.ModelTexResId.EffG;    break;

            case Data.EffTypeId.Eff11:    texResId = (int)Data.ModelTexResId.EffH;    break;

            case Data.EffTypeId.Eff12:    texResId = (int)Data.ModelTexResId.EffI;    break;

            case Data.EffTypeId.Eff13:    texResId = (int)Data.ModelTexResId.EffI;    break;

            case Data.EffTypeId.Eff14:    texResId = (int)Data.ModelTexResId.EffI;    break;
            }


            Data.ModelDataManager resMgr = Data.ModelDataManager.GetInstance();
            useMdlHdl.Start(resMgr.GetModel(mdlResId), resMgr.GetTextureContainer(texResId), resMgr.GetShaderContainer(shaResId));
            useMdlHdl.SetPlayAnim(0, false);
        }
예제 #8
0
 /// 開始
 public override bool Start()
 {
     effTypeId = 0;
     Enable = DoStart();
     return( Enable );
 }
예제 #9
0
 /// 開始
 public override bool Start()
 {
     effTypeId = 0;
     Enable    = DoStart();
     return(Enable);
 }