/// 破棄
 public override void DoTerm()
 {
     if( useMdlEffHdl != null ){
         useMdlEffHdl.Term();
     }
     useMdlEffHdl    = null;
 }
Beispiel #2
0
/// 継承メソッド
///---------------------------------------------------------------------------

        /// 初期化
        public override bool DoInit()
        {
            useMdlHdl = new Common.ModelHandle();
            useMdlHdl.Init();
            baseScale = new Vector3(1.0f, 1.0f, 1.0f);
            return(true);
        }
 /// 破棄
 public override void DoTerm()
 {
     if( useMdlEffHdl != null ){
     useMdlEffHdl.Term();
     }
     useMdlEffHdl    = null;
 }
Beispiel #4
0
/// 継承メソッド
///---------------------------------------------------------------------------

        /// 初期化
        public override bool DoInit()
        {
            /// 形状生成
            shapeColl = new ShapeTriangles[(int)ShapeTypeId.Max];

            float[] posData;

            /// 地面の登録
            posData = ShapeStageData.Positions00;
            makeShapeColl((int)ShapeTypeId.MoveGround, posData);

            /// 砂地地面の登録
            posData = ShapeStageData.Positions01;
            makeShapeColl((int)ShapeTypeId.MoveGround2, posData);

            /// キャラ移動壁の登録
            posData = ShapeStageData.Positions50;
            makeShapeColl((int)ShapeTypeId.MoveWall, posData);

            /// 魔法移動壁の登録
            posData = ShapeStageData.Positions51;
            makeShapeColl((int)ShapeTypeId.MoveMagic, posData);

            useMdlHdl = new Common.ModelHandle();
            useMdlHdl.Init();
            useMdlSkyHdl = new Common.ModelHandle();
            useMdlSkyHdl.Init();

            Brightness = 0.0f;
            return(true);
        }
Beispiel #5
0
 /// 継承メソッド
 ///---------------------------------------------------------------------------
 /// 初期化
 public override bool DoInit()
 {
     useMdlHdl = new Common.ModelHandle();
     useMdlHdl.Init();
     baseScale = new Vector3( 1.0f, 1.0f, 1.0f );
     return true;
 }
Beispiel #6
0
        private Common.ModelHandle[] plantModelHdl;           /// 速度向上のためアニメーションを共有する



/// public メソッド
///---------------------------------------------------------------------------

        /// 初期化
        public bool Init()
        {
            actorFixList = new List <ActorFixBase>();
            if (actorFixList == null)
            {
                return(false);
            }

            fixFragileIdxList = new List <int>();
            if (fixFragileIdxList == null)
            {
                return(false);
            }

            gridActorIdxList = new List <int> [gridMax];
            for (int i = 0; i < gridMax; i++)
            {
                gridActorIdxList[i] = new List <int>();
            }

            plantModelHdl = new Common.ModelHandle[(int)Data.PlantTypeId.Max];
            for (int i = 0; i < (int)Data.PlantTypeId.Max; i++)
            {
                plantModelHdl[i] = new Common.ModelHandle();
                plantModelHdl[i].Init();
            }

            return(true);
        }
Beispiel #7
0
        /// 継承メソッド
        ///---------------------------------------------------------------------------
        /// 初期化
        public override bool DoInit()
        {
            shapeColl = new ShapeTriangles();

            useMdlHdl = new Common.ModelHandle();
            useMdlHdl.Init();
            return true;
        }
Beispiel #8
0
/// 継承メソッド
///---------------------------------------------------------------------------

        /// 初期化
        public override bool DoInit()
        {
            shapeColl = new ShapeTriangles();

            useMdlHdl = new Common.ModelHandle();
            useMdlHdl.Init();
            return(true);
        }
Beispiel #9
0
/// 継承メソッド
///---------------------------------------------------------------------------

        /// 初期化
        public override bool DoInit()
        {
            useMdlHdl = new Common.ModelHandle();
            useMdlHdl.Init();

            useMdlEffHdl = new Common.ModelHandle();
            useMdlEffHdl.Init();
            return(true);
        }
Beispiel #10
0
        /// 継承メソッド
        ///---------------------------------------------------------------------------
        /// 初期化
        public override bool DoInit()
        {
            useMdlHdl = new Common.ModelHandle();
            useMdlHdl.Init();

            useMdlEffHdl = new Common.ModelHandle();
            useMdlEffHdl.Init();
            return true;
        }
        /// 継承メソッド
        ///---------------------------------------------------------------------------
        /// 初期化
        public override bool DoInit()
        {
            shapeMove = null;

            shapeMove = new ShapeSphere();
            shapeMove.Init(1);
            shapeMove.Set( 0, new Vector3(0.0f, 0.0f, 0.0f), objWidth );

            useMdlHdl = new Common.ModelHandle();
            useMdlHdl.Init();
            baseScale = new Vector3( 1.0f, 1.0f, 1.0f );
            return true;
        }
Beispiel #12
0
 /// 破棄
 public override void DoTerm()
 {
     if (shapeColl != null)
     {
         shapeColl.Term();
     }
     if (useMdlHdl != null)
     {
         useMdlHdl.Term();
     }
     shapeColl = null;
     useMdlHdl = null;
 }
/// 継承メソッド
///---------------------------------------------------------------------------

        /// 初期化
        public override bool DoInit()
        {
            shapeMove = null;

            shapeMove = new ShapeSphere();
            shapeMove.Init(1);
            shapeMove.Set(0, new Vector3(0.0f, 0.0f, 0.0f), objWidth);

            useMdlHdl = new Common.ModelHandle();
            useMdlHdl.Init();
            baseScale = new Vector3(1.0f, 1.0f, 1.0f);
            return(true);
        }
Beispiel #14
0
        /// 破棄
        public override void DoTerm()
        {
            for (int i = 0; i < (int)ShapeTypeId.Max; i++)
            {
                if (shapeColl[i] != null)
                {
                    shapeColl[i].Term();
                }
                shapeColl[i] = null;
            }

            if (useMdlHdl != null)
            {
                useMdlHdl.Term();
            }
            if (useMdlSkyHdl != null)
            {
                useMdlSkyHdl.Term();
            }

            useMdlHdl    = null;
            useMdlSkyHdl = null;
        }
        /// 命令:アニメーションのセット

        /**
         *  ATB[0]    : 再生するアニメーションNo.
         *  ATB[1]    : アニメーションをループするかのフラグ
         *  ATB[2]    : アクタに含まれる対象Objの登録No.
         **/
        private void cmdActSetAnimation(int cmdIdx)
        {
            int  animNo      = usePlayAct.GetAtb(cmdIdx, 0);
            bool animLoopFlg = (usePlayAct.GetAtb(cmdIdx, 1) == 0)?    false : true;
            int  trgObjId    = usePlayAct.GetAtb(cmdIdx, 2);

            GameActorProduct trgActor = useUnitCmn.GetUseActor();

            if (trgActor.GetUseObjNum() <= 0)
            {
                return;
            }

            Common.ModelHandle mdlHdl = trgActor.GetUseObj(trgObjId).GetModelHdl();
            if (mdlHdl == null)
            {
                return;
            }

            mdlHdl.SetPlayAnim(animNo, animLoopFlg);

            /// アニメーションの長さが終了フレームとする
            actFrameMax = mdlHdl.GetAnimLength();
        }
Beispiel #16
0
        /// 継承メソッド
        ///---------------------------------------------------------------------------
        /// 初期化
        public override bool DoInit()
        {
            /// 形状生成
            shapeColl = new ShapeTriangles[(int)ShapeTypeId.Max];

            float[] posData;

            /// 地面の登録
            posData = ShapeStageData.Positions00;
            makeShapeColl( (int)ShapeTypeId.MoveGround, posData );

            /// 砂地地面の登録
            posData = ShapeStageData.Positions01;
            makeShapeColl( (int)ShapeTypeId.MoveGround2, posData );

            /// キャラ移動壁の登録
            posData = ShapeStageData.Positions50;
            makeShapeColl( (int)ShapeTypeId.MoveWall, posData );

            /// 魔法移動壁の登録
            posData = ShapeStageData.Positions51;
            makeShapeColl( (int)ShapeTypeId.MoveMagic, posData );

            useMdlHdl = new Common.ModelHandle();
            useMdlHdl.Init();
            useMdlSkyHdl = new Common.ModelHandle();
            useMdlSkyHdl.Init();

            Brightness = 0.0f;
            return true;
        }
Beispiel #17
0
        /// public メソッド
        ///---------------------------------------------------------------------------
        /// 初期化
        public bool Init()
        {
            actorFixList = new List< ActorFixBase >();
            if( actorFixList == null ){
            return false;
            }

            fixFragileIdxList = new List< int >();
            if( fixFragileIdxList == null ){
            return false;
            }

            gridActorIdxList = new List< int >[gridMax];
            for( int i=0; i<gridMax; i++ ){
            gridActorIdxList[i] = new List< int >();
            }

            plantModelHdl = new Common.ModelHandle[(int)Data.PlantTypeId.Max];
            for( int i=0; i<(int)Data.PlantTypeId.Max; i++ ){
            plantModelHdl[i] = new Common.ModelHandle();
            plantModelHdl[i].Init();
            }

            return true;
        }
Beispiel #18
0
        /// 破棄
        public override void DoTerm()
        {
            for( int i=0; i<(int)ShapeTypeId.Max; i++ ){
            if( shapeColl[i] != null ){
                shapeColl[i].Term();
            }
            shapeColl[i] = null;
            }

            if( useMdlHdl != null ){
            useMdlHdl.Term();
            }
            if( useMdlSkyHdl != null ){
            useMdlSkyHdl.Term();
            }

            useMdlHdl       = null;
            useMdlSkyHdl    = null;
        }
Beispiel #19
0
 /// 破棄
 public override void DoTerm()
 {
     if( shapeColl != null ){
     shapeColl.Term();
     }
     if( useMdlHdl != null ){
     useMdlHdl.Term();
     }
     shapeColl = null;
     useMdlHdl = null;
 }