Ejemplo n.º 1
0
        /// 終了
        public void End()
        {
            if( mvtActPlayer != null ){
            mvtActPlayer.End();
            }

            useChParam    = null;
            playMvt       = null;
        }
Ejemplo n.º 2
0
        /// 終了
        public void End()
        {
            if (mvtActPlayer != null)
            {
                mvtActPlayer.End();
            }

            useChParam = null;
            playMvt    = null;
        }
Ejemplo n.º 3
0
        /// 再生チェック
        private int getPlayMvtIndex(int playId)
        {
            Data.MvtData mvtRes = useChParam.GetMvt(playId);
            if (mvtRes.Num <= 0)
            {
                return(-1);
            }

            return(0);
        }
Ejemplo n.º 4
0
        /// 開始
        public bool Start(ActorUnitCommon useCmn, Data.CharParamData useParam)
        {
            End();
            this.useChParam = useParam;

            playMvt    = null;
            playMvtId  = -1;
            playMvtIdx = -1;

            return(mvtActPlayer.Start(useCmn, useParam));
        }
Ejemplo n.º 5
0
        /// 破棄
        public void Term()
        {
            End();

            if (mvtActPlayer != null)
            {
                mvtActPlayer.Term();
            }
            mvtActPlayer = null;
            playMvt      = null;
        }
Ejemplo n.º 6
0
        /// 動作アクション再生命令
        private bool setMvtActPlay(int playId, int mvtIdx, int actIdx)
        {
            Data.MvtData mvtRes   = useChParam.GetMvt(playId);
            int          mvtActId = mvtRes.GetActResId(mvtIdx, actIdx);

            if (mvtActPlayer.SetPlay(mvtActId, 0) == false)
            {
                return(false);
            }

            return(true);
        }
Ejemplo n.º 7
0
/// private メソッド
///---------------------------------------------------------------------------

        /// 動作再生の準備
        private bool setupMvtPlay(int playId, int index)
        {
            playMvt       = useChParam.GetMvt(playId);
            playMvtId     = playId;
            playMvtIdx    = index;
            playMvtActIdx = 0;
            playMvtActMax = playMvt.GetActResNum(index);

            /// アクション再生登録
            playActiveFlg = setMvtActPlay(playId, index, 0);
            return(true);
        }
Ejemplo n.º 8
0
        /// private メソッド
        ///---------------------------------------------------------------------------
        /// 動作再生の準備
        private bool setupMvtPlay( int playId, int index )
        {
            playMvt          = useChParam.GetMvt( playId );
            playMvtId        = playId;
            playMvtIdx       = index;
            playMvtActIdx    = 0;
            playMvtActMax    = playMvt.GetActResNum( index );

            /// アクション再生登録
            playActiveFlg    = setMvtActPlay( playId, index, 0 );
            return true;
        }
Ejemplo n.º 9
0
        /// 破棄
        public void Term()
        {
            End();

            if( mvtActPlayer != null ){
            mvtActPlayer.Term();
            }
            mvtActPlayer  = null;
            playMvt       = null;
        }
Ejemplo n.º 10
0
        /// 開始
        public bool Start( ActorUnitCommon useCmn, Data.CharParamData useParam )
        {
            End();
            this.useChParam    = useParam;

            playMvt        = null;
            playMvtId      = -1;
            playMvtIdx     = -1;

            return( mvtActPlayer.Start( useCmn, useParam ) );
        }