Ejemplo n.º 1
0
 /// 移動目標対象をコンテナへ登録
 public bool SetDestinationActor(GameActorCollObjContainer container)
 {
     for (int i = 0; i < actorChList.Count; i++)
     {
         if (actorChList[i].deadFlag == true || actorChList[i].FrameFlag == false || actorChList[i].ActiveFlg == false)
         {
             return(true);
         }
         for (int j = 0; j < actorChList[i].GetUseObjNum(); j++)
         {
             if (ctrlResMgr.CtrlStg.FirstTouch() == true)
             {
                 container.Add(actorChList[i], actorChList[i].GetUseObj(j));
             }
             else
             {
                 float dis = Common.VectorUtil.DistanceXZ(activeList[i].GetBodyPos(), ctrlResMgr.CtrlStg.TouchPosition());
                 if (dis < (float)Data.SetupValue.TouchNextActiveArea)
                 {
                     container.Add(actorChList[i], actorChList[i].GetUseObj(j));
                 }
             }
         }
     }
     return(true);
 }
Ejemplo n.º 2
0
        /// 目的地対象をコンテナへ登録
        public void SetDestinationActor(GameActorCollObjContainer container)
        {
            int actorIdx;

            for (int i = 0; i < fixFragileIdxList.Count; i++)
            {
                actorIdx = fixFragileIdxList[i];

                /// 破棄された備品はスルーする
                ///-------------------------------------
                if (!actorFixList[actorIdx].Enable)
                {
                    continue;
                }

                /// 非表示の備品はスルーする
                ///-------------------------------------
                else if (!actorFixList[actorIdx].Enable)
                {
                    continue;
                }

                container.Add(actorFixList[actorIdx], actorFixList[actorIdx].GetUseObj(0));
            }
        }
Ejemplo n.º 3
0
        /// 衝突対象をコンテナへ登録
        public bool SetCollisionActor(GameActorCollObjContainer container, Vector3 trgPos)
        {
            int gridW = (int)((300.0f + trgPos.X) / gridWidth);
            int gridH = (int)((300.0f + trgPos.Z) / gridWidth);

            if (gridW < 0 || gridW >= gridNum || gridH < 0 || gridH >= gridNum)
            {
                return(false);
            }

            int grid = (gridW + gridH * gridNum);

            for (int i = 0; i < gridActorIdxList[grid].Count; i++)
            {
                int idx = gridActorIdxList[grid][i];

                /// 破棄された備品はスルーする
                ///-------------------------------------
                if (!actorFixList[idx].Enable)
                {
                    continue;
                }

                container.Add(actorFixList[idx], actorFixList[idx].GetUseObj(0));
            }

            return(true);
        }
Ejemplo n.º 4
0
 /// 衝突対象をコンテナへ登録
 public bool SetCollisionActor(GameActorCollObjContainer container, Vector3 trgPos)
 {
     for (int i = 0; i < actorStg.GetUseObjNum(); i++)
     {
         container.Add(actorStg, actorStg.GetUseObj(i));
     }
     return(true);
 }
Ejemplo n.º 5
0
        /// 衝突対象をコンテナへ登録
        public bool SetCollisionActor(GameActorCollObjContainer container, Vector3 trgPos)
        {
            for (int i = 0; i < actorChList.Count; i++)
            {
                for (int j = 0; j < actorChList[i].GetUseObjNum(); j++)
                {
                    if (actorChList[i].deadFlag == true || actorChList[i].FrameFlag == false || actorChList[i].ActiveFlg == false)
                    {
                        return(true);
                    }
                    if (actorChList[i].ActiveDis < (int)Data.SetupValue.TitanSize + (int)Data.SetupValue.AddContainorArea)
                    {
                        container.Add(actorChList[i], actorChList[i].GetUseObj(j));
                    }
                }
            }

            return(true);
        }
Ejemplo n.º 6
0
 /// 衝突対象をコンテナへ登録
 public bool SetCollisionActor( GameActorCollObjContainer container, Vector3 trgPos )
 {
     for( int i=0; i<actorStg.GetUseObjNum(); i++ ){
     container.Add( actorStg, actorStg.GetUseObj(i) );
     }
     return true;
 }
Ejemplo n.º 7
0
 /// 移動目標対象をコンテナへ登録
 public bool SetDestinationActor( GameActorCollObjContainer container )
 {
     for( int i=0; i<actorChList.Count; i++ ){
     if(actorChList[i].deadFlag == true || actorChList[i].ActiveFlg == false){
         return true;
     }
     for( int j=0; j<actorChList[i].GetUseObjNum(); j++ ){
         if(ctrlResMgr.CtrlStg.FirstTouch() == true){
             container.Add( actorChList[i], actorChList[i].GetUseObj(j) );
         }else{
             float dis = Common.VectorUtil.DistanceXZ(activeList[i].GetBodyPos(), ctrlResMgr.CtrlStg.TouchPosition());
             if( dis < (float)Data.SetupValue.TouchNextActiveArea){
                 container.Add( actorChList[i], actorChList[i].GetUseObj(j) );
             }
         }
     }
     }
     return true;
 }
Ejemplo n.º 8
0
        /// 衝突対象をコンテナへ登録
        public bool SetCollisionActor( GameActorCollObjContainer container, Vector3 trgPos )
        {
            for( int i=0; i<actorChList.Count; i++ ){
            for( int j=0; j<actorChList[i].GetUseObjNum(); j++ ){
                if(actorChList[i].deadFlag == true  || actorChList[i].ActiveFlg == false){
                    return true;
                }
                if(actorChList[i].ActiveDis < (int)Data.SetupValue.TitanSize+(int)Data.SetupValue.AddContainorArea){
                    container.Add( actorChList[i], actorChList[i].GetUseObj(j) );
                }
            }
            }

            return true;
        }
Ejemplo n.º 9
0
        /// 目的地対象をコンテナへ登録
        public void SetDestinationActor( GameActorCollObjContainer container )
        {
            int actorIdx;
            for( int i=0; i<fixFragileIdxList.Count; i++ ){

            actorIdx = fixFragileIdxList[i];

            /// 破棄された備品はスルーする
            ///-------------------------------------
            if( !actorFixList[actorIdx].Enable ){
                continue ;
            }

            /// 非表示の備品はスルーする
            ///-------------------------------------
            else if( !actorFixList[actorIdx].Enable ){
                continue ;
            }

            container.Add( actorFixList[actorIdx], actorFixList[actorIdx].GetUseObj(0) );
            }
        }
Ejemplo n.º 10
0
        /// 衝突対象をコンテナへ登録
        public bool SetCollisionActor( GameActorCollObjContainer container, Vector3 trgPos )
        {
            int gridW = (int)( (300.0f+trgPos.X)/gridWidth );
            int gridH = (int)( (300.0f+trgPos.Z)/gridWidth );

            if( gridW < 0 || gridW >= gridNum || gridH < 0 || gridH >= gridNum ){
            return false;
            }

            int grid = ( gridW + gridH*gridNum );
            for( int i=0; i<gridActorIdxList[grid].Count; i++ ){
            int idx = gridActorIdxList[grid][i];

            /// 破棄された備品はスルーする
            ///-------------------------------------
            if( !actorFixList[idx].Enable ){
                continue ;
            }

            container.Add( actorFixList[idx], actorFixList[idx].GetUseObj(0) );
            }

            return true;
        }